/* ═══════════════════════════════════════════════════════════════ */
/* PARTIALS CSS - Shared Header & Footer Styles                    */
/* ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════ */
/* LANDING HEADER STYLES                                           */
/* ═══════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    height: 70px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #3B82F6;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-landing {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-landing a {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-landing a:hover {
    color: #1F2937;
}

.nav-landing a.active {
    color: #3B82F6;
}

.header-actions {
    display: flex;
    align-items: center;
}

.cta-button {
    background: #3B82F6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #2563EB;
}

.login-button {
    color: #3B82F6;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid #E5E7EB;
    background: white;
    margin-right: 0.75rem;
}

.login-button:hover {
    background: #F9FAFB;
    border-color: #3B82F6;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: rgb(59, 130, 246);
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    color: rgb(55, 65, 81);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

.mobile-cta-button {
    background: rgb(59, 130, 246);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-cta-button:hover {
    background: rgb(29, 78, 216);
}

/* Landing Header Mobile Responsive */
@media (max-width: 768px) {
    .nav-landing,
    .header-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .header-content {
        padding: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* APP HEADER STYLES (Internal Pages)                              */
/* ═══════════════════════════════════════════════════════════════ */
.app-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    height: 60px;
}

.app-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-header .logo-text {
    font-size: 22px;
}

.app-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.app-nav a,
.app-nav button {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.app-nav a:hover,
.app-nav button:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.app-nav a.active {
    background: #EFF6FF;
    color: #2563EB;
}

.logout-btn {
    color: #DC2626 !important;
}

.logout-btn:hover {
    background: #FEF2F2 !important;
    color: #B91C1C !important;
}

/* App Header Mobile */
.app-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.app-mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-mobile-nav.active {
    display: block;
}

.app-mobile-nav a,
.app-mobile-nav button {
    display: block;
    width: 100%;
    text-align: left;
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.app-mobile-nav a:hover,
.app-mobile-nav button:hover {
    background: #F3F4F6;
    color: #1F2937;
}

@media (max-width: 768px) {
    .app-nav {
        display: none;
    }

    .app-mobile-menu-btn {
        display: flex;
    }

    .app-header-content {
        padding: 0 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* ADMIN HEADER STYLES                                             */
/* ═══════════════════════════════════════════════════════════════ */
.admin-header {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    height: 60px;
}

.admin-header-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header .logo-text {
    font-size: 22px;
}

.admin-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-nav a,
.admin-nav button {
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.admin-nav a:hover,
.admin-nav button:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.admin-nav a.active {
    background: #FEF3C7;
    color: #92400E;
}

/* Admin Header Mobile */
.admin-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.admin-mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-mobile-nav.active {
    display: block;
}

.admin-mobile-nav a,
.admin-mobile-nav button {
    display: block;
    width: 100%;
    text-align: left;
    color: #6B7280;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .admin-nav {
        display: none;
    }

    .admin-mobile-menu-btn {
        display: flex;
    }

    .admin-header-content {
        padding: 0 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* LANDING FOOTER STYLES                                           */
/* ═══════════════════════════════════════════════════════════════ */
footer {
    background: #111827;
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

footer h3 {
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
}

@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════════ */
/* APP FOOTER STYLES (Minimal - Internal Pages)                    */
/* ═══════════════════════════════════════════════════════════════ */
.app-footer {
    background: #111827;
    color: #9ca3af;
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.app-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-footer-copyright {
    font-size: 0.875rem;
}

.app-footer-links {
    display: flex;
    gap: 1.5rem;
}

.app-footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.app-footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {
    .app-footer {
        padding: 1rem;
    }

    .app-footer-content {
        flex-direction: column;
        text-align: center;
    }

    .app-footer-links {
        gap: 1rem;
    }
}
