/**
 * Queer Film Hub — Homepage v2 (public/index.php + klasa .page-home-v2)
 * Premium editorial skeleton · scoped to .page-home-v2
 */

.page-home-v2 {
    background: #0a0a0a;
    overflow-x: hidden;
}

.page-home-v2 .home-v2 {
    overflow-x: hidden;
}

.page-home-v2 .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.v2-hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

@media (max-width: 639px) {
    .v2-hero {
        min-height: auto;
    }
}

/* Posters can lift on hover without clipping */
.page-home-v2 .v2-hero {
    overflow: visible;
}

.v2-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(230, 57, 70, 0.18) 0%, transparent 55%),
        linear-gradient(165deg, #12080a 0%, #0a0a0a 45%, #070707 100%);
    z-index: 0;
}

.v2-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 1.5rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .v2-hero__inner {
        grid-template-columns: minmax(280px, 1fr) minmax(280px, 460px);
        gap: 3.5rem;
    }
}

.v2-hero__kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 0.75rem;
}

.v2-hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 1rem;
    color: #f5f5f5;
}

.v2-hero__title-accent {
    color: var(--accent, #e63946);
    font-weight: 800;
}

.v2-hero__lead {
    font-size: 1rem;
    line-height: 1.65;
    color: #9a9a9a;
    max-width: 36rem;
    margin: 0 0 1.5rem;
}

@media (max-width: 639px) {
    .v2-hero__lead {
        font-size: 0.95rem;
        line-height: 1.6;
        margin: 0 0 1.25rem;
    }
}

.v2-hero__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
}

.v2-hero__cta .v2-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .v2-hero__cta {
        flex-direction: row;
        align-items: center;
        max-width: none;
    }

    .v2-hero__cta .v2-btn {
        width: auto;
        white-space: nowrap;
    }
}

.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    cursor: pointer;
    border: none;
}

.v2-btn--primary {
    background: var(--accent, #e63946);
    color: #fff;
}

.v2-btn--primary:hover {
    background: var(--accent-hover, #c1121f);
}

.v2-btn--ghost {
    background: transparent;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.v2-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.v2-hero__visual {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    perspective: 1200px;
    overflow: visible;
}

/* Branded poster stack: 1 main + 2 side, partially overlapped */
.v2-hero__stack-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin: 0 0 1rem;
    text-align: center;
    transition: color 0.45s ease, letter-spacing 0.45s ease;
}

@media (min-width: 900px) {
    .v2-hero__stack-label {
        text-align: left;
    }
}

.v2-hero__stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0 1.25rem;
    min-height: min(56vw, 380px);
    position: relative;
    transform-style: preserve-3d;
    overflow: visible;
}

.v2-hero__poster {
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(255, 255, 255, 0.07);
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s ease,
        filter 0.42s ease,
        opacity 0.35s ease;
}

.v2-hero__poster img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    vertical-align: middle;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Centre: dominant — slightly larger */
.v2-hero__poster--main {
    position: relative;
    z-index: 3;
    width: min(60vw, 278px);
    transform: translateZ(0);
}

/* Sides: tucked behind, slightly rotated */
.v2-hero__poster--side {
    z-index: 1;
    width: min(46vw, 188px);
    opacity: 0.9;
    filter: brightness(0.93) saturate(0.95);
}

.v2-hero__poster--left {
    margin-right: -18%;
    transform: rotate(-5deg) scale(0.94);
    transform-origin: 80% 50%;
}

.v2-hero__poster--right {
    margin-left: -18%;
    transform: rotate(5deg) scale(0.94);
    transform-origin: 20% 50%;
}

/* Hover = który plakat najedziesz, ten wyskakuje na wierzch */
@media (hover: hover) and (pointer: fine) {
    .v2-hero__poster {
        cursor: pointer;
    }

    .v2-hero__stack:has(.v2-hero__poster:hover) .v2-hero__stack-label {
        color: rgba(255, 255, 255, 0.62);
        letter-spacing: 0.26em;
    }

    /* Reszta na chwilę w tło */
    .v2-hero__stack:has(.v2-hero__poster:hover) .v2-hero__poster:not(:hover) {
        opacity: 0.38;
        filter: brightness(0.72) saturate(0.9);
    }

    .v2-hero__poster--left:hover {
        z-index: 50;
        opacity: 1 !important;
        filter: brightness(1.02) saturate(1.05) !important;
        transform: translateY(-16px) scale(1.1) rotate(-1.5deg) !important;
        box-shadow:
            0 36px 75px rgba(0, 0, 0, 0.88),
            0 0 0 1px rgba(255, 255, 255, 0.14),
            0 0 70px rgba(230, 57, 70, 0.35);
    }

    .v2-hero__poster--left:hover img {
        transform: scale(1.05);
    }

    .v2-hero__poster--main:hover {
        z-index: 50;
        opacity: 1 !important;
        filter: none !important;
        transform: translateY(-16px) scale(1.08) !important;
        box-shadow:
            0 40px 85px rgba(0, 0, 0, 0.9),
            0 0 0 1px rgba(255, 255, 255, 0.14),
            0 0 90px rgba(230, 57, 70, 0.28),
            0 0 140px rgba(230, 57, 70, 0.1);
    }

    .v2-hero__poster--main:hover img {
        transform: scale(1.05);
    }

    .v2-hero__poster--right:hover {
        z-index: 50;
        opacity: 1 !important;
        filter: brightness(1.02) saturate(1.05) !important;
        transform: translateY(-16px) scale(1.1) rotate(1.5deg) !important;
        box-shadow:
            0 36px 75px rgba(0, 0, 0, 0.88),
            0 0 0 1px rgba(255, 255, 255, 0.14),
            0 0 70px rgba(230, 57, 70, 0.35);
    }

    .v2-hero__poster--right:hover img {
        transform: scale(1.05);
    }
}

@media (max-width: 479px) {
    .v2-hero__stack {
        min-height: 300px;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }

    .v2-hero__poster--main {
        width: min(52vw, 220px);
    }

    .v2-hero__poster--side {
        width: min(38vw, 142px);
    }

    .v2-hero__poster--left {
        margin-right: -14%;
    }

    .v2-hero__poster--right {
        margin-left: -14%;
    }
}

/* --------------------------------------------------------------------------
   SECTIONS (shared)
   -------------------------------------------------------------------------- */
.home-v2 .v2-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 1.5rem);
}

