/* =======================================
   HŐSKÓDEX ONE-PAGER — codexOnePager.css
   Sötét, prémium fantasy "one-pager" kártya
   Megosztott stílus: admin/codex-export.html (generátor) ÉS
   hero-index.html (One Pager tab) is ezt tölti be — ezért a css/
   alatt van, nem az admin/ alatt, ami a production deploy-on le van tiltva.
   ======================================= */

.gen-progress {
    margin-top: 16px;
}

.gen-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    overflow: hidden;
}

.gen-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #dab24c);
    transition: width 0.2s ease;
}

.gen-progress-label {
    margin-top: 6px;
}

.gen-preview-wrap {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: #0a0b10;
    border-radius: var(--radius);
    overflow: auto;
}

/* ---------- A kártya maga (1000x1500, ez kerül exportálásra 1:1) ---------- */

.gen-card {
    position: relative;
    width: 1000px;
    min-height: 1200px;
    flex-shrink: 0;
    padding-bottom: 30px;
    background: radial-gradient(1200px 900px at 50% -10%, #23273a 0%, #0c0d13 55%, #08090d 100%);
    border: 1px solid #3a3f5a;
    color: #e9e9f2;
    font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

.gen-card.is-landscape {
    width: 1600px;
    min-height: 0;
    padding-bottom: 0;
    background: #000;
}

.gen-card.is-empty::before {
    content: "Válassz egy hőst az előnézethez.";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 1rem;
}

/* Banner + gradient átmenet */

.gc-banner-wrap {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
}

.gc-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.gc-banner-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,9,13,0) 45%, rgba(8,9,13,0.75) 80%, #08090d 100%);
}

.gc-tier-badge {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
}

.gc-relic-showcase {
    position: absolute;
    bottom: 24px;
    right: 28px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: radial-gradient(circle, rgba(150,110,255,0.35), rgba(40,20,70,0.55));
    border: 2px solid rgba(190,150,255,0.9);
    box-shadow: 0 0 10px rgba(160,110,255,0.5), inset 0 0 6px rgba(200,170,255,0.3);
}

.gc-relic-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-relic-showcase.is-locked {
    filter: grayscale(1) brightness(0.55);
    border-color: rgba(150,150,160,0.6);
    box-shadow: none;
    cursor: default;
}

.gc-export-relic-badge {
    position: absolute;
    bottom: 24px;
    right: 28px;
    width: 136px;
    height: 136px;
    border-radius: 50%;
    object-fit: cover;
    background: radial-gradient(circle, rgba(150,110,255,0.35), rgba(40,20,70,0.55));
    border: 2px solid rgba(190,150,255,0.9);
    box-shadow: 0 0 10px rgba(160,110,255,0.5), inset 0 0 6px rgba(200,170,255,0.3);
}

.gc-passive-badge {
    position: absolute;
    top: 24px;
    left: 28px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: rgba(10,11,16,0.6);
    border: 2px solid rgba(201,161,59,0.7);
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

.gc-portrait-logo-badge {
    position: absolute;
    top: 24px;
    left: 28px;
    height: 52px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.7));
}

/* Passzíva rubrika — az azonosító sor alatt, a passzíva ikonja + leírása */

.gc-passive-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 18px 40px 14px;
    padding: 12px 16px;
    background: rgba(124, 92, 255, 0.07);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 10px;
}

.gc-passive-box img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(201,161,59,0.5);
    flex-shrink: 0;
}

.gc-passive-box-text {
    min-width: 0;
}

.gc-passive-box-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a58cff;
    font-weight: 700;
    margin-bottom: 3px;
}

.gc-passive-box-name {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f0e6c8;
    margin-bottom: 2px;
}

.gc-passive-box-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #c7c9dc;
}

/* Avatar — a banner alján átfedve */

.gc-avatar-row {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 0 40px;
    margin-top: -150px;
}

.gc-avatar {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent, #c9a13b);
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    background: #1a1c26;
    flex-shrink: 0;
}

.gc-identity {
    padding-bottom: 14px;
    min-width: 0;
}

