﻿/* ====== STATION LIGHTS ====== */

.hero-atmo .station-lights {
    position: absolute;
    left: 0;
    right: 0;
    top: 18%; /* približne pod okrajom UFO */
    width: 1px;
    height: 1px;
    margin: 0 auto;
    pointer-events: none;
}

.hero-atmo .station-light {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,210,150,0.75) 35%, rgba(255,180,110,0.0) 70% );
    animation: stationBlink 1.8s ease-in-out infinite;
}

@keyframes stationBlink {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }

    20% {
        opacity: 0.9;
        transform: scale(1.1);
    }

    45% {
        opacity: 0.4;
        transform: scale(1.0);
    }

    100% {
        opacity: 0;
        transform: scale(0.7);
    }
}


/* ================= HERO ATMOSFÉRA ================= */


.hero {
    position: relative;
    overflow: hidden;
}

/* overlay nad pozadím, pod textom */
.hero-atmo {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

    /* ================== OBLOHA ================== */

    .hero-atmo .sky {
        position: absolute;
        inset: 0;
    }

    .hero-atmo .star {
        position: absolute;
        width: 2px;
        height: 2px;
        border-radius: 50%;
        background: #ffffff;
        opacity: 0.3;
        animation: twinkle ease-in-out infinite;
    }

@keyframes twinkle {
    0% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.55;
    }

    100% {
        opacity: 0.25;
    }
}

/* ================== VYSIELAČ ================== */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-atmo {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

    /* ====== CENTER WRAPPER ====== */
    .hero-atmo .tower-center {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 14%;
        width: 1px; /* len kotva */
        height: 1px;
        margin: 0 auto; /* centrovanie cez margin auto */
    }

/* ====== TOWER ======
   Posúvaš len tieto premenné, ostatné ostáva stabilné */
.hero-atmo {
    --tower-x: 0px; /* posun doprava/dolava od centra */
    --tower-y: 0px; /* posun hore/dole */
}

    .hero-atmo .tower {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 12px;
        height: 320px;
        transform: translate(var(--tower-x), calc(var(--tower-y) * -1));
        
    }

    .hero-atmo .tower-light {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(0.6);
        width: 26px;
        height: 26px;
        pointer-events: none;
        opacity: 0;
        z-index: 4;
        animation: beacon 4.5s ease-in-out infinite;
    }

        .hero-atmo .tower-light::before {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: 30%;
            background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,210,150,0.85) 18%, rgba(255,180,110,0.55) 40%, rgba(255,160,90,0.0) 70% );
        }

        .hero-atmo .tower-light::after {
            content: "";
            position: absolute;
            inset: -8px;
            background: conic-gradient( rgba(255,190,120,0.0), rgba(255,190,120,0.6), rgba(255,190,120,0.0), rgba(255,190,120,0.45), rgba(255,190,120,0.0) );
            border-radius: 30%;
            opacity: 0.6;
            filter: blur(1px);
        }

@keyframes beacon {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.55);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.5);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scale(0.55);
    }
}


.hero-atmo {
    --tower-x: 69px; /* napr. doľava od stredu */
    --tower-y: 88px; /* napr. mierne nižšie */
}


/* =========================
   NEW - SERIES SECTION (final)
   ========================= */

.new-series-section {
    position: relative;
}

.new-series-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.new-series-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 40px;
}

/* =========================
   CARD BASE
   ========================= */

.new-series-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .6s ease, box-shadow .6s ease;
    isolation: isolate;
}


.new-series-content {
    position: relative;
}

.new-series-content {
    position: relative;
    z-index: 2;
    padding: 34px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .6s ease;
}


    .new-series-content::before {
        content: "";
        position: absolute;
        /* panel je len tam, kde je text+obsah */
        top: 18px;
        left: 22px;
        right: 22px;
        bottom: 18px;
        border-radius: 16px;
        pointer-events: none;
        z-index: -1;
        background: linear-gradient( to bottom, rgba(0,0,0,.05), rgba(0,0,0,.15) );
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
        opacity: .75;
    }



.new-book .front {
    filter: contrast(1.02) brightness(1.02) saturate(1.01);
}

.new-book .front,
.new-book .back {
    image-rendering: auto;
    backface-visibility: hidden;
    transform-style: flat;
}



.new-series-card {
    background-blend-mode: normal;
}

.new-series-guardians,
.new-series-biosector {
    filter: saturate(1.05) brightness(1.04) contrast(1.03);
}

.new-series-guardians {
    --new-border: rgba(255,200,120,.78);
    --new-glow-color: rgba(255,200,120,.30);
    background: linear-gradient(rgba(10,10,14,.22), rgba(10,10,14,.35)), url('/image/titl/straz-tit.jpg') center/cover no-repeat, rgba(14,16,20,.85);
}

