﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #0d0d0f;
    --panel: #151518;
    --panel-hover: #1a1a1d;
    --border: #222226;
    --gold: #c5a021;
    --gold-hover: #dfb525;
    --text: #d4d4d8;
    --text-muted: #71717a;
    --text-faint: #3f3f46;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: #fff;
    text-decoration: none;
}

::selection {
    background: var(--gold);
    color: #000;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 64px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.site-nav.scrolled {
    border-bottom-color: #2a2a30;
}

.nav-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.15s;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 3px;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-nav-login {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.15s;
}

.btn-nav-login:hover {
    color: #fff;
}

.btn-nav-register {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    background: var(--gold);
    color: #000;
    padding: 7px 16px;
    border-radius: 4px;
    transition: background 0.15s;
}

.btn-nav-register:hover {
    background: var(--gold-hover);
    color: #000;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-user-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.nav-user-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

.btn-logout {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-faint);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.btn-logout:hover {
    color: #fff;
}

.site-hero {
    margin-top: 64px;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(to bottom, rgba(13, 13, 15, 0.6) 0%, rgba(13, 13, 15, 1) 100%),
        url('assets/samp.jpg') center/cover no-repeat;
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.hero-title span {
    color: var(--gold);
}

.hero-sub {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 4px;
    transition: background 0.15s, border-color 0.15s;
}

.btn-discord:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-discord svg {
    flex-shrink: 0;
}

.ticker-bar {
    position: sticky;
    top: 64px;
    z-index: 900;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    overflow: hidden;
}

.ticker-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ticker-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(197, 160, 33, 0.3);
    padding: 2px 7px;
    border-radius: 3px;
    flex-shrink: 0;
}

.ticker-scroll {
    overflow: hidden;
    flex: 1;
}

.ticker-text {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    display: inline-block;
    animation: ticker 28s linear infinite;
}

.ticker-text:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.site-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.forum-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.section-accent {
    width: 4px;
    height: 20px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.forum-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.forum-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background: var(--panel-hover);
}

.forum-icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-gold {
    background: rgba(197, 160, 33, 0.1);
    border: 1px solid rgba(197, 160, 33, 0.15);
    color: var(--gold);
}

.icon-red {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.icon-orange {
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.icon-green {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.forum-info {
    flex: 1;
    min-width: 0;
}

.forum-row-title {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 3px;
}

.forum-row-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.forum-meta {
    text-align: right;
    flex-shrink: 0;
    margin-right: 12px;
}

.forum-meta-posts {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: block;
}

.forum-meta-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.btn-action:hover {
    color: #fff;
    border-color: #444;
}

.btn-action.locked {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.forum-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.forum-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.15s;
}

.forum-card:hover {
    background: var(--panel-hover);
}

.forum-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.forum-card-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 4px;
}

.forum-card-desc {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin: 0;
}

.btn-action-sm {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.btn-action-sm:hover {
    color: #fff;
}

.sidebar-widget {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.widget-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.server-ip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: var(--text-muted);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.btn-copy:hover {
    color: var(--gold);
}

.player-bar-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.player-bar-row span:last-child {
    color: #fff;
}

.player-track {
    height: 4px;
    background: var(--bg);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.player-fill {
    height: 100%;
    background: var(--gold);
    width: 0%;
    transition: width 1s ease-out;
}

.actives-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.actives-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.actives-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.actives-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.actives-rank {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-faint);
    width: 14px;
    text-align: center;
}

.actives-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.actives-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.actives-score {
    font-size: 13px;
    font-weight: 700;
    font-family: monospace;
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 3px;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 32px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.footer-brand span {
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-credit {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-faint);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(rgba(13, 13, 15, 0.88), rgba(13, 13, 15, 0.97)),
        url('assets/samp.jpg') center/cover fixed;
}

.auth-back {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.15s;
}

.auth-back:hover {
    color: #fff;
}

.auth-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
}

.auth-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px;
}

.auth-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 0 0 4px;
}

.auth-sub {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 28px;
}

.auth-card {
    background: var(--panel);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 32px;
    width: 100%;
    max-width: 420px;
}

.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.auth-card .input-wrap {
    position: relative;
}

.auth-card .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    pointer-events: none;
}

.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 10px 12px 10px 38px;
    transition: border-color 0.2s;
    outline: none;
}

.auth-card input:focus {
    border-color: var(--gold);
}

.auth-card input::placeholder {
    color: var(--text-faint);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-remember input {
    cursor: pointer;
}

.auth-forgot {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    transition: color 0.15s;
}

.auth-forgot:hover {
    color: var(--gold-hover);
}

.btn-submit {
    display: block;
    width: 100%;
    background: var(--gold);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-submit:hover {
    background: var(--gold-hover);
}

.btn-submit-ghost {
    display: block;
    width: 100%;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    padding: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-submit-ghost:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.auth-switch {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 18px;
}

.auth-switch a {
    font-weight: 700;
    color: #fff;
    transition: color 0.15s;
}

.auth-switch a:hover {
    color: var(--gold);
}

.auth-notice {
    background: rgba(197, 160, 33, 0.08);
    border: 1px solid rgba(197, 160, 33, 0.2);
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold-hover);
    text-align: center;
    margin: 16px 0;
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--panel);
    border-radius: 6px;
    width: 300px;
    pointer-events: auto;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border: 1px solid rgba(197, 160, 33, 0.3);
}

.toast.error {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.toast-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(197, 160, 33, 0.1);
    color: var(--gold);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.toast-msg {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 5000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    width: 380px;
    max-width: 90vw;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
}

.modal-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    padding: 10px 14px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-input:focus {
    border-color: var(--gold);
}

.btn-modal-submit {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: background 0.15s;
}

.btn-modal-submit:hover {
    background: #e5e7eb;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 38px;
    }

    .nav-menu {
        display: none;
    }

    .forum-grid {
        grid-template-columns: 1fr;
    }

    .forum-meta {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .site-hero {
        min-height: 360px;
        padding: 60px 20px;
    }
}

.btn-nav-profile {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.15s, border-color 0.15s;
}

.btn-nav-profile:hover {
    color: #fff;
    border-color: #444;
}

.toast.warning {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.toast.warning .toast-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
}

textarea:focus {
    border-color: var(--gold) !important;
}

.active-filter {
    color: var(--gold) !important;
    border-color: rgba(197, 160, 33, 0.3) !important;
}

.server-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.server-dot--online {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    animation: pulse-green 2s infinite;
}

.server-dot--offline {
    background: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4);
}

.server-dot--loading {
    background: #71717a;
    animation: pulse-gray 1.5s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px rgba(74, 222, 128, 0.4); }
    50%       { box-shadow: 0 0 10px rgba(74, 222, 128, 0.8); }
}

@keyframes pulse-gray {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.btn-action--locked {
    opacity: 0.45;
    cursor: pointer;
}

.btn-action--locked:hover {
    opacity: 0.7;
    color: #fff;
    border-color: #444;
}

.btn-action.locked {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}
