/* UEGHL · Sieň slávy
   Styl stránky Sieň slávy a správy kartiček. Staví na design systému ueghl.com
   (proměnné --navy, --orange, --text…, písma Manrope a Barlow Condensed, třídy
   .entity-card, .btn, .section-head, .page-hero), proto se načítá až po něm.
   Všechny vlastní třídy mají předponu hof- (Hall of Fame), aby se nic nepotkalo
   se zbytkem webu. */

.hof { --hof-ground: #0B0E14; --hof-lift: #111724; --hof-card-ratio: 750 / 1050; }

.hof-intro {
    max-width: 46rem;
    margin: 0 0 1.75rem;
    font-size: .98rem;
    color: var(--text-2);
}

/* ═══ HRÁČ MESIACA (zvýraznená posledná kartička) ═══ */
.hof-featured {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.25rem;
    padding: 1.5rem 2rem 1.5rem 1.5rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 18% 45%, rgba(252,76,0,.16), transparent 42%),
        radial-gradient(ellipse 60% 70% at 22% 50%, var(--hof-lift), var(--hof-ground) 78%);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 40px rgba(0,0,0,.14);
    color: #fff;
    overflow: hidden;
}
.hof-featured[hidden] { display: none; }
.hof-featured::after {
    content: '';
    position: absolute;
    inset: auto -6rem -8rem auto;
    width: 26rem;
    height: 26rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(37,99,235,.14) 0%, transparent 70%);
    pointer-events: none;
}
.hof-featured-card {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 34rem;
    display: grid;
    place-items: center;
}
.hof-featured-card iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1rem;
    background: transparent;
    display: block;
}
.hof-featured-card .hof-flat { width: min(19rem, 100%); }
.hof-featured-body { position: relative; z-index: 1; min-width: 0; }

.hof-kicker {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: .75rem;
}
.hof-kicker::before { content: ''; display: block; width: 2rem; height: 2px; background: var(--orange); flex-shrink: 0; }
.hof-featured-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: -.01em;
    color: #fff;
    margin: 0 0 .5rem;
}
.hof-gamertag { font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.55); }
.hof-gamertag b { color: rgba(255,255,255,.85); font-weight: 800; }

.hof-club {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0 1.35rem;
    color: inherit;
    text-decoration: none;
}
.hof-club-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .8rem;
    object-fit: contain;
    padding: .28rem;
    background: #fff;
    border: 1px solid rgba(226,232,240,.72);
    flex-shrink: 0;
}
.hof-club-name { display: block; font-weight: 800; font-size: 1rem; line-height: 1.2; }
.hof-club-sub { display: block; font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.5); }
a.hof-club:hover .hof-club-name { color: var(--orange); }

/* štatistiky: tmavé boxy v štýle .stat-box */
.hof-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr));
    gap: .6rem;
    max-width: 40rem;
    margin-bottom: 1.25rem;
}
.hof-stat {
    padding: .85rem .5rem .75rem;
    border-radius: .75rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.hof-stat-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.1rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}
.hof-stat-lbl {
    margin-top: .35rem;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}
.hof-stat.is-rating { background: linear-gradient(135deg, rgba(252,76,0,.28), rgba(252,76,0,.08)); border-color: rgba(252,76,0,.45); }
.hof-stat.is-rating .hof-stat-val { color: #fff; }
.hof-stat.is-rating .hof-stat-lbl { color: #ffb08f; }

.hof-note { font-size: .78rem; color: rgba(255,255,255,.5); margin: -.35rem 0 1.25rem; max-width: 40rem; }

.hof-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.hof-btn-ghost {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.16);
}
.hof-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

.hof-demo-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    vertical-align: middle;
}
.hof-featured .hof-demo-chip, .hof-modal .hof-demo-chip { color: #fcd34d; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.35); }

/* ═══ FILTRE ═══ */
.hof-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}
.hof-toolbar[hidden] { display: none; }
.hof-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.hof-chips .btn { padding: .45rem .95rem; font-size: .8rem; }

