/* ========== ROOT COLORS ========== */
:root {
    --cs2-orange: #f7931a;
    --cs2-orange-light: #ffa63c;
    --cs2-bg: #050608;
    --cs2-panel: #111216;
    --cs2-panel-2: #161720;
    --cs2-border: #262738;
    --cs2-text: #e6e6e6;
}

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

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

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

/* linkek */
a {
    color: #82cfff;
    text-decoration: none;
}
a:hover {
    color: #ffffff;
    text-decoration: none;
}

.text-soft {
    color: #9fa5c2 !important;
}

/* ========== NAVBAR ========== */
.cs2-navbar {
    background: linear-gradient(to right, #0e1016, #151823);
    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 – EZ A LÉNYEG! */
.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: #f5f7ff !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.08);
    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, #050608, #050608);
}

/* ========== SIDEBAR ========== */
.cs2-sidebar {
    flex-shrink: 0;
    width: 250px;
    padding: 12px 10px;
    background: #101010;
    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: #272727;
    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: #111111;
    border: 1px solid #1f1f1f;
    transition: background 0.15s ease, border-color 0.15s ease;
}

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

.cs2-friend-avatar {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #222;
}

.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: #f5f5f5;
}

.cs2-friend-sub {
    font-size: 11px;
    color: #b0b0b0;
}

.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, #1b1c26 0, #101117 40%, #080910 100%);
    border: 1px solid var(--cs2-border);
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.65);
}

/* 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: #c2c7e0;
}

.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: #4fd6ff;
    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 rgba(0,0,0,0.7);
}

.cs2-btn-danger {
    background: #d64545 !important;
    color: #fff !important;
}

.cs2-btn-dark {
    background: #1f202b !important;
    color: #f0f0f0 !important;
}

/* ========== INPUTS ========== */
.form-control,
.form-select {
    background: #151620;
    border: 1px solid #303248;
    color: #e6e6e6;
    font-size: 14px;
}

.form-control::placeholder {
    color: #6d7290;
}

.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: #12131b;
}

.table-dark td,
.table-dark th {
    border-color: #26283c !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: #9da3c0;
}

.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: #181928;
    border-radius: 8px;
    padding: 6px 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.feed-comment-date {
    font-size: 11px;
    color: #9ea4c5;
}

.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 CARDS ========== */
.match-item {
    background: #13141d;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

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

/* ========== SMALL STAT LABELS ========== */
.stat-label {
    text-transform: uppercase;
    font-size: 11px;
    color: #8a8ca4;
    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;
}


.cs2-footer {
    border-top: 1px solid var(--cs2-border);
    background: #050608;
    padding: 12px 30px;
    font-size: 13px;
    color: #9fa5c2;
}

.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: #7d819c;
    font-size: 12px;
}

.cs2-footer-links a {
    margin-right: 12px;
    font-size: 12px;
    color: #c2c6e0;
}

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

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

.cs2-footer-right {
    font-size: 12px;
    color: #c2c6e0;
}

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