/* =========================================
   DRAMALAND — MOONLIGHT SHOWCASE 2.0
   Hero bez kafla, z poleceniem dnia wtopionym w tło.
========================================= */

.dl-moonlight-showcase {
    --dl-moonlight-gold: #efbf59;
    --dl-moonlight-gold-soft: #ffe1a1;
    position: relative;
    min-height: clamp(650px, 73vh, 850px);
    overflow: hidden;
    color: #fff7ea;
    background-color: #061620;
    background-image: url("../images/dramaland-moonlight-hero.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    isolation: isolate;
}

.dl-moonlight-showcase::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(3, 12, 20, 0) 0%,
            rgba(3, 12, 20, 0) 48%,
            rgba(3, 12, 20, 0.08) 62%,
            rgba(3, 12, 20, 0.34) 100%
        ),
        linear-gradient(
            180deg,
            rgba(3, 12, 20, 0) 56%,
            rgba(3, 12, 20, 0.18) 78%,
            rgba(3, 12, 20, 0.7) 100%
        );
}

.dl-moonlight-showcase-shade {
    position: absolute;
    z-index: -1;
    top: 39%;
    right: 0;
    bottom: 0;
    width: 60%;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 68% 55%,
        rgba(4, 17, 28, 0.74) 0%,
        rgba(4, 17, 28, 0.43) 38%,
        rgba(4, 17, 28, 0.1) 70%,
        transparent 88%
    );
    filter: blur(6px);
}

.dl-moonlight-showcase-inner {
    display: flex;
    min-height: inherit;
    align-items: flex-end;
    justify-content: flex-end;
    padding-top: clamp(250px, 34vh, 380px);
    padding-bottom: clamp(34px, 5vh, 62px);
}

.dl-moonlight-feature {
    display: grid;
    width: min(640px, 48vw);
    grid-template-columns: minmax(0, 1fr) clamp(180px, 14vw, 230px);
    align-items: end;
    gap: clamp(24px, 3vw, 42px);
    margin-left: auto;
}

.dl-moonlight-feature-copy {
    min-width: 0;
    padding-bottom: 8px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.74);
}

.dl-moonlight-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: var(--dl-moonlight-gold-soft);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.dl-moonlight-kicker::after {
    width: 42px;
    height: 1px;
    margin-left: 3px;
    content: "";
    background: linear-gradient(90deg, var(--dl-moonlight-gold), transparent);
}

.dl-moonlight-kicker > span {
    color: var(--dl-moonlight-gold);
    font-size: 14px;
    text-shadow: 0 0 18px rgba(239, 191, 89, 0.64);
}

.dl-moonlight-feature h1 {
    max-width: 430px;
    margin: 0 0 15px;
    color: #fff9ef;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4.35vw, 72px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.dl-moonlight-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0;
    margin: 0 0 10px;
}

.dl-moonlight-stats > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 0 11px;
    color: rgba(255, 248, 235, 0.92);
    border-right: 1px solid rgba(255, 226, 166, 0.28);
    font-size: 12px;
    white-space: nowrap;
}

.dl-moonlight-stats > span:first-child {
    padding-left: 0;
}

.dl-moonlight-stats > span:last-child {
    border-right: 0;
}

.dl-moonlight-stats i {
    color: var(--dl-moonlight-gold);
    font-style: normal;
    filter: drop-shadow(0 0 6px rgba(239, 191, 89, 0.45));
}

.dl-moonlight-stats strong {
    color: #fff9ee;
    font-size: 13px;
}

.dl-moonlight-stats small {
    color: rgba(255, 248, 235, 0.72);
    font-size: 10px;
}

.dl-moonlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 0;
    margin-bottom: 15px;
    color: rgba(255, 248, 235, 0.78);
    font-size: 12px;
    line-height: 1.5;
}

.dl-moonlight-meta span:not(:last-child)::after {
    margin: 0 8px;
    color: var(--dl-moonlight-gold);
    content: "•";
}

