/* Deal of the Day spotlight on /deals.
 * Top-of-page conversion driver. Layered amber gradient over an opaque white
 * surface (see CLAUDE.md OPAQUE-BACKGROUND RULE) so the design intent works
 * regardless of where the partial is included.
 */

.deal-of-day {
    position: relative;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 60%, #fde68a 100%), var(--color-surface-card, #fff);
    border: 1.5px solid #f59e0b;
    border-radius: 18px;
    padding: 28px 28px 24px;
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.18), 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    isolation: isolate;
}

/* Subtle radial accent in the corner — purely decorative */
.deal-of-day::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.20) 0%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.deal-of-day__ribbon {
    position: absolute;
    top: 0;
    left: 24px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    z-index: 2;
}

.deal-of-day__ribbon i {
    font-size: 13px;
}

.deal-of-day__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

/* ---- Discount badge ---- */
.deal-of-day__discount {
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.35);
    flex-shrink: 0;
}

.deal-of-day__discount-num {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.deal-of-day__discount-off {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: 2px;
}

/* ---- Body ---- */
.deal-of-day__body {
    min-width: 0; /* allow flex/grid children to shrink for ellipsis */
}

.deal-of-day__firm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.deal-of-day__logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.deal-of-day__firm-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.15s ease;
}

.deal-of-day__firm-name:hover {
    color: #b45309;
}

.deal-of-day__grade-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.10);
    color: #4f46e5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.deal-of-day__tp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 182, 122, 0.10);
    color: #00724d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.deal-of-day__tp-chip i {
    color: #00b67a;
    font-size: 12px;
}

.deal-of-day__tp-chip:hover {
    background: rgba(0, 182, 122, 0.18);
    color: #00724d;
}

.deal-of-day__headline {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.deal-of-day__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
}

.deal-of-day__meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.deal-of-day__code-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px dashed #d97706;
    border-radius: 10px;
    padding: 6px 12px;
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

.deal-of-day__code-label {
    font-size: 10px;
    font-weight: 700;
    color: #92400e;
    letter-spacing: 0.10em;
}

.deal-of-day__code-value {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a2e;
    letter-spacing: 0.02em;
}

.deal-of-day__from {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
}

.deal-of-day__from i {
    color: #d97706;
    font-size: 14px;
}

.deal-of-day__from strong {
    color: #1a1a2e;
    font-weight: 700;
}

/* ---- CTA ---- */
.deal-of-day__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    flex-shrink: 0;
}

.deal-of-day__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease;
    position: relative;
    overflow: hidden;
}

.deal-of-day__cta:hover,
.deal-of-day__cta:focus-visible {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.20);
    color: #fff;
}

.deal-of-day__cta:active {
    transform: translateY(0);
}

