/* ========== ROOT COLORS – ESPORT / NEON-LITE THEME ========== */
:root {
    /* Brand / primary – élénkebb, de nem ordít */
    --cs2-orange: #F97316;         /* fő gombok, active nav */
    --cs2-orange-light: #FDBA74;   /* hover */
    --cs2-orange-dark: #C2410C;    /* árnyék, sötétebb részek */

    /* Sötét háttér – kicsit kékes, “monitor glow” */
    --cs2-bg: #020617;             /* body háttér */
    --cs2-bg-alt: #050816;         /* sidebar / navbar háttér */
    --cs2-panel: #0B1020;          /* alap kártyák */
    --cs2-panel-2: #111827;        /* komment, match card stb. */
    --cs2-panel-soft: #1F2937;     /* nagyobb panelek, hero */

    /* Borders */
    --cs2-border: #273549;
    --cs2-border-strong: #374151;

    /* Szöveg */
    --cs2-text: #F9FAFB;
    --cs2-text-soft: #9CA3AF;
    --cs2-text-muted: #6B7280;

    /* Accent – lila + kékes “esport” kombó */
    --cs2-accent: #8B5CF6;         /* stat kiemelés, fontos linkek */
    --cs2-accent-soft: #A855F7;    /* hover / másodlagos kiemelés */

    /* State colors */
    --cs2-success: #22C55E;
    --cs2-warning: #EAB308;
    --cs2-danger: #EF4444;

    /* Inputs */
    --cs2-input-bg: #020617;
    --cs2-input-border: #374151;
    --cs2-input-placeholder: #6B7280;

    /* Shadows */
    --cs2-shadow-strong: rgba(0, 0, 0, 0.85);
    --cs2-shadow-soft: rgba(15, 23, 42, 0.65);
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, var(--cs2-panel-soft) 0, var(--cs2-bg) 55%);
    color: var(--cs2-text);
    font-family: 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
}

/* linkek */
a {
    color: var(--cs2-accent-soft);
    text-decoration: none;
}
a:hover {
    color: var(--cs2-text);
    text-decoration: none;
}

.text-soft {
    color: var(--cs2-text-soft) !important;
}

/* ========== NAVBAR ========== */
.cs2-navbar {
    background: linear-gradient(to right, var(--cs2-bg-alt), var(--cs2-panel-2));
    border-bottom: 2px solid var(--cs2-orange);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.cs2-navbar .navbar-brand {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--cs2-orange) !important;
}

/* BAL/JOBB FLEX simán maradhat bootstrapből */
.cs2-navbar .navbar-collapse {
    align-items: center;
}

/* NAV-LINK STYLING */
.cs2-navbar .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    margin-right: 8px;
    border-radius: 999px;
    background: transparent;
    color: var(--cs2-text) !important;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.02em;
    opacity: 0.85;
    transition:
        opacity 0.15s ease,
        background 0.15s ease,
        color 0.15s ease,
        transform 0.10s ease,
        box-shadow 0.15s ease;
}

.cs2-navbar .nav-link:last-child {
    margin-right: 0;
}

/* HOVER */
.cs2-navbar .nav-link:hover {
    opacity: 1;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

/* AKTÍV MENÜ (bootstrap .active class) */
.cs2-navbar .nav-link.active {
    opacity: 1;
    background: var(--cs2-orange);
    color: #000000 !important;
    box-shadow: 0 0 18px rgba(247, 147, 26, 0.7);
}

/* ========== LAYOUT WRAPPER ========== */
.cs2-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
    background: linear-gradient(to bottom, var(--cs2-bg), var(--cs2-bg));
}

/* ========== SIDEBAR ========== */
.cs2-sidebar {
    flex-shrink: 0;
    width: 250px;
    padding: 12px 10px;
    background: var(--cs2-bg-alt);
    border-right: 1px solid var(--cs2-border);
    text-align: left;
    font-size: 13px;
}

.cs2-sidebar-section {
    margin-bottom: 16px;
}

.cs2-sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
    color: var(--cs2-orange-light);
}

.cs2-sidebar-divider {
    border-color: var(--cs2-border);
    margin: 8px 0 12px 0;
}

/* friends */
.cs2-friends-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cs2-friend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--cs2-panel);
    border: 1px solid var(--cs2-border);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.cs2-friend:hover {
    background: var(--cs2-panel-soft);
    border-color: var(--cs2-orange);
}

.cs2-friend-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: var(--cs2-panel-2);
}

.cs2-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cs2-friend-main {
    flex: 1;
    margin-left: 8px;
    overflow: hidden;
}

.cs2-friend-name {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--cs2-text);
}

.cs2-friend-sub {
    font-size: 11px;
    color: var(--cs2-text-soft);
}

.cs2-friend-actions .btn {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1;
}

/* ========== MAIN CONTENT WRAPPER ========== */
.cs2-main {
    flex: 1;
    padding: 20px 24px 40px 24px;
}

