/* 
    Agena Gaming — Common Styles
    Standardized UI components for games and site-wide consistency.
*/

:root {
    --gold: #ffd700;
    --green: #2ecc71;
    --red: #e74c3c;
    --bg-dark: #0a0a0a;
    --border-gold: 1px solid var(--gold);
    --ticker-h: 36px;
    --top-bar-h: 48px;
}

/* ── TOP BAR (Compact) ── */
.top-bar {
    height: var(--top-bar-h);
    background: #0a0a0a;
    border-bottom: var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    flex-shrink: 0;
    z-index: 1000;
    position: relative;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.top-bar-logo-img {
    height: 24px;
    width: auto;
    display: block;
}

.top-bar-logo {
    font-size: 18px;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
    text-decoration: none;
    font-family: 'Arial Black', Arial, sans-serif;
}

.back-link {
    font-size: 10px;
    color: #555;
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
    margin-left: 8px;
}

.back-link:hover {
    color: var(--gold);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #aaa;
}

.top-bar-right .username {
    color: var(--gold);
    font-weight: bold;
}

.top-bar-right .balance {
    color: var(--green);
    font-weight: bold;
    font-family: monospace;
    background: rgba(46, 204, 113, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* ── TICKER BAR ── */
.ticker-bar {
    width: 100%;
    height: var(--ticker-h);
    background: #111;
    border-bottom: var(--border-gold);
    display: flex;
    align-items: center;
    z-index: 999;
    flex-shrink: 0;
    overflow: hidden;
}

.ticker-label {
    background: var(--gold);
    color: #000;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-text {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.ticker-track {
    display: inline-flex;
    gap: 60px;
    font-family: monospace;
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    animation: ticker-scroll 30s linear infinite;
}

.ticker-track .win { color: var(--green); font-weight: bold; }
.ticker-track .loss { color: var(--red); font-weight: bold; }
.ticker-track .push { color: var(--gold); font-weight: bold; }

@keyframes ticker-scroll {
    0%   { transform: translateX(0) translateY(-50%); }
    100% { transform: translateX(-50%) translateY(-50%); }
}

/* ── SITE FOOTER ── */
.site-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 8px 12px;
    font-size: 10px;
    color: #333;
    letter-spacing: 1px;
    background: #0a0a0a;
    border-top: 1px solid #111;
}

.site-footer a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--green);
}

.site-footer .separator {
    color: #1e293b;
    margin: 0 4px;
}

/* ── COMPLIANCE BADGE ── */
#locationStatus {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 600;
    white-space: nowrap;
    pointer-events: none;
}

#locationStatus.verified {
    color: var(--green);
}

/* ── UTILITIES ── */
.hidden { display: none !important; }

@media (max-width: 600px) {
    .top-bar-logo { font-size: 16px; letter-spacing: 1px; }
    .top-bar-right { gap: 8px; font-size: 12px; }
    .back-link { display: none; } /* Hide back link on mobile to save space */
}