.deal-of-day__cta-arrow {
    font-size: 22px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.deal-of-day__cta:hover .deal-of-day__cta-arrow,
.deal-of-day__cta:focus-visible .deal-of-day__cta-arrow {
    transform: translateX(4px);
}

.deal-of-day__cta-sub {
    font-size: 11px;
    color: #92400e;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.deal-of-day__cta-sub i {
    font-size: 13px;
    color: #059669;
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .deal-of-day {
        padding: 26px 18px 20px;
        border-radius: 14px;
    }
    .deal-of-day__inner {
        grid-template-columns: auto 1fr;
        gap: 14px 16px;
    }
    .deal-of-day__discount {
        width: 72px;
        height: 72px;
        border-radius: 14px;
    }
    .deal-of-day__discount-num {
        font-size: 24px;
    }
    .deal-of-day__discount-off {
        font-size: 10px;
    }
    .deal-of-day__headline {
        font-size: 18px;
    }
    .deal-of-day__desc {
        font-size: 13px;
    }
    .deal-of-day__cta-wrap {
        grid-column: 1 / -1; /* full width below body on mobile */
        margin-top: 6px;
    }
    .deal-of-day__cta {
        min-width: 0;
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .deal-of-day__firm-row {
        gap: 6px;
    }
    .deal-of-day__headline {
        font-size: 17px;
    }
    .deal-of-day__code-pill {
        padding: 5px 10px;
    }
    .deal-of-day__code-value {
        font-size: 13px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .deal-of-day__cta,
    .deal-of-day__cta-arrow {
        transition: none;
    }
    .deal-of-day__cta:hover {
        transform: none;
    }
    .deal-of-day__cta:hover .deal-of-day__cta-arrow {
        transform: none;
    }
}

/* ============================================================
   HERO variant (Exp 12, 2026-05-11)
   Full-width treatment at top of /deals. Amber gradient layered
   over the page's purple gradient via a backdrop pseudo-element
   so the hero reads as a dominant top-of-page conversion driver.
   ============================================================ */
.deal-of-day--hero {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    isolation: isolate;
}

.deal-of-day--hero::before {
    /* Disable the small corner radial used by the boxed variant; hero gets its own bg layer */
    display: none;
}

.deal-of-day--hero .deal-of-day__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 8% 50%, rgba(99, 102, 241, 0.28) 0%, rgba(99, 102, 241, 0) 55%),
        radial-gradient(ellipse at 92% 50%, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0) 55%),
        linear-gradient(135deg, #1a1340 0%, #2d1b69 35%, #6b21a8 70%, #b45309 100%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) inset, 0 -1px 0 rgba(255, 255, 255, 0.04) inset;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deal-of-day--hero > .container {
    position: relative;
    z-index: 1;
    padding-top: 56px;
    padding-bottom: 36px;
}

.deal-of-day--hero .deal-of-day__ribbon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: inline-flex;
    margin-bottom: 18px;
    font-size: 12px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.deal-of-day--hero .deal-of-day__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

/* Bigger discount badge — primary visual anchor */
.deal-of-day--hero .deal-of-day__discount {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow:
        0 16px 40px rgba(217, 119, 6, 0.55),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.deal-of-day--hero .deal-of-day__discount-num {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 6px rgba(120, 53, 15, 0.30);
}

.deal-of-day--hero .deal-of-day__discount-off {
    font-size: 13px;
    letter-spacing: 0.18em;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(120, 53, 15, 0.30);
}

/* Body — white text directly on the purple/amber gradient backdrop */
.deal-of-day--hero .deal-of-day__body {
    color: #fff;
}

.deal-of-day--hero .deal-of-day__firm-row {
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.deal-of-day--hero .deal-of-day__logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.deal-of-day--hero .deal-of-day__firm-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.deal-of-day--hero .deal-of-day__firm-name {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.005em;
}

.deal-of-day--hero .deal-of-day__firm-name:hover {
    color: #fde68a;
    text-decoration: none;
}

.deal-of-day--hero .deal-of-day__chips {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.deal-of-day--hero .deal-of-day__grade-chip {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(6px);
}

.deal-of-day--hero .deal-of-day__tp-chip {
    background: rgba(0, 182, 122, 0.22);
    color: #fff;
    border: 1px solid rgba(0, 182, 122, 0.45);
}

.deal-of-day--hero .deal-of-day__tp-chip i {
    color: #fef08a;
}

.deal-of-day--hero .deal-of-day__tp-chip:hover {
    background: rgba(0, 182, 122, 0.35);
    color: #fff;
}

.deal-of-day--hero .deal-of-day__headline {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 6px 0 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.30);
}

.deal-of-day--hero .deal-of-day__desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 14px;
    max-width: 640px;
}

.deal-of-day--hero .deal-of-day__meta-row {
    gap: 12px;
}

.deal-of-day--hero .deal-of-day__code-pill {
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px dashed #fbbf24;
    padding: 8px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.deal-of-day--hero .deal-of-day__code-label {
    color: #b45309;
}

.deal-of-day--hero .deal-of-day__code-value {
    font-size: 15px;
    color: #1a1a2e;
}

.deal-of-day--hero .deal-of-day__from {
    color: #fde68a;
    font-size: 14px;
}

.deal-of-day--hero .deal-of-day__from i {
    color: #fbbf24;
}

.deal-of-day--hero .deal-of-day__from strong {
    color: #fff;
}

/* Live countdown */
.deal-of-day__countdown {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.deal-of-day__countdown-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fde68a;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.deal-of-day__countdown-label i {
    color: #fbbf24;
    font-size: 14px;
}

.deal-of-day__countdown-blocks {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}

.deal-of-day__countdown-block {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.deal-of-day__countdown-num {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
    min-width: 28px;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.deal-of-day__countdown-unit {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.65);
    margin-right: 6px;
}

.deal-of-day__countdown-block:last-child .deal-of-day__countdown-unit {
    margin-right: 0;
}

.deal-of-day--expired .deal-of-day__countdown {
    background: rgba(239, 68, 68, 0.20);
    border-color: rgba(239, 68, 68, 0.45);
}

/* Bigger CTA */
.deal-of-day--hero .deal-of-day__cta-wrap {
    gap: 8px;
}

.deal-of-day--hero .deal-of-day__cta {
    min-width: 260px;
    padding: 20px 32px;
    font-size: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: #1a1a2e;
    box-shadow:
        0 14px 32px rgba(217, 119, 6, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.45);
    font-weight: 900;
    letter-spacing: 0.01em;
}

.deal-of-day--hero .deal-of-day__cta:hover,
.deal-of-day--hero .deal-of-day__cta:focus-visible {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow:
        0 20px 44px rgba(217, 119, 6, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.55);
    color: #1a1a2e;
}

.deal-of-day--hero .deal-of-day__cta-arrow {
    font-size: 26px;
}

.deal-of-day--hero .deal-of-day__cta-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

/* Tablet */
@media (max-width: 991px) {
    .deal-of-day--hero > .container {
        padding-top: 48px;
        padding-bottom: 30px;
    }
    .deal-of-day--hero .deal-of-day__inner {
        gap: 20px;
    }
    .deal-of-day--hero .deal-of-day__discount {
        width: 116px;
        height: 116px;
    }
    .deal-of-day--hero .deal-of-day__discount-num {
        font-size: 42px;
    }
    .deal-of-day--hero .deal-of-day__headline {
        font-size: 26px;
    }
    .deal-of-day--hero .deal-of-day__cta {
        min-width: 220px;
        padding: 18px 26px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .deal-of-day--hero > .container {
        padding-top: 40px;
        padding-bottom: 24px;
    }
    .deal-of-day--hero .deal-of-day__inner {
        grid-template-columns: auto 1fr;
        gap: 16px 18px;
    }
    .deal-of-day--hero .deal-of-day__discount {
        width: 92px;
        height: 92px;
        border-radius: 18px;
    }
    .deal-of-day--hero .deal-of-day__discount-num {
        font-size: 32px;
    }
    .deal-of-day--hero .deal-of-day__discount-off {
        font-size: 11px;
        letter-spacing: 0.14em;
    }
    .deal-of-day--hero .deal-of-day__logo {
        width: 44px;
        height: 44px;
    }
    .deal-of-day--hero .deal-of-day__firm-name {
        font-size: 15px;
    }
    .deal-of-day--hero .deal-of-day__headline {
        font-size: 22px;
        line-height: 1.2;
    }
    .deal-of-day--hero .deal-of-day__desc {
        font-size: 14px;
    }
    .deal-of-day--hero .deal-of-day__cta-wrap {
        grid-column: 1 / -1;
        margin-top: 8px;
    }
    .deal-of-day--hero .deal-of-day__cta {
        width: 100%;
        min-width: 0;
        padding: 17px 22px;
        font-size: 16px;
    }
    .deal-of-day__countdown {
        padding: 8px 12px;
        gap: 10px;
    }
    .deal-of-day__countdown-num {
        font-size: 19px;
        min-width: 24px;
    }
    .deal-of-day__countdown-label {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .deal-of-day--hero .deal-of-day__headline {
        font-size: 20px;
    }
    .deal-of-day--hero .deal-of-day__ribbon {
        font-size: 11px;
        padding: 6px 14px;
    }
    .deal-of-day__countdown {
        flex-wrap: wrap;
    }
}