/* belső max szélesség */
.cs2-main-column {
    max-width: 920px;
    margin: 0 auto 60px auto;
}

/* ========== CARDS ========== */
.cs2-card {
    background: radial-gradient(circle at top left,
        var(--cs2-panel-soft) 0,
        var(--cs2-panel) 40%,
        var(--cs2-bg-alt) 100%);
    border: 1px solid var(--cs2-border);
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px var(--cs2-shadow-strong);
}

/* hero */
.hero-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 18px;
}

.hero-icon {
    font-size: 32px;
}

.hero-main h3 {
    margin: 0 0 4px 0;
    font-size: 22px;
}

.hero-main p {
    margin: 0;
    font-size: 14px;
    color: var(--cs2-text-soft);
}

.hero-action .hero-btn {
    white-space: nowrap;
}

/* stat cards */
.stat-card h5 {
    font-size: 14px;
    margin-bottom: 4px;
}
.stat-value-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--cs2-accent);
    margin: 0;
}

/* section titles */
.page-title {
    font-size: 24px;
    font-weight: 700;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
}

/* ========== BUTTONS ========== */
.cs2-btn,
.cs2-btn-orange {
    background: var(--cs2-orange);
    color: #000 !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s;
}

.cs2-btn:hover,
.cs2-btn-orange:hover {
    background: var(--cs2-orange-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--cs2-shadow-strong);
}

.cs2-btn-danger {
    background: var(--cs2-danger) !important;
    color: #fff !important;
}

.cs2-btn-dark {
    background: var(--cs2-panel-2) !important;
    color: var(--cs2-text) !important;
}

/* ========== INPUTS ========== */
.form-control,
.form-select {
    background: var(--cs2-input-bg);
    border: 1px solid var(--cs2-input-border);
    color: var(--cs2-text);
    font-size: 14px;
}

.form-control::placeholder {
    color: var(--cs2-input-placeholder);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--cs2-orange);
    box-shadow: 0 0 0 0.15rem rgba(247, 147, 26, 0.35);
}

/* ========== TABLE ========== */
.table-dark {
    background: var(--cs2-panel-2);
}

.table-dark td,
.table-dark th {
    border-color: var(--cs2-border-strong) !important;
}

/* ========== VETO TIMER ========== */
#veto-timer {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 0 0 8px var(--cs2-orange);
}

/* ========== POST CREATE ========== */
/*.post-create-card {
    /* ugyanakkora max-szélesség mint feed (#feed) – mivel az egész main-column max 920 
} */

/* ========== FEED LAYOUT ========== */
#feed {
    margin: 0 0 40px 0;
}

.feed-post {
    background: var(--cs2-panel);
    border-radius: 12px;
    border: 1px solid var(--cs2-border);
    padding: 16px 18px;
    margin-bottom: 18px;
    text-align: left;
}

.feed-post-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.feed-post-user,
.feed-user-link {
    font-weight: 600;
    color: var(--cs2-orange-light);
    font-size: 15px;
}

.feed-user-link:hover {
    color: #ffffff;
}

.feed-post-date {
    font-size: 12px;
    color: var(--cs2-text-soft);
}

.feed-post-text {
    margin-bottom: 10px;
    font-size: 14px;
    white-space: pre-line;
    text-indent: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
}

/* média – ne vágja le, férjen bele a posztba */
.feed-media-wrapper {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}

.feed-media {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;      /* fontos: ne vágja le, hanem letterbox */
    background: #000;
}

.feed-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: rgba(255,255,255,0.9);
    background: radial-gradient(circle, rgba(0,0,0,0.05), rgba(0,0,0,0.55));
    pointer-events: none;
}

/* reakciók */
.feed-reactions a {
    font-size: 14px;
}

/* kommentek */
.feed-comment {
    background: var(--cs2-panel-2);
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.feed-comment-date {
    font-size: 11px;
    color: var(--cs2-text-soft);
}

.feed-comment-form .btn-sm {
    padding-inline: 10px;
    font-size: 13px;
}

/* ========== MEDIA VIEWER MODAL ========== */
.media-viewer.d-none {
    display: none !important;
}

.media-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.media-viewer-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.media-viewer-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    background: #000;
}

.media-viewer-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #202025;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 16px;
}

/* ========== PROFILE AVATAR ========== */
.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 2px solid var(--cs2-orange);
    background: #22242f;
}

.profile-avatar-lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== MATCH HISTORY KÁRTYÁK ========== */

.match-item {
    position: relative;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: 1px solid var(--cs2-border);
    background:
        linear-gradient(90deg, rgba(5,6,8,0.96), rgba(5,6,8,0.75)); /* fallback, ha nincs kép */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.65);
    transition:
        transform 0.08s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.match-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.8);
    border-color: var(--cs2-orange);
}

.match-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* bal oldal – map + dátum */
.match-meta {
    font-size: 13px;
}

/* map név kiemelve egy kicsit */
.match-map-name {
    font-size: 13px;
    font-weight: 500;
}

