/* Frontend Navigation Styles */

/* Header Styles */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Logo Styles */
.site-logo a {
    text-decoration: none;
    color: #1f2937;
    display: flex;
    align-items: center;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Main Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-item a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    display: block;
    transition: color 0.2s ease;
    border-radius: 4px;
}

.nav-item a:hover {
    color: #1f2937;
    background-color: #f3f4f6;
}

.nav-item.active a {
    color: #2563eb;
    font-weight: 600;
}

.nav-item.active a::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #2563eb;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Footer Styles */
.site-footer {
    background-color: #1f2937;
    color: #d1d5db;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about {
    flex: 1;
    min-width: 250px;
}

.footer-about h3 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.footer-about p {
    line-height: 1.6;
    color: #9ca3af;
}

/* Footer Navigation */
.footer-navigation {
    flex: 1;
    min-width: 200px;
}

.footer-navigation h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-item {
    margin-bottom: 10px;
}

.footer-menu-item a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    padding: 4px 0;
}

.footer-menu-item a:hover {
    color: #fff;
}

/* Footer Extra */
.footer-extra {
    flex: 1;
    min-width: 200px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

/* Mobile Menu Toggle Button (hidden by default) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #4b5563;
    padding: 8px;
}

/* Responsive Styles */

/* Tablet: 768px and below */
@media (max-width: 768px) {
    .header-container {
        padding: 10px 15px;
    }

    .mobile-menu-toggle {
        display: block;
        order: 3;
    }

    .site-logo {
        order: 1;
    }

    .main-navigation {
        order: 4;
        width: 100%;
        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: #fff;
        border-top: 1px solid #e5e7eb;
        padding: 10px 0;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item a {
        padding: 12px 20px;
    }

    .nav-item.active a::after {
        display: none;
    }

    .header-actions {
        order: 2;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-about,
    .footer-navigation,
    .footer-extra {
        min-width: 100%;
    }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
    .site-logo h1 {
        font-size: 1.25rem;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-item a {
        font-size: 0.95rem;
    }

    .footer-container {
        padding: 30px 15px 15px;
    }

    .footer-about h3 {
        font-size: 1.1rem;
    }

    .footer-navigation h4 {
        font-size: 0.95rem;
    }
}