.dl-moonlight-status {
    display: inline-flex;
    margin: -4px 0 16px;
    color: var(--dl-moonlight-gold-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dl-moonlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dl-moonlight-primary,
.dl-moonlight-secondary {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    text-decoration: none;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.025em;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.dl-moonlight-primary {
    color: #061620;
    background: linear-gradient(135deg, #e8ad3f, #ffd780);
    box-shadow:
        0 14px 35px rgba(232, 173, 63, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.dl-moonlight-secondary {
    color: #fff7e8;
    background: rgba(4, 18, 29, 0.3);
    border: 1px solid rgba(239, 191, 89, 0.5);
    backdrop-filter: blur(8px);
}

.dl-moonlight-primary:hover,
.dl-moonlight-secondary:hover {
    transform: translateY(-3px);
}

.dl-moonlight-primary:hover {
    color: #061620;
    box-shadow: 0 18px 42px rgba(232, 173, 63, 0.36);
}

.dl-moonlight-secondary:hover {
    color: #fff7e8;
    background: rgba(239, 191, 89, 0.1);
    border-color: rgba(255, 215, 128, 0.82);
}

.dl-moonlight-poster {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: visible;
    color: inherit;
    text-decoration: none;
    transform: translateY(2px);
    animation: dlMoonlightPosterIn 0.75s 0.28s ease-out both;
}

.dl-moonlight-poster::before,
.dl-moonlight-poster::after {
    position: absolute;
    z-index: 3;
    content: "";
    pointer-events: none;
}

.dl-moonlight-poster::before {
    inset: -5px;
    border: 1px solid rgba(255, 213, 122, 0.7);
    border-radius: 17px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 249, 225, 0.1),
        0 0 24px rgba(239, 191, 89, 0.19);
}

.dl-moonlight-poster::after {
    top: 9px;
    right: 9px;
    width: 54%;
    height: 34%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), transparent 68%);
    border-radius: 12px;
    opacity: 0.5;
}

.dl-moonlight-poster img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
    box-shadow:
        0 25px 52px rgba(0, 0, 0, 0.52),
        0 0 35px rgba(239, 191, 89, 0.12);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.dl-moonlight-poster-glow {
    position: absolute;
    z-index: 1;
    inset: 8% -17% -10%;
    background: radial-gradient(circle, rgba(239, 191, 89, 0.28), transparent 68%);
    filter: blur(20px);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dl-moonlight-poster:hover img {
    transform: translateY(-5px) scale(1.015);
    filter: brightness(1.04);
}

.dl-moonlight-poster:hover .dl-moonlight-poster-glow {
    opacity: 1;
    transform: scale(1.08);
}

.dl-moonlight-feature-copy > * {
    animation: dlMoonlightCopyIn 0.65s ease-out both;
}

.dl-moonlight-feature-copy > :nth-child(1) { animation-delay: 0.08s; }
.dl-moonlight-feature-copy > :nth-child(2) { animation-delay: 0.16s; }
.dl-moonlight-feature-copy > :nth-child(3) { animation-delay: 0.24s; }
.dl-moonlight-feature-copy > :nth-child(4) { animation-delay: 0.31s; }
.dl-moonlight-feature-copy > :nth-child(5) { animation-delay: 0.38s; }
.dl-moonlight-feature-copy > :nth-child(6) { animation-delay: 0.45s; }

@keyframes dlMoonlightCopyIn {
    from {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes dlMoonlightPosterIn {
    from {
        opacity: 0;
        transform: translateX(22px) translateY(2px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(2px) scale(1);
    }
}

@media (max-width: 1180px) {
    .dl-moonlight-showcase {
        min-height: 680px;
        background-position: 46% center;
    }

    .dl-moonlight-feature {
        width: min(590px, 53vw);
        grid-template-columns: minmax(0, 1fr) 185px;
        gap: 25px;
    }

    .dl-moonlight-feature h1 {
        font-size: clamp(38px, 4.5vw, 58px);
    }
}

@media (max-width: 900px) {
    .dl-moonlight-showcase {
        min-height: 760px;
        background-position: 38% center;
    }

    .dl-moonlight-showcase::before {
        background:
            linear-gradient(180deg, transparent 34%, rgba(3, 12, 20, 0.15) 55%, rgba(3, 12, 20, 0.88) 100%);
    }

    .dl-moonlight-showcase-inner {
        padding-top: 360px;
        padding-bottom: 34px;
    }

    .dl-moonlight-feature {
        width: min(100%, 680px);
        grid-template-columns: minmax(0, 1fr) 190px;
    }
}

@media (max-width: 680px) {
    .dl-moonlight-showcase {
        min-height: 830px;
        background-position: 34% top;
        background-size: auto 560px;
        background-color: #061720;
    }

    .dl-moonlight-showcase::after {
        position: absolute;
        z-index: -1;
        right: 0;
        bottom: 0;
        left: 0;
        height: 390px;
        content: "";
        background: linear-gradient(180deg, rgba(6, 23, 32, 0), #061720 21%, #061720 100%);
    }

    .dl-moonlight-showcase-shade {
        display: none;
    }

    .dl-moonlight-showcase-inner {
        display: block;
        padding: 410px 17px 38px;
    }

    .dl-moonlight-feature {
        width: 100%;
        grid-template-columns: minmax(0, 1fr) 126px;
        align-items: start;
        gap: 18px;
    }

    .dl-moonlight-feature h1 {
        margin-bottom: 12px;
        font-size: clamp(34px, 10vw, 47px);
    }

    .dl-moonlight-kicker {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .dl-moonlight-stats > span {
        padding-right: 7px;
        padding-left: 7px;
    }

    .dl-moonlight-stats small {
        display: none;
    }

    .dl-moonlight-meta {
        font-size: 11px;
    }

    .dl-moonlight-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dl-moonlight-primary,
    .dl-moonlight-secondary {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 10px;
    }
}

@media (max-width: 470px) {
    .dl-moonlight-showcase {
        min-height: 900px;
        background-position: 31% top;
        background-size: auto 530px;
    }

    .dl-moonlight-showcase-inner {
        padding-top: 400px;
    }

    .dl-moonlight-feature {
        grid-template-columns: 1fr;
    }

    .dl-moonlight-feature-copy {
        order: 2;
    }

    .dl-moonlight-poster {
        order: 1;
        width: 132px;
        margin: 0 0 -3px auto;
    }

    .dl-moonlight-feature h1 {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dl-moonlight-feature-copy > *,
    .dl-moonlight-poster {
        animation: none !important;
    }

    .dl-moonlight-primary,
    .dl-moonlight-secondary,
    .dl-moonlight-poster img,
    .dl-moonlight-poster-glow {
        transition: none !important;
    }
}
