/* 
   FZS Sports - Unified Global UI Styles (v1.1)
   Supports dynamic header.js and footer.js injection system.
*/

:root {
    --fzs-nav-height: 84px;
    --fzs-glass-bg: rgba(5, 7, 10, 0.75);
    --fzs-glass-border: rgba(255, 255, 255, 0.08);
    --fzs-accent: #22c55e;
    --fzs-accent-glow: rgba(34, 197, 94, 0.3);
    --fzs-white: #ffffff;
    --fzs-text-muted: rgba(255, 255, 255, 0.5);
    --fzs-text-secondary: rgba(255, 255, 255, 0.7);
    --fzs-sidebar-width: 300px;
}

/* --- HEADER CONTAINER --- */
#header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
}

.fzs-header {
    height: var(--fzs-nav-height);
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

.fzs-header.scrolled {
    height: 70px;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.fzs-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.fzs-logo {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

.fzs-logo-text {
    font-size: 1.7rem;
    font-weight: 850;
    color: var(--fzs-white);
    letter-spacing: -1.2px;
}

.fzs-logo-text span {
    color: var(--fzs-accent);
}

/* Navigation Links */
.fzs-nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.fzs-nav-link {
    text-decoration: none;
    color: var(--fzs-text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 8px 0;
}

.fzs-nav-link:hover, .fzs-nav-link.active {
    color: var(--fzs-white);
}

.fzs-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--fzs-accent);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--fzs-accent);
    transform: translateX(-50%);
}

.fzs-nav-link:hover::after, .fzs-nav-link.active::after {
    width: 100%;
}

/* Actions */
.fzs-nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.fzs-btn {
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fzs-btn-ghost {
    background: transparent;
    color: var(--fzs-text-white);
    border: 1px solid transparent;
}

.fzs-btn-ghost:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--fzs-glass-border);
}

.fzs-btn-primary {
    background: var(--fzs-accent);
    color: #000;
    box-shadow: 0 4px 15px var(--fzs-accent-glow);
}

.fzs-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--fzs-accent-glow);
}

/* --- MOBILE SIDEBAR --- */
.fzs-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--fzs-glass-border);
    border-radius: 12px;
    color: var(--fzs-white);
    cursor: pointer;
    padding: 10px;
    transition: 0.3s;
}

.fzs-mobile-toggle:hover {
    background: rgba(255,255,255,0.08);
}

.fzs-sidebar {
    position: fixed;
    top: 0;
    right: calc(-1 * var(--fzs-sidebar-width));
    width: var(--fzs-sidebar-width);
    height: 100vh;
    background: #05070a;
    z-index: 3000;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--fzs-glass-border);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -20px 0 60px rgba(0,0,0,0.8);
}

.fzs-sidebar.open {
    right: 0;
}

.fzs-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.fzs-close-btn {
    background: none;
    border: none;
    color: var(--fzs-white);
    cursor: pointer;
    font-size: 1.5rem;
}

.fzs-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fzs-sidebar-links .fzs-nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.fzs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

.fzs-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1080px) {
    .fzs-nav-links, .fzs-nav-actions .fzs-btn:not(.fzs-mobile-toggle) {
        display: none;
    }
    .fzs-mobile-toggle {
        display: block;
    }
}

/* --- FOOTER STYLING --- */
#footer {
    width: 100%;
}

.fzs-footer-main {
    background: #030508;
    padding: 100px 0 40px;
    border-top: 1px solid var(--fzs-glass-border);
    margin-top: 120px;
}

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

.fzs-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
}

.fzs-footer-section p {
    color: var(--fzs-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 400px;
}

.fzs-footer-title {
    color: var(--fzs-white);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 32px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 12px;
}

.fzs-footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--fzs-accent);
}

.fzs-footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fzs-footer-links a {
    text-decoration: none;
    color: var(--fzs-text-muted);
    font-weight: 600;
    font-size: 0.92rem;
    transition: 0.3s;
}

.fzs-footer-links a:hover {
    color: var(--fzs-white);
    transform: translateX(6px);
}

.fzs-footer-social {
    display: flex;
    gap: 16px;
}

.fzs-footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--fzs-glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fzs-text-secondary);
    transition: 0.3s;
    text-decoration: none;
}

.fzs-footer-social a:hover {
    background: var(--fzs-accent);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--fzs-accent-glow);
}

.fzs-footer-bottom {
    border-top: 1px solid var(--fzs-glass-border);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--fzs-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 900px) {
    .fzs-footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .fzs-footer-main {
        padding: 60px 0 40px;
    }
}