.new-series-biosector {
    --new-border: rgba(140,180,255,.78);
    --new-glow-color: rgba(140,180,255,.28);
    background: linear-gradient(rgba(10,10,22,.18), rgba(10,10,32,.32)), url('/image/pror/prorpic-b0a.jpg') center/cover no-repeat, rgba(14,16,20,.85);
}


.new-series-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

/* =========================
   GLOW LAYER
   ========================= */

.new-series-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient( circle at var(--x, 30%) var(--y, 30%), var(--new-glow-color), transparent 60% );
    opacity: .22;
    pointer-events: none;
    transition: opacity .6s ease, transform .6s ease;
    z-index: 0;
    mix-blend-mode: screen;
}

.new-series-card:hover .new-series-glow {
    opacity: .45;
    transform: scale(1.1);
}

/* =========================
   LIGHT BORDER (animated sweep)
   ========================= */

@property --new-a {
    syntax: "<angle>";
    inherits: true;
    initial-value: 210deg;
}

.new-series-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)), conic-gradient( from var(--new-a), transparent 0 18%, var(--new-border) 20%, rgba(255,255,255,.18) 24%, transparent 28% 55%, var(--new-border) 58%, rgba(255,255,255,.12) 62%, transparent 66% 100% );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .72;
    filter: blur(.15px);
    transition: opacity .4s ease, filter .4s ease;
}

.new-series-card:hover::after {
    opacity: .95;
    filter: blur(0);
    animation: new-border-sweep 10.6s linear infinite;
}

@keyframes new-border-sweep {
    from {
        --new-a: 210deg;
    }

    to {
        --new-a: 570deg;
    }
}

/* jemný vnútorný okraj len na borde */
.new-series-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient( 135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.10) );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .10;
}

/* =========================
   CONTENT
   ========================= */

.new-series-content {
    position: relative;
    z-index: 2;
    padding: 34px 36px;
    transition: transform .6s ease;
}

.new-series-card:hover .new-series-content {
    transform: scale(1.00);
}

.new-series-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .75;
}

.new-series-title {
    font-size: 34px;
    margin: 10px 0 12px;
    letter-spacing: .01em;
    font-weight: 800;
}

.new-series-desc {
    font-size: 15px;
}

.new-series-desc {
    max-width: 520px;
}

.new-series-books {
    justify-content: center;
}

.new-series-link {
    margin-top: 22px;
}

/* =========================
   BOTTOM ROW (books + CTA)
   ========================= */

.new-series-bottom {
    margin-top: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.new-series-actions {
}

.new-series-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}

    .new-series-actions .lore-btn {
        white-space: nowrap;
    }

/* =========================
   BOTTOM ROW (books + CTA)
   ========================= */

.new-series-bottom {
    margin-top: 26px;
    display: flex;
    flex-direction: column; /* CTA ide pod knihy */
    align-items: flex-start;
    gap: 18px;
}

.new-series-actions {
    width: 100%;
}

    .new-series-actions .lore-btn {
        white-space: nowrap;
    }

/* =========================
   BOOKS (bigger, no frame, no rounding, no tilt)
   ========================= */

.new-series-books {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    position: relative;
    padding-bottom: 10px; /* priestor pre tieň */
}

    /* jemná "polica" pod knihami – bez boxu okolo */
    .new-series-books::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 14px;
        border-radius: 999px;
        background: radial-gradient(ellipse at center, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 70%);
        opacity: .30;
        pointer-events: none;
    }

    .new-series-books img {
        width: 92px; /* default väčšie */
        height: auto;
        border-radius: 0; /* bez zaoblenia */
        box-shadow: 0 14px 34px rgba(0,0,0,.60);
        transition: transform .22s ease, filter .22s ease;
        transform: none; /* bez natočenia */
    }

        /* hover iba jemné vyzdvihnutie */
        .new-series-books img:hover {
            transform: translateY(-8px) scale(1.02);
            filter: brightness(1.06);
            z-index: 5;
        }

/* varianty podľa počtu kníh */
.new-series-books--3 img {
    width: 104px;
}

.new-series-books--5 img {
    width: 86px;
}

/* hover karty: jemne zväčši odstup medzi knihami */
.new-series-card:hover .new-series-books {
}

/* =========================
   RESPONSIVE tweaks
   ========================= */




@media (max-width:900px) {
    .new-series-books {
        gap: 14px;
    }

    .new-series-books--3 img {
        width: 96px;
    }

    .new-series-books--5 img {
        width: 80px;
    }
}

