/* VALORANT sayfası teması: kırmızı / koyu lacivert */
body.val {
    --bg-main: #0f1923;
    --bg-dungeon: #131f2b;
    --bg-surface: #17232f;
    --bg-card: #1b2733;
    --bg-card-hover: #223140;
    --border-stone: #2e3f4f;
    --border-highlight: #4a6178;
    --accent-gold: #ff4655;
    --accent-gold-dark: #b4303c;
    --accent-gold-soft: rgba(255, 70, 85, 0.14);
    --accent-cyan: #5ee0d0;
    --text-secondary: #b6c2cf;
    --pixel-gold-shadow: 0 4px 0 #7a1b24, inset 0 1px 0 rgba(255, 255, 255, 0.25);
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
        radial-gradient(ellipse 60% 40% at 10% 0%, rgba(255,70,85,0.15), transparent 70%),
        radial-gradient(ellipse 50% 40% at 95% 20%, rgba(94,224,208,0.08), transparent 70%);
}
body.val .brand-badge { background: linear-gradient(180deg, #ff6b78, #ff4655); border-color: #ffc2c8; color: #fff; box-shadow: 0 3px 0 #7a1b24; }
body.val .hero h1 span { background: linear-gradient(90deg, #ffb3ba, #ff4655 60%, #d92638); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.val .section-header { border-image: linear-gradient(180deg, #ff4655, #5ee0d0) 1; }

.role-badge { display:inline-block; font-size:.7rem; font-weight:800; padding:.15rem .5rem; border-radius:6px; text-transform:uppercase; letter-spacing:.04em; border:1px solid currentColor; }
.role-duelist { color:#ff6b78; background:rgba(255,70,85,.12); }
.role-initiator { color:#f5b041; background:rgba(245,176,65,.12); }
.role-controller { color:#c084fc; background:rgba(192,132,252,.12); }
.role-sentinel { color:#5ee0d0; background:rgba(94,224,208,.12); }

.agent-card .agent-name { font-size:1.15rem; font-weight:800; }
.agent-card .agent-meta { margin-top:.5rem; font-size:.85rem; color:var(--text-secondary); }
.agent-card .agent-diff { font-size:.78rem; color:var(--text-muted); margin-top:.5rem; }

.val-table { width:100%; border-collapse:collapse; font-size:.92rem; }
.val-table th, .val-table td { padding:.65rem .9rem; text-align:left; border-bottom:1px solid var(--border-stone); }
.val-table th { color:var(--accent-gold); font-family:var(--font-pixel); font-size:.78rem; text-transform:uppercase; background:var(--bg-surface); }
.val-table tr:hover td { background:var(--bg-card); }

.val-footer { text-align:center; padding:2rem 0 3rem; color:var(--text-muted); }
.val-footer a { color:var(--accent-gold); text-decoration:none; font-weight:700; }

/* Görseller ve ajan detay penceresi */
button.agent-card { text-align:left; font:inherit; color:inherit; cursor:pointer; width:100%; position:relative; overflow:hidden; }
.agent-img { display:block; width:96px; height:96px; object-fit:contain; margin:0 0 .5rem auto; position:absolute; top:.6rem; right:.6rem; filter:drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.agent-card .agent-meta { padding-right:7rem; }
.map-img { display:block; width:calc(100% + 2.5rem); max-width:none; margin:-1.25rem -1.25rem .9rem; height:150px; object-fit:cover; border-radius:12px 12px 0 0; }
.agent-modal { position:fixed; inset:0; z-index:300; background:rgba(5,9,14,.82); backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; padding:1rem; }
.agent-modal[hidden] { display:none; }
.modal-box { position:relative; display:flex; gap:1.5rem; max-width:860px; width:100%; max-height:90vh; overflow:auto; background:var(--bg-card); border:2px solid var(--border-highlight); border-radius:14px; padding:1.5rem; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.modal-portrait { width:240px; max-width:35%; object-fit:contain; align-self:flex-end; }
.modal-body { flex:1; min-width:0; }
.modal-body h3 { font-size:1.8rem; margin:.4rem 0; }
.modal-desc { color:var(--text-secondary); font-size:.92rem; margin-bottom:1rem; }
.modal-close { position:absolute; top:.6rem; right:.6rem; background:var(--bg-surface); color:var(--text-primary); border:1px solid var(--border-stone); border-radius:8px; width:34px; height:34px; cursor:pointer; }
.modal-close:hover { border-color:var(--accent-gold); }
.ability-list { list-style:none; display:grid; gap:.7rem; }
.ability-list li { display:flex; gap:.75rem; align-items:flex-start; background:var(--bg-surface); border:1px solid var(--border-stone); border-radius:10px; padding:.65rem .8rem; }
.ability-list img { width:36px; height:36px; object-fit:contain; flex:none; background:rgba(255,255,255,.06); border-radius:6px; padding:4px; }
.ability-list p { font-size:.82rem; color:var(--text-secondary); margin-top:.15rem; line-height:1.45; }
@media (max-width:640px) { .modal-box { flex-direction:column; } .modal-portrait { display:none; } .agent-img { width:72px; height:72px; } .agent-card .agent-meta { padding-right:5rem; } }

/* Haritalar, araçlar, sözlük */
button.map-card { text-align:left; font:inherit; color:inherit; cursor:pointer; width:100%; }
.val-tool h3 { margin-bottom:.8rem; }
.val-tool select.search-input { width:100%; }
.weapon-img { height:22px; width:auto; max-width:70px; object-fit:contain; vertical-align:middle; margin-right:.6rem; }
.lineup-box { margin-top:1rem; display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.lineup-box strong { flex-basis:100%; }
.lineup-box select { flex:1; min-width:160px; }
.callout-list { margin:1rem 0; max-height:220px; overflow:auto; display:grid; gap:.5rem; }
.callout-group { background:var(--bg-surface); border:1px solid var(--border-stone); border-radius:8px; padding:.5rem .7rem; font-size:.82rem; }
.callout-group strong { display:block; color:var(--accent-gold); }
.callout-group span { color:var(--text-secondary); }
.map-mini { background:rgba(255,255,255,.04); border-radius:10px; padding:.5rem; max-width:40%; }
.comp-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:.8rem; }
.comp-slot { display:flex; flex-direction:column; align-items:center; gap:.4rem; text-align:center; padding:.9rem .5rem; cursor:pointer; font:inherit; color:inherit; }
.comp-slot img { width:64px; height:64px; object-fit:contain; }
.xh-list { list-style:none; margin-top:.8rem; display:grid; gap:.5rem; }
.xh-list li { display:flex; gap:.5rem; align-items:center; background:var(--bg-surface); border:1px solid var(--border-stone); border-radius:8px; padding:.5rem .7rem; }
.xh-list li div { flex:1; min-width:0; }
.xh-list code { display:block; font-size:.72rem; color:var(--text-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xh-empty { color:var(--text-muted); font-size:.85rem; }
.gloss-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:.8rem; }
.gloss-item { background:var(--bg-card); border:1px solid var(--border-stone); border-radius:10px; padding:.8rem 1rem; }
.gloss-item dt { font-weight:800; color:var(--accent-gold); }
.gloss-item dd { font-size:.88rem; color:var(--text-secondary); margin-top:.2rem; }
.val-table td { vertical-align:middle; }
.table-wrap { overflow-x:auto; }
@media (max-width:640px) { .map-mini { display:none; } }

/* Açık tema */
[data-theme="light"] body.val {
    --bg-main:#eef2f6; --bg-dungeon:#e2e8ef; --bg-surface:#f7f9fb; --bg-card:#ffffff; --bg-card-hover:#f1f5f9;
    --border-stone:#cbd5e1; --border-highlight:#94a3b8;
    --text-primary:#0f1923; --text-secondary:#3c4b5c; --text-muted:#64748b;
    --accent-gold:#d92638; --accent-gold-dark:#a51c2a; --accent-gold-soft:rgba(217,38,56,.1); --accent-cyan:#0f766e;
    background-image: linear-gradient(rgba(0,0,0,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,.03) 1px, transparent 1px);
}
[data-theme="light"] .agent-modal { background:rgba(230,236,243,.85); }
