/* ============================================================
   dual_promo_cards — landing builder component
   Two side-by-side promo cards. Each card: badge on top,
   image on one side, text + CTA on the other side, primary
   border. Light/Dark/RTL aware.
   ============================================================ */

.dual-promo-cards-section {
    position: relative;
}

.dual-promo-cards-row {
    align-items: stretch;
}

/* Cards spacing — Bootstrap 4 doesn't ship gx-/gy- utilities,
   so add the gap explicitly here. */
@media (min-width: 992px) {
    /* Horizontal spacing between cards on desktop */
    .dual-promo-cards-row > .col-lg-6 {
        padding-left: 16px;
        padding-right: 16px;
    }
}
@media (max-width: 991px) {
    /* Vertical spacing between stacked cards on mobile */
    .dual-promo-cards-row > .col-12 {
        margin-bottom: 32px;
    }
    .dual-promo-cards-row > .col-12:last-child {
        margin-bottom: 0;
    }
}

/* ---- Card shell ---- */
.promo-card {
    position: relative;
    height: 100%;
    border: 1.5px solid var(--primary);
    border-radius: 28px;
    background: #fbdefcf8;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 0;                    /* moved to .__content so the image
                                      can fill the card edge-to-edge */
    box-shadow: 0 16px 36px rgba(62, 0, 95, 0.10);
    transition: transform .25s ease, box-shadow .25s ease;
}
.promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(62, 0, 95, 0.16);
}
body.dark-mode .promo-card {
    background: rgba(31, 15, 51, 0.55);
    border-color: rgba(180, 143, 255, 0.65);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.30);
}
body.dark-mode .promo-card:hover {
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.40);
}

/* ---- Top badge ---- */
.promo-card__badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;                  /* keep the badge above the edge-to-edge image */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 8px 22px;
    border-radius: 100px;
    background: var(--primary);
    color: var(--primary-btn-color);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 18px rgba(62, 0, 95, 0.25);
    white-space: nowrap;
}
body.dark-mode .promo-card__badge {
    box-shadow: 0 8px 18px rgba(180, 143, 255, 0.20);
}

/* ---- Body layout ---- */
.promo-card__body {
    display: flex;
    align-items: stretch;     /* media stretches to the card's full height */
    gap: 24px;
    height: 100%;             /* body fills the whole card height */
}

.promo-card__media {
    flex: 0 0 50%;            /* exactly half of the card width */
    max-width: 50%;
    min-width: 0;             /* allow the slot to shrink under the image's
                                 intrinsic width — without this the natural
                                 image width can leak past the card edge. */
    align-self: stretch;
    overflow: hidden;         /* keep the hover-scale within bounds AND
                                 catch any sub-pixel rounding overflow. */
    /* match the card's outer rounded corners so the image
       doesn't poke out of the rounded edge */
    border-start-end-radius: 28px;
    border-end-end-radius: 28px;
}
.promo-card__image {
    width: 100%;
    height: 100%;             /* fill the slot's full height */
    object-fit: contain;      /* preserve aspect, never crop, never overflow */
    object-position: center center;
    display: block;
    transition: transform .5s ease;
}
.promo-card:hover .promo-card__image {
    transform: scale(1.04);
}

.promo-card__content {
    flex: 1 1 auto;
    min-width: 0;             /* allow text to shrink/wrap inside the slot —
                                 without this, a long English/Turkish title
                                 forces the column to its intrinsic width and
                                 pushes the image past the card edge. */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 56px 28px 20px;  /* internal spacing — 20px bottom for the CTA */
}

/* ---- Text (unified sizing & colors with video_hero) ---- */
.promo-card__title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1rem, 1.35vw, 1.45rem);
    line-height: 1.35;
    color: var(--dark);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.promo-card__title-line {
    display: block;
    /* Allow lines to wrap when the slot is narrow (longer English/Turkish
       words wouldn't fit on a single line otherwise). word-break + the
       wrap mode below handle ANY long token gracefully so the card never
       gets pushed wider than its slot. */
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
.promo-card__description {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--gray-500);
}
body.dark-mode .promo-card__title {
    color: #ffffff;
}
body.dark-mode .promo-card__description {
    color: var(--gray-400);
}

/* On the home wallpaper (light) — snow text matches video_hero */
body.home-wallpaper-active:not(.dark-mode) .promo-card__title {
    color: #6a0d7a;
    text-shadow: 0 2px 8px rgba(20, 0, 40, 0.20);
}
body.home-wallpaper-active:not(.dark-mode) .promo-card__description {
    color: #bd31d6;
    text-shadow: 0 1px 2px rgba(20, 0, 40, 0.18);
}

/* ---- CTA (matches .video-hero-section__cta exactly) ---- */
.promo-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;             /* pushes the CTA to the bottom of the card,
                                     so both cards align their buttons on the
                                     same baseline regardless of text length */
    padding: 10px 28px;
    min-width: 180px;             /* match the visual width of the video CTA
                                     even though the card text is shorter */
    border-radius: 100px;
    border: none;                 /* same as the video CTA — no border to
                                     keep the height identical */
    background: var(--primary);
    color: var(--primary-btn-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(62, 0, 95, 0.25);
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.promo-card__cta:hover,
.promo-card__cta:focus-visible {
    /* gradient blend from brand purple to accent pink — keeps in
       palette while reading as a clear hover state */
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--primary-btn-color);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.30);
    outline: none;
}
body.dark-mode .promo-card__cta {
    box-shadow: 0 8px 24px rgba(180, 143, 255, 0.18);
}
body.dark-mode .promo-card__cta:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    box-shadow: 0 12px 30px rgba(255, 126, 182, 0.30);
}

/* Disabled (Coming Soon) state — keep filled look, no hover effect */
.promo-card__cta.is-disabled {
    cursor: default;
    opacity: 0.65;
    box-shadow: none;
}
.promo-card__cta.is-disabled:hover,
.promo-card__cta.is-disabled:focus-visible {
    background: var(--primary);
    color: var(--primary-btn-color);
    transform: none;
    box-shadow: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 991px) {
    /* Clip content to the card's rounded corners on mobile so
       the bottom edge doesn't look broken */
    .promo-card {
        overflow: hidden;
    }
    /* Badge moves inside the card so overflow:hidden doesn't clip it */
    .promo-card__badge {
        top: 16px;
    }
    .promo-card__body {
        flex-direction: column;
        gap: 0;
    }
    .promo-card__media {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        height: 220px;            /* fixed height on mobile — image fits inside via contain */
        /* drop the radius on mobile — the parent now clips */
        border-start-end-radius: 0;
        border-start-start-radius: 0;
        border-end-end-radius: 0;
    }
    .promo-card__image {
        width: 100%;
        height: 100%;
    }
    .promo-card__content {
        padding: 56px 20px 24px;  /* extra top space because badge sits inside */
    }
}

@media (max-width: 575px) {
    .promo-card__badge {
        min-width: 140px;
        font-size: 0.85rem;
        padding: 6px 16px;
    }
}