/* ═══ ARCHÍV ═══ */
.hof-season { margin-bottom: 2.5rem; }
.hof-season-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.75rem; font-weight: 900; line-height: 1; color: var(--text); margin: 0; }
.hof-season-sub { font-size: .8rem; font-weight: 600; color: var(--text-3); margin-left: auto; }

.hof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.1rem;
}
.hof-tile { cursor: pointer; gap: .85rem; padding: .85rem .85rem 1rem 1.05rem; }
.hof-tile:focus-visible { outline: 3px solid rgba(252,76,0,.55); outline-offset: 2px; }

/* plochá kartička s naklápaním a odleskom */
.hof-flat {
    position: relative;
    display: block;
    aspect-ratio: var(--hof-card-ratio, 750 / 1050);
    border-radius: 4.27% / 3.05%;
    overflow: hidden;
    background: var(--hof-ground, #0B0E14);
    box-shadow: 0 14px 30px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.18);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
    will-change: transform;
}
.hof-flat.is-live { transition: transform .08s linear, box-shadow .25s; }
.hof-flat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.hof-flat-glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.38), rgba(255,255,255,0) 46%);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.hof-flat.is-live .hof-flat-glare { opacity: 1; }
.hof-tile:hover .hof-flat { box-shadow: 0 22px 44px rgba(15,23,42,.28), 0 4px 10px rgba(15,23,42,.18); }

.hof-tile-meta { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.hof-tile-month { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.hof-tile-name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; color: var(--text); }
.hof-tile-club { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-3); min-width: 0; }
.hof-tile-club img { width: 1.15rem; height: 1.15rem; object-fit: contain; flex-shrink: 0; }
.hof-tile-club span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-tile-chips { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.hof-tile-chips .muted-chip { font-size: .62rem; }
.hof-rating-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
}
.hof-rating-chip b { font-family: 'Barlow Condensed', sans-serif; font-size: .9rem; font-weight: 900; color: #ff8c5a; letter-spacing: 0; }

.hof-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-3);
    font-size: .95rem;
}
.hof-empty-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 900; color: var(--text); margin-bottom: .35rem; }

