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

:root {
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --card-border: #30363d;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --accent-primary: #58a6ff;
    --match-high: #2ea043;
    --match-med: #d29922;
    --match-low: #f85149;
}

body {
    /* Új, finoman világító háttér */
    background: radial-gradient(circle at top right, #1a2333, #0d1117);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Kétoszlopos asztali nézet */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}
@media (min-width: 850px) {
    .dashboard-layout {
        grid-template-columns: 320px 1fr;
        align-items: start;
    }
}

.card-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 25px;
    margin-bottom: 25px;
}

h1, h2, h3 { color: #ffffff; margin-top: 0; }
h2 { font-size: 1.5rem; margin-bottom: 20px; }
h3 { font-size: 1.2rem; border-bottom: 1px solid var(--card-border); padding-bottom: 10px; margin-bottom: 20px; }
.highlight { color: var(--accent-primary); }

/* BEJELENTKEZŐ KÉPERNYŐ (Login) */
.auth-container { max-width: 500px; margin: auto; text-align: center; }
.brand-logo { font-size: 2.2rem; font-weight: 800; background: -webkit-linear-gradient(#58a6ff, #bc8cff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
.brand-tagline { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; line-height: 1.5; }
.steam-login-wrapper { display: inline-block; transition: transform 0.2s; }
.steam-login-wrapper:hover { transform: scale(1.05); }
.security-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 25px; line-height: 1.5; }

/* PROFIL ÉS BAL OSZLOP */
.profile-header { text-align: center; }
.avatar { border: 3px solid var(--accent-primary); border-radius: 50%; width: 100px; height: 100px; margin-bottom: 15px; object-fit: cover; box-shadow: 0 0 15px rgba(88,166,255,0.3); }
.stats-box { background-color: rgba(88, 166, 255, 0.1); border: 1px solid rgba(88, 166, 255, 0.2); padding: 12px; border-radius: 8px; margin-bottom: 20px; color: var(--accent-primary); font-weight: 600; text-align: center; }
.alert-box { background-color: rgba(248, 81, 73, 0.1); border: 1px solid rgba(248, 81, 73, 0.2); color: var(--match-low); padding: 15px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9em; line-height: 1.5; text-align: center;}

/* JÁTÉK CSEMPE (GRID) */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.game-card { background: #0d1117; border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; transition: transform 0.2s, border-color 0.2s; }
.game-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); }
.game-banner { width: 100%; height: 90px; object-fit: cover; display: block; border-bottom: 1px solid var(--card-border); }
.game-info { padding: 12px; display: flex; flex-direction: column; gap: 5px; }
.game-title { font-weight: 600; font-size: 0.9em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-hours { font-size: 0.8em; color: var(--text-muted); }

/* PÁROSÍTÁSOK */
.match-item { display: flex; justify-content: space-between; align-items: center; background-color: #0d1117; border: 1px solid var(--card-border); padding: 15px; border-radius: 8px; margin-bottom: 10px; cursor: pointer; transition: all 0.2s ease; }
.match-item:hover { border-color: var(--accent-primary); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.match-info { display: flex; flex-direction: column; gap: 4px; }
.match-name { font-weight: 600; color: #ffffff; display: flex; align-items: center; gap: 6px; }
.dropdown-arrow { font-size: 0.7em; color: var(--text-muted); transition: transform 0.3s; }
.match-discord { font-size: 0.85em; color: var(--accent-primary); font-family: monospace; background: rgba(88,166,255,0.1); padding: 2px 6px; border-radius: 4px; display: inline-block; width: fit-content;}
.match-tags { font-size: 0.8em; color: var(--text-muted); }
.match-pct { font-weight: 800; font-size: 1.1em; padding: 6px 12px; border-radius: 6px; color: #fff; }
.match-pct.high { background-color: var(--match-high); }
.match-pct.medium { background-color: var(--match-med); }
.match-pct.low { background-color: var(--match-low); }

/* LENYÍLÓ RÉSZLETEK */
.match-details { background-color: #0d1117; padding: 15px; border-radius: 0 0 8px 8px; margin-top: -12px; margin-bottom: 15px; border: 1px solid var(--card-border); border-top: none; }
.match-details-header { font-size: 0.85em; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.shared-game-item { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 0.9em; background: var(--card-bg); padding: 10px; border-radius: 6px; border: 1px solid var(--card-border);}
.shared-game-item:last-child { margin-bottom: 0; }
.shared-game-item img { width: 80px; height: auto; margin-right: 15px; border-radius: 4px; }
.sg-info { display: flex; flex-direction: column; gap: 3px; }
.sg-info strong { color: #ffffff; }
.sg-hours { color: var(--text-muted); font-size: 0.85em; }
.sg-time { color: var(--text-muted); font-size: 0.8em; }
.sg-active { color: var(--match-high); font-weight: 600; }
.empty-match { color: var(--match-med); font-style: italic; text-transform: none; letter-spacing: normal; }

/* ÜRES ÁLLAPOT (SCANNING ANIMÁCIÓ) */
.empty-state { text-align: center; padding: 40px 20px; }
.radar-spinner { width: 60px; height: 60px; border: 4px solid rgba(88, 166, 255, 0.1); border-top-color: var(--accent-primary); border-radius: 50%; animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; margin: 0 auto 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.empty-state h3 { border: none; color: var(--accent-primary); margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); font-size: 0.95em; line-height: 1.5; margin-bottom: 25px; }

/* ŰRLAPOK ÉS GOMBOK */
.discord-form label { display: block; margin-bottom: 8px; font-size: 0.9em; color: var(--text-main); font-weight: 600; }
.input-group { display: flex; gap: 10px; flex-direction: column;}
.discord-form input { flex: 1; padding: 12px; border: 1px solid var(--card-border); border-radius: 6px; background-color: #0d1117; color: #ffffff; font-family: inherit; transition: border-color 0.2s; }
.discord-form input:focus { outline: none; border-color: var(--accent-primary); }
.btn-save { padding: 12px; background-color: var(--match-high); color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background-color 0.2s; }
.btn-save:hover { background-color: #238636; }
.btn-invite { padding: 12px 24px; background-color: var(--accent-primary); color: #000; border: none; border-radius: 6px; font-weight: 800; font-size: 1em; cursor: pointer; transition: transform 0.2s, background-color 0.2s; box-shadow: 0 0 15px rgba(88,166,255,0.4); }
.btn-invite:hover { transform: translateY(-2px); background-color: #79b8ff; }
.btn-logout { display: block; width: 100%; padding: 12px; background-color: transparent; border: 1px solid var(--card-border); color: var(--text-muted); text-decoration: none; border-radius: 6px; font-weight: 600; text-align: center; transition: all 0.2s; box-sizing: border-box; margin-top: 15px;}
.btn-logout:hover { border-color: var(--match-low); color: var(--match-low); background: rgba(248, 81, 73, 0.05); }

/* Chart.js vászon */
#dnaChart { width: 100% !important; height: auto !important; max-height: 250px; }