.gc-name {
    font-family: 'AOW', serif;
    font-size: 3rem;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
    color: #f3e6c4;
    text-shadow: 0 3px 12px rgba(0,0,0,0.7);
}

.gc-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #cfd2e6;
}

.gc-meta .gc-tier-pill {
    font-weight: 700;
    color: #1a1500;
    background: linear-gradient(180deg, #f0cf6a, #c9a13b);
    padding: 2px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.gc-meta .gc-dot { opacity: 0.5; }

.gc-meta .gc-class-text { font-weight: 700; }

.gc-partner-logo {
    align-self: flex-end;
    margin-bottom: 14px;
    margin-left: 4px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.gc-partner-logo-label {
    font-size: 0.75rem;
    font-style: italic;
    color: #cfd2e6;
    white-space: nowrap;
}

.gc-partner-logo a {
    display: block;
    opacity: 0.92;
    transition: opacity 0.15s, transform 0.15s;
}

.gc-partner-logo a:hover {
    opacity: 1;
    transform: scale(1.04);
}

.gc-partner-logo img {
    display: block;
    height: 64px;
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6));
}

/* Rövid leírás */

.gc-bio {
    margin: 18px 40px 0;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    font-size: var(--gc-bio-size, 0.95rem);
    line-height: 1.5;
    color: #c7c9dc;
}

/* Statok */

.gc-section-title {
    margin: 26px 40px 12px;
    font-family: 'AOW', serif;
    font-size: 1.3rem;
    color: #c9a13b;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gc-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(201,161,59,0.6), transparent);
}

.gc-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 10px;
    margin: 0 40px;
}

.gc-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 7px;
    padding: 6px 8px;
    min-width: 0;
}

.gc-stat img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.gc-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
    min-width: 0;
}

.gc-stat-label {
    font-size: 0.58rem;
    color: #9a9db3;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gc-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f0e6c8;
}

/* Képességek */

.gc-abilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 0 40px;
}

.gc-ability {
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 12px;
}

.gc-ability img.gc-ability-icon {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(201,161,59,0.5);
    flex-shrink: 0;
}

/* Ultimate (mindig a 4. képesség) — kicsit fényes keret */
.gc-abilities .gc-ability:nth-child(4) img.gc-ability-icon {
    border-color: rgba(255,214,120,0.95);
    box-shadow: 0 0 14px rgba(255,200,90,0.7), 0 0 4px rgba(255,235,180,0.85);
}

.gc-ability-body {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gc-ability-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-ability-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f0e6c8;
    line-height: 1.2;
}

.gc-ability-mana {
    font-size: 0.66rem;
    font-style: italic;
    color: #b9d3f0;
    white-space: nowrap;
}

.gc-ability-activation {
    font-size: 0.64rem;
    font-weight: 700;
    color: #f0e6c8;
    background: rgba(201,161,59,0.16);
    border: 1px solid rgba(201,161,59,0.5);
    border-radius: 999px;
    padding: 1px 9px;
    white-space: nowrap;
}

/* Álló: a kártya jobb felső sarkába kerül */
.gen-card:not(.is-landscape) .gc-ability-activation {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Fekvő: a fejléc sor végére, jobb oldalra tolva */
.gen-card.is-landscape .gc-ability-head .gc-ability-activation {
    margin-left: auto;
}

.gc-ability-desc {
    font-size: var(--gc-desc-size, 0.85rem);
    font-family: var(--gc-desc-font, inherit);
    line-height: 1.35;
    color: #b6b9cf;
}

.gc-ability-fx {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.gc-ability-fx img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
}

.gc-ability-fx img.is-debuff {
    background: rgba(224,90,90,0.35);
    box-shadow: 0 0 8px rgba(224,90,90,0.55);
}

.gc-ability-fx img.is-buff {
    background: rgba(76,175,125,0.35);
    box-shadow: 0 0 8px rgba(76,175,125,0.55);
}

/* Skinek — export generátor kompakt galéria (.gc-skins).
   A hőskódex Adatlap carouselt (.gc-skins-carousel) nem érinti. */

.gc-skins {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 40px 20px;
    justify-content: center;
}

.gc-skins .gc-skin {
    flex: 0 0 auto;
    width: var(--skin-w, 254px);
}

.gc-skins .gc-skin > img {
    display: block;
    width: var(--skin-w, 254px);
    height: var(--skin-h, 156px);
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.03);
}

