/**
 * EBA Still Us — Featured Book Sales widget
 *
 * Premium two-column card that features a book cover + product story.
 * Palette: ivory background, burgundy accent, gold detailing.
 */

.eba-wrapper.eba-sub {
    --sub-accent: #5b1a25;
    --sub-gold: #c99a54;
    --sub-ink: #0f1c2e;
    --sub-body: #4a5364;
    --sub-cream: #fbf8f0;
    --sub-line: rgba(15, 28, 46, 0.08);
    --sub-radius: 22px;
    --sub-space: clamp(24px, 4vw, 56px);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--sub-ink);
    padding: clamp(16px, 3vw, 40px);
}

/* ==========================================================
 * CARD SHELL
 * ========================================================== */
.eba-sub .eba-sub__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    gap: 0;
    align-items: stretch;
    background: #f7f4ed;
    border-radius: var(--sub-radius);
    box-shadow:
        0 30px 60px -30px rgba(15, 28, 46, 0.28),
        0 8px 24px -12px rgba(15, 28, 46, 0.14),
        0 0 0 1px rgba(201, 154, 84, 0.15) inset;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

/* Decorative gold hairline corners */
.eba-sub .eba-sub__corner {
    position: absolute;
    width: 42px;
    height: 42px;
    pointer-events: none;
    z-index: 3;
}
.eba-sub .eba-sub__corner--tl {
    top: 16px;
    left: 16px;
    border-top: 2px solid var(--sub-gold);
    border-left: 2px solid var(--sub-gold);
    border-top-left-radius: 6px;
}
.eba-sub .eba-sub__corner--br {
    bottom: 16px;
    right: 16px;
    border-bottom: 2px solid var(--sub-gold);
    border-right: 2px solid var(--sub-gold);
    border-bottom-right-radius: 6px;
}

/* ==========================================================
 * LEFT — COVER COLUMN
 * ========================================================== */
.eba-sub .eba-sub__cover-col {
    position: relative;
    background:
        radial-gradient(circle at 20% 10%, rgba(201, 154, 84, 0.14), transparent 60%),
        linear-gradient(160deg, #fbf8f0 0%, #f0e7d3 100%);
    padding: var(--sub-space);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}
/* Subtle diagonal shimmer */
.eba-sub .eba-sub__cover-col::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    opacity: 0.35;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.eba-sub .eba-sub__cover-wrap {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 2 / 3;
    transform: perspective(1400px) rotateY(-3deg) rotateX(2deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.eba-sub .eba-sub__card:hover .eba-sub__cover-wrap {
    transform: perspective(1400px) rotateY(-1deg) rotateX(0.5deg) translateY(-4px);
}

.eba-sub .eba-sub__cover-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow:
        0 40px 60px -20px rgba(15, 28, 46, 0.5),
        0 20px 30px -12px rgba(91, 26, 37, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.eba-sub .eba-sub__cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f5efe0, #e8dcc0);
    color: var(--sub-gold);
    border-radius: 10px;
}

/* Corner badge (NEW RELEASE etc.) */
.eba-sub .eba-sub__badge {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: var(--sub-accent);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.14em;
    line-height: 1.05;
    text-transform: uppercase;
    text-align: center;
    padding: 8px;
    box-shadow:
        0 12px 22px -8px rgba(91, 26, 37, 0.55),
        0 0 0 3px rgba(201, 154, 84, 0.55),
        0 0 0 6px rgba(255, 255, 255, 0.9);
    z-index: 4;
    transform: rotate(6deg);
}
.eba-sub .eba-sub__badge > span { display: block; }

/* ==========================================================
 * RIGHT — CONTENT COLUMN
 * ========================================================== */
.eba-sub .eba-sub__content-col {
    padding: var(--sub-space);
    display: flex;
    flex-direction: column;
    gap: 18px;
    background-color: #f7f4ed !important;
    background-image: linear-gradient(180deg, transparent 0%, rgba(201, 154, 84, 0.05) 100%) !important;
    position: relative;
}

/* Eyebrow with tiny gold mark */
.eba-sub .eba-sub__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sub-accent);
    line-height: 1;
}
.eba-sub .eba-sub__eyebrow-mark {
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--sub-gold);
    border-radius: 2px;
}

/* Title — serif, elegant, gold underline */
.eba-sub .eba-sub__title {
    margin: 4px 0 0;
    font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -0.005em;
    color: var(--sub-ink);
    position: relative;
    padding-bottom: 14px;
}
.eba-sub .eba-sub__title::after {
    content: '';
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--sub-gold), rgba(201, 154, 84, 0));
    border-radius: 3px;
}

.eba-sub .eba-sub__subtitle {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.45;
    color: var(--sub-accent);
    max-width: 46ch;
}

/* Description */
.eba-sub .eba-sub__desc {
    color: var(--sub-body);
    font-size: 15px;
    line-height: 1.65;
    max-width: 58ch;
}
.eba-sub .eba-sub__desc p { margin: 0 0 10px; }
.eba-sub .eba-sub__desc p:last-child { margin-bottom: 0; }

