﻿:root {
    --bg-dark: #121212;
    --bg-panel: #1f1f1f;
    --border-color: #2c2c2c;
    --accent-gold: #FFD700;
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --header-height: 60px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Prevent layout shift when content height crosses the viewport */
html {
    scrollbar-gutter: stable;
    overflow-y: auto;
}

/* Fallback for older browsers */
@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
}

/* Font Awesome fix for solid icons */
.fa-solid {
    font-weight: 900;
    font-size: 1.2em;
}

/* HEADER */
header {
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
    top: 0;
    position: relative;
    z-index: 3000;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 3001;
}

.header-logo .logo-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.header-logo a {
    font-size: 1.2rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.header-logo .logo-text-small {
    display: none;
}

.menu-login {
    display: none;
}

.signin-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0047AB;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .signin-btn:hover {
        background-color: #003888;
    }

.header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

    .header-nav a {
        margin-right: 20px;
        color: #ccc;
        text-decoration: none;
        transition: color 0.2s;
    }

        .header-nav a:last-child {
            margin-right: 0;
        }

        .header-nav a:hover {
            color: #fff;
        }

.header-account {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .header-account a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
    }

/* Wrapper fills the viewport and uses flex layout */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content expands to fill available space */
.content {
    flex: 1;
}

.site-footer {
    background-color: #111;
    color: #fff;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-copy {
    margin: 0;
    line-height: 1.4;
}

    .footer-copy a {
        color: #fff;
        text-decoration: none;
    }

        .footer-copy a:hover {
            text-decoration: underline;
        }

/* Right Section (Links) */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #fff;
        text-decoration: none;
        transition: color 0.2s;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.menu-toggle {
    display: none;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 8px;
    line-height: 1;
    position: relative;
    z-index: 3002;
}

    .menu-toggle:focus {
        outline: none;
    }

    .menu-toggle:focus-visible {
        outline: 2px solid rgba(255,255,255,0.6);
        outline-offset: 3px;
        border-radius: 8px;
    }

/* Hide logo text on mobile (<= 768px) */
@media (max-width: 768px) {
    header {
        display: flex;
    }

    .header-logo .logo-text {
        display: none;
    }

    .header-logo .logo-text-small {
        display: inline-flex;
        font-size: 0.7rem;
    }

    .signin-btn {
        display: none;
    }

    .menu-login {
        display: block;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #1f1f1f;
        border-top: 1px solid rgba(255,255,255,0.06);
        border-bottom: 1px solid rgba(255,255,255,0.06);
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        z-index: 4000;
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    }

        .header-nav.active {
            display: flex;
        }

        .header-nav a {
            width: 100%;
            text-align: center;
            padding: 10px 0;
            margin: 0;
        }

    .menu-toggle {
        display: block;
        margin-left: 10px;
    }

    .header-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}