.gc-skins-carousel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 40px 20px;
}

.gc-skins-viewport {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.gc-skins-track {
    display: flex;
    transition: transform 0.3s ease;
}

.gc-skin {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.gc-skin-img-wrap {
    position: relative;
    width: 100%;
}

.gc-skin-img-wrap > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
}

.gc-skin.is-locked {
    cursor: pointer;
}

.gc-skin.is-locked .gc-skin-img-wrap > img {
    filter: grayscale(1) brightness(0.45);
}

.gc-skin-lock-group {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.gc-skin-lock-group .skin-card-lock {
    font-size: 2.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.gc-skin-lock-group .skin-card-price-row {
    margin: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(3, 5, 9, 0.75);
    border: 1px solid rgba(255,255,255,0.15);
}

.gc-skin-lock-group .skin-card-price-row img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.gc-skins-nav {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.35);
    color: #eaf7ff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.gc-skins-nav:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.55);
}

.gc-skin-name {
    font-size: 0.66rem;
    color: #c7c9dc;
    text-align: center;
    line-height: 1.2;
}

.gc-no-skins {
    margin: 0 40px;
    font-size: 0.85rem;
    color: var(--text-dim, #9a9db3);
    font-style: italic;
}

/* Lábléc / logó — csak a hero-index.html "One Pager" tab (bio-s álló nézet)
   használja; az admin export álló elrendezéséből ki lett véve. */

.gc-footer {
    position: relative;
    left: 0;
    right: 0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(0deg, #08090d 40%, rgba(8,9,13,0));
}

.gc-footer img {
    height: 46px;
    object-fit: contain;
    opacity: 0.92;
}

/* ---------- FEKVŐ elrendezés — két hasáb, kinézetek nélkül ---------- */

/* A teljes háttér sima fekete (.gen-card.is-landscape), nincs
   halvány banner-kép mögötte. */

.gc-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
}

/* A karakterkép a teljes kártya magasságát kitölti (nem "contain"-nel
   zsugorítva) — a szélessége a saját arányából adódik. A wrap div
   pontosan az img renderelt szélességét veszi fel (shrink-to-fit
   abszolút pozícionálásnál), így a gc-frame-fade mindig magához a
   képhez igazodva, arányosan sötétedik el fekete háttérbe. */
.gc-frame-wrap {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
}

.gc-frame-img {
    height: 100%;
    width: auto;
    display: block;
}

.gc-frame-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 55%, rgba(0,0,0,0.88) 82%, #000 100%);
}

.gc-col-left {
    position: relative;
    z-index: 3;
    width: 460px;
    flex-shrink: 0;
}

.gc-logo-badge {
    position: absolute;
    top: 22px;
    left: 24px;
    height: 40px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.7));
    z-index: 2;
}

.gc-col-left-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(0deg, rgba(8,9,13,0.92) 0%, rgba(8,9,13,0.6) 65%, rgba(8,9,13,0) 100%);
}

.gc-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.gc-avatar-tier-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.gc-col-left .gc-avatar {
    width: 96px;
    height: 96px;
    border-width: 3px;
}

.gc-col-left .gc-name {
    font-size: 2rem;
}

.gc-col-left .gc-meta {
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.gc-col-right {
    position: relative;
    z-index: 3;
    flex: 1;
    min-width: 0;
    padding: 28px 36px 36px;
    display: flex;
    flex-direction: column;
}

.gc-col-right .gc-passive-box {
    margin: 16px 0 14px;
}

.gc-bio-flush {
    margin: 0 0 8px;
}

.gc-col-right .gc-section-title {
    margin: 20px 0 12px;
}

.gc-stats-grid-landscape {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
}

.gc-col-right .gc-abilities {
    grid-template-columns: 1fr;
    margin: 0;
}