/* HS sor kicsit halványabb */
.match-hs-line {
    font-size: 12px;
    color: var(--cs2-text-muted);
}


/* ========== SMALL STAT LABELS ========== */
.stat-label {
    text-transform: uppercase;
    font-size: 11px;
    color: var(--cs2-text-soft);
    letter-spacing: 0.08em;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
}

/* ========== LOBBY CARDS ========== */
.lobby-card .lobby-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* ========== FOOTER ========== */
.cs2-footer {
    border-top: 1px solid var(--cs2-border);
    background: var(--cs2-bg);
    padding: 12px 30px;
    font-size: 13px;
    color: var(--cs2-text-soft);
}

.cs2-footer-inner {
    max-width: 920px;          /* ugyanaz, mint a main-column */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cs2-footer-left strong {
    color: #ffffff;
    font-weight: 700;
    margin-right: 6px;
}

.cs2-footer-copy {
    color: var(--cs2-text-muted);
    font-size: 12px;
}

.cs2-footer-links a {
    margin-right: 12px;
    font-size: 12px;
    color: var(--cs2-text-soft);
}

.cs2-footer-links a:last-child {
    margin-right: 0;
}

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

.cs2-footer-right {
    font-size: 12px;
    color: var(--cs2-text-soft);
}

/* mobilon igazítsuk középre */
@media (max-width: 768px) {
    .cs2-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== RANGLISTA TABLE ========== */


/* Bootstrap table fehér háttér OFF a rank táblán */
.rank-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    background: transparent;
}

/* Cellák háttere legyen átlátszó, hogy a tr szín látszódjon */
.rank-table thead th,
.rank-table tbody td {
    background-color: transparent !important;
}

.rank-table-wrapper {
    overflow: hidden;
    border-radius: 14px;
}

/* fejlécek */
.rank-table thead th {
    background: var(--cs2-panel-2);
    border-bottom: 1px solid var(--cs2-border);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--cs2-text-soft);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* sorok */
.rank-table tbody tr {
    border-color: transparent;
    transition:
        background 0.15s ease,
        transform 0.06s ease,
        box-shadow 0.15s ease;
}

.rank-table tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.85);
}

.rank-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.72);
}

.rank-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px var(--cs2-shadow-soft);
}

.rank-table tbody td {
    color: var(--cs2-text-soft);
    font-size: 13px;
}

/* pozíció badge */
.rank-pos-badge {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    background: #111827;
    color: var(--cs2-text-soft);
}

/* top 3 kiemelés */
.rank-row-1 .rank-pos-badge {
    background: radial-gradient(circle at top, #facc15, #b45309);
    color: #111827;
}

.rank-row-2 .rank-pos-badge {
    background: radial-gradient(circle at top, #e5e7eb, #6b7280);
    color: #020617;
}

.rank-row-3 .rank-pos-badge {
    background: radial-gradient(circle at top, #fb923c, #92400e);
    color: #111827;
}

/* felhasználó cella */
.rank-user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-username {
    font-weight: 600;
    font-size: 14px;
    color: #93c5fd;
}

.rank-username:hover {
    color: #bfdbfe;
    text-decoration: none;
}

.rank-user-sub {
    font-size: 11px;
    color: var(--cs2-text-muted);
}



/* ========== RATING / RANK BADGE ========== */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.rating-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
}

/* Rang színek */
.rank-rookie  { color: #9CA3AF; border-color: #4B5563; }
.rank-bronze  { color: #FBBF24; border-color: #92400E; background: #3F2A17; }
.rank-silver  { color: #E5E7EB; border-color: #9CA3AF; background: #1F2933; }
.rank-gold    { color: #FACC15; border-color: #D97706; background: #3B2F0F; }
.rank-plat    { color: #38BDF8; border-color: #0284C7; background: #0B2535; }
.rank-diamond { color: #5EEAD4; border-color: #14B8A6; background: #042F2E; }
.rank-elite   { color: #C4B5FD; border-color: #7C3AED; background: #1F1033; }
.rank-mythic  { color: #F9A8D4; border-color: #DB2777; background: #1C0F25; }



/* ========== PROFIL ADATOK TÁBLA ========== */

.profile-data-card {
    overflow: hidden;
}

.profile-data-title {
    margin: 0;
    padding: 12px 18px;
    border-bottom: 1px solid var(--cs2-border);
    font-size: 18px;
    font-weight: 600;
}

.profile-data-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: transparent;
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.profile-data-table tr {
    background: rgba(15,23,42,0.92);
    transition: background 0.15s ease;
}

.profile-data-table tr:nth-child(even) {
    background: rgba(15,23,42,0.80);
}

.profile-data-table tr:hover {
    background: rgba(37, 99, 235, 0.45);
}

.profile-data-table th,
.profile-data-table td {
    background-color: transparent !important;
    border: none;
    padding: 10px 18px;
    font-size: 13px;
}

.profile-data-table th {
    width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    color: var(--cs2-text-muted);
}

.profile-data-table td {
    color: var(--cs2-text-soft);
}


