/* ============================================================
   Poster skins — js/modules/poster
   Concept 1 = base classic (sections.css + wave).
   Concept 2 / 3 / 4 = bố cục & tông màu khác hẳn nhau.
   ============================================================ */

/* ---------- Concept 1: classic full-bleed + wave (giữ gốc) ---------- */
body.block-poster-concept-1 .poster,
.poster.block-skin-concept-1 {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    background: #1a1a1a;
    overflow: hidden;
}

body.block-poster-concept-1 .poster .wave,
.poster.block-skin-concept-1 .wave {
    display: block;
}

body.block-poster-concept-1 .poster img,
.poster.block-skin-concept-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}

body.block-poster-concept-1 .poster::before,
.poster.block-skin-concept-1::before {
    content: "";
    background: rgba(0, 0, 0, .25);
}

body.block-poster-concept-1 .poster::after,
.poster.block-skin-concept-1::after {
    content: "";
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .65) 0%,
        rgba(0, 0, 0, .35) 35%,
        rgba(0, 0, 0, .1) 70%,
        transparent 100%
    );
}

body.block-poster-concept-1 .poster-content {
    justify-content: flex-end;
    align-items: center;
    padding: 0 .36rem 10vh;
    color: #fff;
    text-align: center;
}

body.block-poster-concept-1 .couple {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    row-gap: .2rem;
}

body.block-poster-concept-1 .text_1,
body.block-poster-concept-1 .text_2 {
    color: #fff;
    font-family: var(--font-nickname, "Great Vibes", cursive);
    font-size: .7rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .38);
}

body.block-poster-concept-1 .text_1 {
    align-self: flex-start;
    text-align: left;
}

body.block-poster-concept-1 .text_2 {
    align-self: flex-end;
    text-align: right;
}

body.block-poster-concept-1 .heart {
    align-self: center;
    color: #fff;
}

body.block-poster-concept-1 .info {
    margin-top: .12rem;
}

.poster.block-skin-concept-1 .date__time,
.poster.block-skin-concept-1 .location {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}


/* ---------- Concept 2: botanical full-bleed ----------
   Ảnh tràn màn + overlay kem; tên căn giữa; info pill căn giữa text. */
body.block-poster-concept-2 .poster,
.poster.block-skin-concept-2 {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    padding: 0;
    background: #1f2a25;
    overflow: hidden;
}

body.block-poster-concept-2 .poster .wave,
.poster.block-skin-concept-2 .wave {
    display: none !important;
}

body.block-poster-concept-2 .poster img,
.poster.block-skin-concept-2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.06) contrast(1.02) brightness(1.02);
    box-shadow: none;
    animation: kenburns 10s linear forwards;
    z-index: 0;
}

body.block-poster-concept-2 .poster::before,
.poster.block-skin-concept-2::before {
    content: "";
    inset: 0;
    z-index: 1;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 254, 250, .12), transparent 32%),
        linear-gradient(to top, rgba(31, 42, 37, .62) 0%, rgba(31, 42, 37, .22) 42%, transparent 72%);
}

body.block-poster-concept-2 .poster::after,
.poster.block-skin-concept-2::after {
    content: "";
    inset: .32rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: .12rem;
    background: transparent;
    pointer-events: none;
}

body.block-poster-concept-2 .poster-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0 .4rem 1.05rem;
    color: #fff;
    text-align: center;
    z-index: 5;
}

body.block-poster-concept-2 .couple {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    row-gap: .04rem;
}

body.block-poster-concept-2 .text_1,
body.block-poster-concept-2 .text_2 {
    width: 100%;
    align-self: center;
    color: #fffefa;
    font-family: var(--font-nickname, "Parisienne", "Great Vibes", cursive);
    font-size: .78rem;
    line-height: 1.08;
    text-align: center;
    text-shadow:
        0 2px 4px rgba(20, 28, 24, .55),
        0 10px 24px rgba(20, 28, 24, .35);
}