.v2-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.v2-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #eee;
    margin: 0 0 0.35rem;
}

.v2-section__deck {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
    max-width: 36rem;
    line-height: 1.5;
}

.v2-section__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    text-decoration: none;
    white-space: nowrap;
}

.v2-section__link:hover {
    color: var(--accent, #e63946);
}

/* --------------------------------------------------------------------------
   CURATED PICKS
   -------------------------------------------------------------------------- */
.v2-picks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
}

@media (min-width: 480px) {
    .v2-picks {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .v2-picks {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
}

.v2-pick {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease;
}

.v2-pick:hover:not(.v2-pick--empty) {
    transform: translateY(-3px);
}

.v2-pick__poster {
    aspect-ratio: 2 / 3;
    background: #141414;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-pick__poster-ph {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #444;
}

.v2-pick__poster--empty {
    background: rgba(255, 255, 255, 0.02);
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}

.v2-pick__line {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, #e63946);
    margin-bottom: 0.25rem;
}

.v2-pick__line--muted {
    color: #444;
}

.v2-pick__title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
    color: #e8e8e8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-pick__title--muted {
    color: #555;
    font-weight: 500;
}

.v2-pick__meta {
    font-size: 0.68rem;
    color: #666;
    margin-top: 0.2rem;
    display: block;
}

.v2-pick__meta--muted {
    color: #444;
}

.v2-pick--empty {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   BROWSE CHIPS
   -------------------------------------------------------------------------- */
.v2-browse .v2-section__title {
    margin-bottom: 0.35rem;
}

.v2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.v2-chip {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #aaa;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    transition: border-color 0.2s ease, color 0.2s ease;
    /* min touch target */
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.v2-chip:hover {
    border-color: rgba(230, 57, 70, 0.45);
    color: #ddd;
}

/* --------------------------------------------------------------------------
   STREAMING
   -------------------------------------------------------------------------- */
.v2-streaming__list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.v2-streaming__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #888;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   ARTICLES (editorial list)
   -------------------------------------------------------------------------- */
.v2-articles {
    list-style: none;
    margin: 0;
    padding: 0;
}

.v2-articles > li {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.v2-articles > li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v2-article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

@media (max-width: 599px) {
    .v2-article {
        grid-template-columns: 80px 1fr;
        gap: 0.85rem;
        padding: 1rem 0;
    }
}

@media (max-width: 359px) {
    .v2-article {
        grid-template-columns: 1fr;
    }

    .v2-article__thumb {
        width: 100%;
        aspect-ratio: 16 / 7;
    }
}

.v2-article:hover {
    background: rgba(255, 255, 255, 0.02);
}

.v2-article__thumb {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1c1c1c, #111);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-article__date {
    font-size: 0.72rem;
    color: #555;
    display: block;
    margin-bottom: 0.35rem;
}

.v2-article__tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent, #e63946);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.v2-article__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    color: #eaeaea;
}

@media (max-width: 599px) {
    .v2-article__title {
        font-size: 0.92rem;
    }

    .v2-article__excerpt {
        display: none;
    }
}

.v2-article__excerpt {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   TRUST
   -------------------------------------------------------------------------- */
.v2-trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.5rem;
}

.v2-trust__item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.v2-trust__item:last-child {
    border-bottom: none;
}

@media (min-width: 768px) {
    .v2-trust__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .v2-trust__item {
        padding: 0;
        border-bottom: none;
    }
}

.v2-trust__num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.v2-trust__h {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
    color: #ddd;
}

.v2-trust__p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
}

/* --------------------------------------------------------------------------
   NEWSLETTER
   -------------------------------------------------------------------------- */
.v2-newsletter {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.v2-newsletter__inner {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.v2-newsletter__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 0.5rem;
    color: #eee;
}

.v2-newsletter__text {
    font-size: 0.9rem;
    color: #777;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.v2-newsletter__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.v2-newsletter__input {
    flex: 1;
    min-width: min(200px, 100%);
    max-width: 280px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #eee;
    font-family: inherit;
}

.v2-newsletter__input::placeholder {
    color: #555;
}

.v2-newsletter__input:focus {
    outline: none;
    border-color: rgba(230, 57, 70, 0.45);
}

@media (max-width: 479px) {
    .v2-newsletter__form {
        flex-direction: column;
    }

    .v2-newsletter__input {
        max-width: none;
    }

    .v2-newsletter__form .v2-btn {
        width: 100%;
    }
}