@media (max-width:640px) {
    .new-series-books {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .new-series-books--3 img {
        width: 86px;
    }

    .new-series-books--5 img {
        width: 72px;
    }
}

/* =========================
   MOBILE FIX – series cards
   ========================= */

@media (max-width:900px) {
    .new-series-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .new-series-content {
        padding: 28px 22px;
    }
}

/* malé mobily */
@media (max-width:900px) {
    /* CTA nech sa nezlomí layoutom */
    .new-series-actions .lore-btn {
        white-space: normal; /* dôležité */
        width: 100%;
        text-align: center;
    }

    /* knihy nech sa neprerazia cez šírku */
    .new-series-books {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    /* ak sú knihy veľké, zmenšíme ich */
    .new-series-books--3 .new-book3d {
        --w: 64px;
        --h: 92px;
        --t: 12px;
    }

    .new-series-books--5 .new-book3d {
        --w: 52px;
        --h: 76px;
        --t: 11px;
    }
}

/* extra malé (ak by niekto mal 360px alebo menej) */
@media (max-width:380px) {
    .new-series-books {
        gap: 8px;
    }

    .new-series-books--3 .new-book3d {
        --w: 58px;
        --h: 84px;
    }

    .new-series-books--5 .new-book3d {
        --w: 46px;
        --h: 68px;
    }
}

/* full width game box */
/* =========================
   NEW2 – GAME CARD (full width, same hover border vibe)
   ========================= */

.new2-card {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,.06);
    transition: transform .6s ease, box-shadow .6s ease;
}

/* tlmené pozadie (môžeš vymeniť image) */
.new2-conquest {
    --new-border: rgba(140, 200, 255, .78);
    --new-glow-color: rgba(140, 200, 255, .26);
    background: linear-gradient(rgba(10,10,22,.34), rgba(10,10,22,.55)), url('/image/new/biobase.jpg') center/cover no-repeat, rgba(14,16,20,.90);
}

/* jemný panel pod textom (ako pri new-series-content::before) */
.new2-content {
    position: relative;
    z-index: 2;
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}

    .new2-content::before {
        content: "";
        position: absolute;
        top: 16px;
        left: 18px;
        right: 18px;
        bottom: 16px;
        border-radius: 16px;
        pointer-events: none;
        z-index: -1;
        background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.28));
        opacity: .78;
    }

/* rovnaký glow layer môžeš zdieľať priamo s existujúcim .new-series-glow */
.new2-card .new-series-glow {
    position: absolute;
    inset: -40%;
    background: radial-gradient( circle at var(--x, 30%) var(--y, 30%), var(--new-glow-color), transparent 60% );
    opacity: .18;
    pointer-events: none;
    transition: opacity .6s ease, transform .6s ease;
    z-index: 0;
    mix-blend-mode: screen;
}

.new2-card:hover .new-series-glow {
    opacity: .40;
    transform: scale(1.1);
}

.new2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
}

/* TAG / TEXT */
.new2-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .78;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
}

.new2-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .01em;
    text-shadow: 0 1px 2px rgba(0,0,0,.65), 0 4px 14px rgba(0,0,0,.45);
}

.new2-desc {
    margin: 0;
    max-width: 980px;
    font-size: 15px;
    line-height: 1.55;
    opacity: .92;
    text-shadow: 0 1px 2px rgba(0,0,0,.75);
}

/* CTA */
.new2-actions {
    margin-top: 6px;
}

.new2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.16);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

    .new2-card:hover .new2-btn,
    .new2-btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.22);
    }

/* =========================
   MOVING BORDER (same idea as your new-series-card)
   ========================= */

@property --new2-a {
    syntax: "<angle>";
    inherits: true;
    initial-value: 210deg;
}

.new2-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)), conic-gradient( from var(--new2-a), transparent 0 18%, var(--new-border) 20%, rgba(255,255,255,.18) 24%, transparent 28% 55%, var(--new-border) 58%, rgba(255,255,255,.12) 62%, transparent 66% 100% );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .68;
    filter: blur(.15px);
    transition: opacity .4s ease, filter .4s ease;
}

.new2-card:hover::after {
    opacity: .95;
    filter: blur(0);
    animation: new2-border-sweep 10.6s linear infinite;
}

@keyframes new2-border-sweep {
    from {
        --new2-a: 210deg;
    }

    to {
        --new2-a: 570deg;
    }
}

/* jemný vnútorný okraj */
.new2-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient( 135deg, rgba(255,255,255,.18), rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,.10) );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: .10;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 520px) {
    .new2-content {
        padding: 22px 18px;
    }

    .new2-title {
        font-size: 24px;
    }

    .new2-desc {
        font-size: 14px;
    }
}



/* =========================================================
   SOFTCOVER override – MUSÍ byť za základným CSS
   ========================================================= */