body.block-poster-concept-2 .heart {
    color: var(--botanical-rose, #e8b4bc);
    font-size: .36rem;
    margin: .06rem 0 .08rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

body.block-poster-concept-2 .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .04rem;
    margin-top: .16rem;
    padding: .14rem .34rem;
    border-radius: 999px;
    background: rgba(255, 254, 250, .88);
    border: 1px solid rgba(255, 255, 255, .55);
    box-shadow: 0 10px 24px rgba(20, 28, 24, .18);
    line-height: 1.15;
}

.poster.block-skin-concept-2 .date__time,
.poster.block-skin-concept-2 .location {
    margin: 0;
    padding: 0;
    color: var(--botanical-ink, #1f2a25);
    font-family: "Nunito Sans", "Quicksand", sans-serif;
    font-weight: 800;
    letter-spacing: .06rem;
    text-shadow: none;
    line-height: 1.2;
    text-align: center;
}

.poster.block-skin-concept-2 .location {
    color: var(--botanical-muted, #5a6760);
    font-weight: 700;
    letter-spacing: .03rem;
}


/* ---------- Concept 3: sunset full-bleed, text sạch ----------
   Ảnh tràn màn; tên giữa; KHÔNG nền/viền cho text & date. */
body.block-poster-concept-3 .poster,
.poster.block-skin-concept-3 {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    padding: 0;
    background: #2a1f28;
    overflow: hidden;
}

body.block-poster-concept-3 .poster .wave,
.poster.block-skin-concept-3 .wave {
    display: none !important;
}

body.block-poster-concept-3 .poster img,
.poster.block-skin-concept-3 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.04) brightness(1.02);
    animation: kenburns 10s linear forwards;
}

body.block-poster-concept-3 .poster::before,
.poster.block-skin-concept-3::before {
    content: "";
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(160deg, rgba(var(--sunset-coral-rgb, 255, 140, 120), .2), transparent 48%),
        linear-gradient(to top, rgba(40, 28, 36, .58) 0%, rgba(40, 28, 36, .18) 45%, transparent 70%);
}

body.block-poster-concept-3 .poster::after,
.poster.block-skin-concept-3::after {
    content: none;
    display: none;
}

body.block-poster-concept-3 .poster-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 0 .48rem 1.1rem;
    color: #fff;
    z-index: 5;
}

body.block-poster-concept-3 .couple {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    row-gap: .02rem;
}

body.block-poster-concept-3 .text_1,
body.block-poster-concept-3 .text_2 {
    width: 100%;
    align-self: center;
    color: #fff8ef;
    font-family: var(--font-nickname, "Great Vibes", cursive);
    font-size: .82rem;
    line-height: 1.05;
    text-align: center;
    text-transform: none;
    background: none;
    border: 0;
    text-shadow:
        0 2px 4px rgba(40, 20, 30, .55),
        0 10px 24px rgba(40, 20, 30, .35);
}

body.block-poster-concept-3 .heart {
    color: var(--sunset-coral, #ff8c78);
    font-size: .42rem;
    margin: .08rem 0 .12rem;
    filter: drop-shadow(0 4px 10px rgba(255, 120, 100, .45));
    text-shadow: none;
    background: none;
    border: 0;
}

body.block-poster-concept-3 .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .04rem;
    margin-top: .6rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    line-height: 1.15;
}

.poster.block-skin-concept-3 .date__time,
.poster.block-skin-concept-3 .location {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-weight: 800;
    letter-spacing: .1rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

.poster.block-skin-concept-3 .location {
    color: rgba(255, 255, 255, .9);
    letter-spacing: .05rem;
}


/* ---------- Concept 4: cinematic strip + bottom names ----------
   Full ảnh tối, dải chữ mời trên, tên + info dưới dạng stack giữa. */
body.block-poster-concept-4 .poster,
.poster.block-skin-concept-4 {
    position: relative;
    height: 100vh;
    min-height: 100svh;
    background: #0e0e0e;
    overflow: hidden;
}

body.block-poster-concept-4 .poster .wave,
.poster.block-skin-concept-4 .wave {
    display: none !important;
}

body.block-poster-concept-4 .poster img,
.poster.block-skin-concept-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.92) saturate(1.06) contrast(1.03);
    animation: kenburns 12s ease-out forwards;
}