/* Feature bullets */
.eba-sub .eba-sub__features {
    list-style: none;
    padding: 0;
    margin: 6px 0 4px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px 22px;
}
.eba-sub .eba-sub__features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--sub-ink);
}
.eba-sub .eba-sub__check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(201, 154, 84, 0.16);
    color: var(--sub-gold);
    margin-top: 1px;
}

/* Price row */
.eba-sub .eba-sub__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0 4px;
    margin-top: 6px;
    border-top: 1px dashed var(--sub-line);
}
.eba-sub .eba-sub__price-prefix {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--sub-body);
    font-weight: 600;
}
.eba-sub .eba-sub__price-was {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 20px;
    color: var(--sub-body);
    text-decoration: line-through;
    opacity: 0.7;
}
.eba-sub .eba-sub__price-now {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 700;
    font-size: clamp(28px, 3.6vw, 40px);
    color: var(--sub-accent);
    line-height: 1;
}
.eba-sub .eba-sub__price-now .amount { color: inherit; font-weight: inherit; }
.eba-sub .eba-sub__price-suffix {
    font-size: 12.5px;
    color: var(--sub-body);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* CTA button */
.eba-sub .eba-sub__cta-row {
    margin-top: 4px;
}
.eba-sub .eba-sub__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 30px;
    background: var(--sub-accent);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 999px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow:
        0 14px 26px -10px rgba(91, 26, 37, 0.55),
        0 0 0 3px rgba(201, 154, 84, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
    border: none;
}
.eba-sub .eba-sub__cta:hover,
.eba-sub .eba-sub__cta:focus-visible {
    transform: translateY(-2px);
    background: #6d1f2c;
    box-shadow:
        0 20px 34px -10px rgba(91, 26, 37, 0.6),
        0 0 0 4px rgba(201, 154, 84, 0.4);
    outline: none;
}
.eba-sub .eba-sub__cta-arrow {
    transition: transform 0.25s ease;
}
.eba-sub .eba-sub__cta:hover .eba-sub__cta-arrow {
    transform: translateX(4px);
}

/* Trust badges */
.eba-sub .eba-sub__trust {
    list-style: none;
    padding: 14px 0 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    border-top: 1px solid var(--sub-line);
}
.eba-sub .eba-sub__trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--sub-body);
    font-weight: 500;
    letter-spacing: 0.01em;
}
.eba-sub .eba-sub__trust li svg {
    color: var(--sub-gold);
    flex-shrink: 0;
}

/* ==========================================================
 * RESPONSIVE — stack under 900px
 * ========================================================== */
@media (max-width: 900px) {
    .eba-sub .eba-sub__card {
        grid-template-columns: 1fr;
    }
    .eba-sub .eba-sub__cover-col {
        padding: clamp(32px, 8vw, 56px) clamp(20px, 6vw, 40px);
    }
    .eba-sub .eba-sub__cover-wrap {
        max-width: 260px;
        transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
    }
    .eba-sub .eba-sub__content-col {
        padding: clamp(28px, 6vw, 44px);
    }
    .eba-sub .eba-sub__title {
        font-size: clamp(28px, 7vw, 38px);
    }
    .eba-sub .eba-sub__badge {
        width: 76px;
        height: 76px;
        font-size: 12px;
        top: -12px;
        right: -12px;
    }
    .eba-sub .eba-sub__corner {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 560px) {
    .eba-sub .eba-sub__features {
        grid-template-columns: 1fr;
    }
    .eba-sub .eba-sub__cta {
        width: 100%;
        justify-content: center;
    }
    .eba-sub .eba-sub__price-now {
        font-size: 32px;
    }
}

/* ==========================================================
 * BRAND-LOCKED LIGHT THEME
 * This is a public sales widget — colors are ALWAYS ivory / burgundy /
 * gold regardless of the visitor's OS dark-mode preference. Force text
 * colors to their brand values so a parent dark stylesheet cannot bleed in.
 * ========================================================== */
.eba-wrapper.eba-sub .eba-sub__card,
.eba-wrapper.eba-sub .eba-sub__content-col {
    color: var(--sub-ink);
}
.eba-wrapper.eba-sub .eba-sub__title { color: var(--sub-ink) !important; }
.eba-wrapper.eba-sub .eba-sub__subtitle { color: var(--sub-accent) !important; }
.eba-wrapper.eba-sub .eba-sub__desc,
.eba-wrapper.eba-sub .eba-sub__desc p { color: var(--sub-body) !important; }
.eba-wrapper.eba-sub .eba-sub__features li { color: var(--sub-ink) !important; }
.eba-wrapper.eba-sub .eba-sub__eyebrow { color: var(--sub-accent) !important; }
.eba-wrapper.eba-sub .eba-sub__trust li,
.eba-wrapper.eba-sub .eba-sub__price-suffix,
.eba-wrapper.eba-sub .eba-sub__price-prefix,
.eba-wrapper.eba-sub .eba-sub__price-was { color: var(--sub-body) !important; }
.eba-wrapper.eba-sub .eba-sub__price-now { color: var(--sub-accent) !important; }
.eba-wrapper.eba-sub .eba-sub__cta { color: #fff !important; }