/* ═══ MODÁLNE OKNO S 3D KARTIČKOU ═══ */
body.hof-locked { overflow: hidden; }
.hof-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 1.25rem; }
.hof-modal[hidden] { display: none; }
.hof-modal-backdrop { position: absolute; inset: 0; background: rgba(6,9,18,.74); backdrop-filter: blur(6px); }
.hof-modal-panel {
    position: relative;
    width: min(1080px, 100%);
    max-height: calc(100dvh - 2.5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
    border-radius: 1.25rem;
    overflow: hidden;
    background: radial-gradient(ellipse 60% 70% at 28% 50%, var(--hof-lift, #111724), var(--hof-ground, #0B0E14) 78%);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 40px 90px rgba(0,0,0,.5);
    color: #fff;
    animation: hof-pop .28s cubic-bezier(.2,.9,.25,1.05);
}
@keyframes hof-pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.hof-modal-stage { position: relative; height: min(78dvh, 760px); min-height: 22rem; }
.hof-modal-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.hof-modal-hint {
    position: absolute;
    left: 0; right: 0; bottom: .9rem;
    text-align: center;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(255,255,255,.38);
    pointer-events: none;
}
.hof-modal-info {
    padding: 2.4rem 2rem 1.75rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0));
}
.hof-modal-info .hof-featured-name { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.hof-modal-info .hof-stats { grid-template-columns: repeat(auto-fit, minmax(4.3rem, 1fr)); }
.hof-modal-info .hof-stat-val { font-size: 1.8rem; }
.hof-modal-close, .hof-modal-nav {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(10,14,26,.6);
    color: #fff;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.hof-modal-close:hover, .hof-modal-nav:hover { background: var(--orange); border-color: var(--orange); }
.hof-modal-close:focus-visible, .hof-modal-nav:focus-visible { outline: 3px solid rgba(252,76,0,.6); outline-offset: 2px; }
.hof-modal-close { top: .9rem; right: .9rem; }
.hof-modal-nav { top: 50%; transform: translateY(-50%); }
.hof-modal-nav.prev { left: .9rem; }
.hof-modal-nav.next { left: calc(55% - 3.5rem); }
.hof-modal-nav[disabled] { opacity: .3; pointer-events: none; }
.hof-modal-nav svg, .hof-modal-close svg { width: 1.1rem; height: 1.1rem; }
.hof-copied { font-size: .75rem; font-weight: 700; color: #86efac; align-self: center; }

/* odkaz na správu (len pre adminov) */
.hof-admin-btn { gap: .4rem; }
.hof-admin-btn svg { width: .95rem; height: .95rem; }

/* ═══ RESPONZÍVNE ═══ */
@media (max-width: 980px) {
    .hof-featured { grid-template-columns: 1fr; padding: 1.25rem; gap: 1.25rem; text-align: left; }
    .hof-featured-card { height: auto; }
    .hof-featured-card .hof-flat { width: min(17rem, 72vw); }
    .hof-modal { padding: 0; place-items: stretch; }
    .hof-modal-panel { grid-template-columns: 1fr; max-height: 100dvh; height: 100dvh; border-radius: 0; overflow-y: auto; }
    .hof-modal-stage { height: 62dvh; min-height: 20rem; }
    .hof-modal-info { border-left: 0; border-top: 1px solid rgba(255,255,255,.06); padding: 1.5rem 1.25rem 2rem; overflow: visible; }
    .hof-modal-nav { top: calc(31dvh); }
    .hof-modal-nav.next { left: auto; right: .9rem; }
}
@media (max-width: 540px) {
    .hof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .hof-tile { padding: .6rem .6rem .75rem .8rem; gap: .6rem; }
    .hof-tile-name { font-size: .92rem; }
    .hof-season-sub { width: 100%; margin-left: 0; }
    .hof-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .hof-flat, .hof-flat.is-live { transition: none; transform: none; }
    .hof-modal-panel { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   SPRÁVA KARTIČEK (sien-slavy-admin)
   ═══════════════════════════════════════════════════════════ */
.hofa-mode {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: .9rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: .86rem;
}
.hofa-mode.is-api { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.hofa-mode b { font-weight: 800; }
.hofa-mode svg { width: 1.2rem; height: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.hofa-mode .hofa-token { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.hofa-mode .hofa-token input { max-width: 22rem; padding: .45rem .7rem; font-size: .85rem; }

.hofa-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 1.5rem; align-items: start; margin-bottom: 2.5rem; }
.hofa-form { padding: 1.35rem 1.5rem 1.5rem; }
.hofa-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hofa-h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.7rem; font-weight: 900; line-height: 1.05; color: var(--text); margin: .15rem 0 0; }
.hofa-fs { border: 0; border-top: 1px solid var(--border); padding: 1rem 0 .4rem; margin: 0; }
.hofa-fs legend { padding: 0 .5rem 0 0; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.hofa-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.hofa-row[hidden] { display: none; }
.hofa-field { flex: 1 1 7rem; min-width: 0; margin-bottom: .75rem; }
.hofa-field.hofa-grow { flex: 3 1 14rem; }
.hofa-field input, .hofa-field select, .hofa-field textarea { font-family: 'Manrope', sans-serif; padding: .6rem .8rem; }
.hofa-field input[type=file] { padding: .5rem; font-size: .82rem; }
.hofa-field textarea { resize: vertical; }
.hofa-opt { font-weight: 600; color: var(--text-3); font-size: .72rem; }
.hofa-help { font-size: .76rem; color: var(--text-3); line-height: 1.45; margin: -.2rem 0 .75rem; }
.hofa-help code, .hofa-pending code { font-size: .74rem; background: #f1f5f9; border-radius: .3rem; padding: .05rem .3rem; color: var(--text-2); }
.hofa-check { display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; color: var(--text-2); margin: .25rem 0 .5rem; cursor: pointer; }
.hofa-check input { width: 1.15rem; height: 1.15rem; }

.hofa-drop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    margin-bottom: .6rem;
    border: 2px dashed #cbd5e1;
    border-radius: .9rem;
    background: var(--bg-2);
    cursor: pointer;
    transition: border-color .15s, background .15s;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-2);
}
.hofa-drop:hover, .hofa-drop.is-over { border-color: var(--orange); background: #fff7f3; }
.hofa-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hofa-drop:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252,76,0,.12); }
.hofa-drop-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .75rem; background: #fff; border: 1px solid var(--border); color: var(--orange); flex-shrink: 0; }
.hofa-drop-icon svg { width: 1.3rem; height: 1.3rem; }
.hofa-drop-text b { color: var(--text); }
.hofa-drop-text small { font-size: .75rem; color: var(--text-3); }
.hofa-file-info { font-size: .78rem; font-weight: 600; color: var(--text-2); margin: -.1rem 0 .75rem; }
.hofa-file-info:empty { display: none; }
.hofa-file-info .is-warn { color: #b45309; }
.hofa-file-info .is-bad { color: #dc2626; }

.hofa-errors { padding: .75rem 1rem; border-radius: .7rem; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .84rem; font-weight: 600; margin: .5rem 0 1rem; }
.hofa-errors[hidden] { display: none; }
.hofa-errors ul { margin: .25rem 0 0 1.1rem; }
.hofa-submit { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding-top: .5rem; }
.hofa-status { font-size: .82rem; font-weight: 700; color: #16a34a; }
.hofa-status.is-bad { color: #dc2626; }

.hofa-preview { position: sticky; top: 90px; }
.hofa-preview-3d {
    height: 30rem;
    border-radius: 1.1rem;
    overflow: hidden;
    background: radial-gradient(ellipse 60% 55% at 50% 45%, #111724, #0B0E14 78%);
    border: 1px solid rgba(15,23,42,.2);
    box-shadow: var(--sh-md);
    margin-bottom: 1rem;
}
.hofa-preview-3d iframe { width: 100%; height: 100%; border: 0; display: block; }
.hofa-preview-empty { height: 100%; display: grid; place-items: center; padding: 2rem; text-align: center; color: rgba(255,255,255,.45); font-size: .85rem; font-weight: 600; }
.hofa-preview-tile .hof-tile { max-width: 15rem; pointer-events: none; }

.hofa-list-wrap { margin-bottom: 2rem; }
.hofa-item { cursor: default; }
.hofa-item img { width: 3rem; height: 4.2rem; object-fit: cover; border-radius: .3rem; background: #0B0E14; flex-shrink: 0; box-shadow: 0 4px 10px rgba(15,23,42,.18); }
.hofa-item-body { flex: 1; min-width: 0; }
.hofa-item-title { font-weight: 800; color: var(--text); font-size: .95rem; }
.hofa-item-sub { font-size: .78rem; color: var(--text-3); }
.hofa-item-actions { display: flex; gap: .4rem; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.hofa-item.is-editing { background: #fff7f3; }
.hofa-flag { display: inline-flex; padding: .1rem .45rem; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-left: .35rem; vertical-align: middle; }
.hofa-flag.is-new { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.hofa-flag.is-changed { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.hofa-flag.is-demo { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.hofa-empty-list { padding: 1.5rem; text-align: center; color: var(--text-3); font-size: .9rem; }

.hofa-export { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 1.35rem 1.5rem; margin-bottom: 2rem; border-color: rgba(252,76,0,.35); }
.hofa-export[hidden] { display: none; }
.hofa-export > div:first-child { flex: 1 1 26rem; }
.hofa-export-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.hofa-import { margin: 0; color: var(--text-2); font-size: .875rem; }
.hofa-pending { margin-top: .6rem; font-size: .8rem; color: var(--text-2); }
.hofa-pending:empty { display: none; }

@media (max-width: 1100px) {
    .hofa-layout { grid-template-columns: 1fr; }
    .hofa-preview { position: static; display: grid; grid-template-columns: minmax(0, 1fr) 13rem; gap: 1rem; align-items: start; }
    .hofa-preview > .section-label { grid-column: 1 / -1; margin-bottom: 0 !important; }
    .hofa-preview-3d { height: 24rem; margin: 0; }
}
@media (max-width: 640px) {
    .hofa-form { padding: 1.1rem; }
    .hofa-preview { grid-template-columns: 1fr; }
    .hofa-item { flex-wrap: wrap; }
    .hofa-item-actions { width: 100%; justify-content: flex-start; }
}
