/* Homepage Deal Spotlight (Exp 13)
 *
 * Single horizontal banner card pinned above the Hot Deals 4-card grid on /.
 * Distinct from /deals Deal of the Day hero (which is full-bleed). This is
 * compact, opaque (per CLAUDE.md OPAQUE-BACKGROUND RULE) and fits the existing
 * homepage rhythm — wider than a hot-deal card, shorter than the /deals hero.
 *
 * Layout: 3-column grid on desktop (discount badge | body | CTA), collapses
 * to single column at <768px with discount + body in a row above the CTA.
 */

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

.home-deal-spotlight::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.20) 0%, rgba(245, 158, 11, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

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

.home-deal-spotlight__ribbon i {
    font-size: 13px;
}

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

.home-deal-spotlight__discount {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 6px;
    background: #fff;
    border: 2px solid #f59e0b;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18);
}

.home-deal-spotlight__discount-num {
    font-size: 36px;
    font-weight: 900;
    color: #92400e;
    line-height: 1;
    letter-spacing: -0.02em;
}

.home-deal-spotlight__discount-off {
    font-size: 11px;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.home-deal-spotlight__body {
    min-width: 0;
}

.home-deal-spotlight__firm-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.home-deal-spotlight__logo {
    flex-shrink: 0;
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.home-deal-spotlight__firm-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.home-deal-spotlight__firm-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    line-height: 1.1;
}

.home-deal-spotlight__firm-name:hover,
.home-deal-spotlight__firm-name:focus-visible {
    color: #92400e;
    text-decoration: underline;
}

.home-deal-spotlight__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-deal-spotlight__chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.5;
}

.home-deal-spotlight__chip--grade {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

.home-deal-spotlight__chip--tp {
    background: rgba(0, 182, 122, 0.12);
    color: #00724d;
    transition: background-color 0.18s ease;
}

.home-deal-spotlight__chip--tp:hover,
.home-deal-spotlight__chip--tp:focus-visible {
    background: rgba(0, 182, 122, 0.22);
}

.home-deal-spotlight__chip--tp i {
    font-size: 11px;
    color: #00b67a;
}

.home-deal-spotlight__headline {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 8px 0 10px;
}

.home-deal-spotlight__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.home-deal-spotlight__code-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1.5px dashed #f59e0b;
    border-radius: 8px;
    font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Mono", monospace;
}

.home-deal-spotlight__code-label {
    font-size: 9px;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 0.12em;
}

.home-deal-spotlight__code-value {
    font-size: 13px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: 0.04em;
}

.home-deal-spotlight__from {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
}

.home-deal-spotlight__from i {
    color: #b45309;
    font-size: 13px;
}

.home-deal-spotlight__from strong {
    color: #1a1a2e;
    font-weight: 800;
}

.home-deal-spotlight__cta-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 200px;
}

.home-deal-spotlight__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 12px;
    border: 1.5px solid rgba(146, 64, 14, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 8px 18px rgba(245, 158, 11, 0.32);
    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 cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.01em;
}

.home-deal-spotlight__cta:hover,
.home-deal-spotlight__cta:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 55%, #b45309 100%);
    color: #1a1a2e;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 12px 24px rgba(245, 158, 11, 0.4);
}

.home-deal-spotlight__cta:active {
    transform: translateY(0);
}

.home-deal-spotlight__cta-arrow {
    font-size: 18px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.home-deal-spotlight__cta-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    color: #92400e;
    font-weight: 600;
}

.home-deal-spotlight__cta-sub i {
    font-size: 12px;
    color: #059669;
}

/* Tablet */
@media (max-width: 991px) {
    .home-deal-spotlight {
        padding: 20px 18px 16px;
    }
    .home-deal-spotlight__headline {
        font-size: 19px;
    }
    .home-deal-spotlight__discount {
        min-width: 80px;
    }
    .home-deal-spotlight__discount-num {
        font-size: 30px;
    }
}

/* Mobile — collapse 3-col grid into 2 rows: [discount + body] then [CTA full-width] */
@media (max-width: 768px) {
    .home-deal-spotlight {
        padding: 18px 16px 14px;
        margin-bottom: 24px;
    }
    .home-deal-spotlight__inner {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 14px 14px;
    }
    .home-deal-spotlight__discount {
        grid-row: 1;
        grid-column: 1;
        min-width: 72px;
        padding: 8px 6px;
    }
    .home-deal-spotlight__discount-num {
        font-size: 26px;
    }
    .home-deal-spotlight__body {
        grid-row: 1;
        grid-column: 2;
    }
    .home-deal-spotlight__cta-wrap {
        grid-row: 2;
        grid-column: 1 / -1;
        min-width: 0;
    }
    .home-deal-spotlight__headline {
        font-size: 17px;
        margin: 4px 0 8px;
    }
    .home-deal-spotlight__firm-row {
        gap: 8px;
        margin-bottom: 4px;
    }
    .home-deal-spotlight__logo {
        width: 36px !important;
        height: 36px !important;
    }
    .home-deal-spotlight__cta {
        padding: 13px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .home-deal-spotlight__headline {
        font-size: 16px;
    }
    .home-deal-spotlight__chips {
        gap: 4px;
    }
}

/* Reduced-motion guard — neutralize transforms but keep gradient/shadow weight */
@media (prefers-reduced-motion: reduce) {
    .home-deal-spotlight__cta,
    .home-deal-spotlight__cta-arrow,
    .home-deal-spotlight__chip--tp {
        transition: none;
    }
    .home-deal-spotlight__cta:hover,
    .home-deal-spotlight__cta:focus-visible {
        transform: none;
    }
    .home-deal-spotlight__cta:hover .home-deal-spotlight__cta-arrow,
    .home-deal-spotlight__cta:focus-visible .home-deal-spotlight__cta-arrow {
        transform: none;
    }
}
