/* 
 * Shared Components CSS
 * Include this file in all pages for consistent header and footer
 * Usage: <link rel="stylesheet" href="/css/shared.css">
 */

:root {
    --primary: #4A5568;
    --primary-dark: #2D3748;
    --text: #1A202C;
    --muted: #718096;
    --card: #FFFFFF;
    --background: #F7FAFC;
    --accent-study: #28a745;
    --border: #E2E8F0;
    --accent: #4A5568;
}

/* Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

/* ========================================
   HEADER STYLES
   ======================================== */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 50px;
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.logo:hover {
    color: var(--primary);
}

.site-header nav {
    display: flex;
}

.site-header nav a {
    font-family: 'Inter', sans-serif;
    margin-left: 28px;
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

a {
            color: var(--accent-study);
            text-decoration: none;
            transition: all 0.2s ease;
            border-bottom: 1px solid transparent;
            font-weight: 500;
        }

        a:hover {
            color: #1e7e34;
            border-bottom-color: var(--accent-study);
        }

.site-header nav a.active {
            color: var(--accent-study);
            font-weight: 600;
        }
.site-header nav a:hover {
    color: var(--primary);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 12px;
    display: block;
}

.footer-brand p {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    color: var(--primary-dark);
}

.footer-column a {
    font-family: 'Inter', sans-serif;
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
    .site-header {
        padding: 20px 30px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .site-header nav a {
        margin-left: 20px;
        font-size: 14px;
    }

    .site-footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        padding: 0 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }
    
    .site-header nav a {
        margin-left: 16px;
        font-size: 13px;
    }

    .footer-container {
        padding: 0 16px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}