/* === STANDARDIZED WEBSITE HEADER (Golden Source) === */

@font-face {
    font-family: 'Glitch';
    src: url('fonts/glitch.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --header-bg: rgba(0, 0, 0, 0.95);
    --header-border: #2d3436;
}

.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: var(--header-bg);
    padding: 10px 0;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--header-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-content {
    width: 100%;
    max-width: 1600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.header-logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    transition: transform 0.2s;
}

.header-logo:hover {
    transform: scale(1.05);
}

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

.header-cta {
    color: #fff;
    font-weight: bold;
    font-family: 'Glitch', sans-serif;
    font-size: 1.25rem;
}

/* === LANGUAGE SELECTOR === */
.language-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    min-width: 80px;
    font-family: 'Glitch', sans-serif;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-color-accent, #00ffff);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    padding-top: 5px;
    z-index: 10000;
}

.lang-dropdown-content {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--brand-color-main, #0077be);
    border-radius: 5px;
    padding: 5px 0;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.language-selector.active .lang-dropdown,
.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-option {
    display: block;
    padding: 8px 15px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.125em;
    font-family: 'Glitch', sans-serif;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--brand-color-accent, #00ffff);
}

/* === LEADERBOARD BUTTON === */
.btn-leaderboard {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-family: 'Glitch', sans-serif;
    font-size: 1.25rem;
    line-height: 1;

    line-height: 1;}

.btn-leaderboard:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.leaderboard-icon {
    height: 24px;
    width: auto;
    display: block;
}

.leaderboard-text {
    display: inline-block;
    transform: translateY(2px);
    transform: translateY(2px);
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 10px;
    }

    .header-cta {
        display: none;
    }

    .header-logo {
        height: 35px;
    }

    .header-actions {
        gap: 8px;
    }

    .lang-btn {
        padding: 3px 5px;
        font-size: 0.8125rem;
        min-width: 45px;
    }

    .btn-leaderboard {
        padding: 3px 8px;
        font-size: 0.875rem;
        gap: 4px;
    }

    .leaderboard-icon {
        height: 16px;
    }

    .leaderboard-text {
        font-size: 1.0625em;
    }
}

.page-container {
    padding-top: 25px !important;
}

@media (max-width: 768px) {
    .page-container {
        padding-top: 25px !important;
    }
}

/* === GLOBAL BACKGROUND PATTERN === */
body {
    background: linear-gradient(135deg, #051014 0%, #002b36 50%, #001a23 100%) !important;
    background-attachment: fixed !important;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.gameweb.io/images/bg_pattern.jpg');
    background-size: 25%;
    background-position: center;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}