body.block-poster-concept-4 .poster::before,
.poster.block-skin-concept-4::before {
    content: "TRÂN TRỌNG KÍNH MỜI";
    inset: auto 0 auto 0;
    top: .55rem;
    bottom: auto;
    z-index: 4;
    height: auto;
    background: transparent;
    color: rgba(255, 255, 255, .92);
    font-family: "Lora", Georgia, serif;
    font-size: .26rem;
    font-weight: 700;
    letter-spacing: .14rem;
    text-align: center;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, .75),
        0 8px 20px rgba(0, 0, 0, .45);
    pointer-events: none;
}

body.block-poster-concept-4 .poster::after,
.poster.block-skin-concept-4::after {
    content: "";
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, transparent 28%),
        linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .25) 42%, transparent 70%);
}

body.block-poster-concept-4 .poster-content {
    justify-content: flex-end;
    align-items: center;
    /* padding đáy đủ cho swash Great Vibes; ngang chừa nét bay 2 bên */
    padding: 0 .28rem 1.05rem;
    color: #fff;
    z-index: 5;
    overflow: visible;
}

body.block-poster-concept-4 .couple {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    column-gap: .2rem;
    row-gap: 0;
    /* Great Vibes / script: không clip nét bay trên/dưới */
    overflow: visible;
    padding: .12rem 0 .06rem;
}

body.block-poster-concept-4 .text_1,
body.block-poster-concept-4 .text_2 {
    width: auto;
    max-width: 100%;
    min-width: 0;
    color: #fff;
    font-family: var(--font-nickname, "Great Vibes", cursive);
    /* Script font: cỡ vừa + line-height rộng để không cắt descender/swash */
    font-size: clamp(.52rem, 7.2vw, .68rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: .01em;
    overflow: visible;
    /* chừa chỗ nét bay Great Vibes (ascender + descender) */
    padding: .18rem .08rem .22rem;
    /* backface-visibility:hidden (base animate) hay cắt nét script */
    backface-visibility: visible;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, .7),
        0 10px 28px rgba(0, 0, 0, .4);
}

body.block-poster-concept-4 .text_1 {
    justify-self: end;
    text-align: right;
    /* padding-right nhẹ: nét chữ script bên phải không dính tim */
    padding-right: .12rem;
}

body.block-poster-concept-4 .text_2 {
    justify-self: start;
    text-align: left;
    padding-left: .12rem;
}

/* Bỏ GPU layer translate3d(0,0,0) sau animate — hay clip swash Great Vibes */
body.block-poster-concept-4 .text_1.show,
body.block-poster-concept-4 .text_2.show,
body.block-poster-concept-4 .heart.show {
    transform: none;
    backface-visibility: visible;
}

body.block-poster-concept-4 .heart {
    justify-self: center;
    align-self: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: .4rem;
    line-height: 1;
    padding: .08rem 0;
    overflow: visible;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45));
    text-shadow: none;
}

body.block-poster-concept-4 .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .04rem;
    width: fit-content;
    max-width: calc(100% - .6rem);
    margin: .28rem auto 0;
    padding: .12rem .32rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(0, 0, 0, .34);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    line-height: 1.15;
}

.poster.block-skin-concept-4 .date__time,
.poster.block-skin-concept-4 .location {
    margin: 0;
    padding: 0;
    color: #fff;
    font-family: "Lora", Georgia, serif;
    font-weight: 600;
    letter-spacing: .06rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .55);
}

.poster.block-skin-concept-4 .location {
    opacity: .92;
}
