/* ============================================================
   special.css - 특가 페이지
   ============================================================ */

/* ===== 히어로 ===== */
.sp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0a0a0a;
}

.sp-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232,184,75,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(232,184,75,0.05) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(232,184,75,0.06) 0%, transparent 50%),
        #0a0a0a;
    animation: bgPulse 6s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0%   { opacity: 0.8; }
    100% { opacity: 1; }
}

.sp-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.sp-hero-badge {
    display: inline-block;
    background: rgba(232,184,75,0.15);
    border: 1px solid rgba(232,184,75,0.4);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.sp-hero-title {
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
    word-break: keep-all;
}
.sp-hero-title em {
    color: var(--color-primary);
    font-style: normal;
    position: relative;
}
.sp-hero-title em::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 0; right: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

@media (max-width: 640px) {
    .sp-hero-title { font-size: 36px; }
}

.sp-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

/* 카운트다운 */
.sp-countdown {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(232,184,75,0.2);
    border-radius: var(--radius-lg);
    padding: 20px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.sp-countdown-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.sp-countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.sp-cd-unit span {
    font-size: 40px;
    font-weight: 900;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    min-width: 56px;
    text-align: center;
    line-height: 1;
}
.sp-cd-unit small {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
}
.sp-cd-sep {
    font-size: 32px;
    font-weight: 900;
    color: rgba(232,184,75,0.4);
    margin-bottom: 12px;
}

@media (max-width: 480px) {
    .sp-cd-unit span { font-size: 28px; min-width: 40px; }
    .sp-countdown { padding: 16px 20px; }
}

/* 화살표 */
.sp-hero-arrow {
    font-size: 24px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    animation: bounce 2s infinite;
    margin-top: 10px;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ===== 차량 섹션 ===== */
.sp-cars-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg-secondary);
}

.sp-section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}
.sp-section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.sp-count {
    font-size: 16px;
    background: rgba(232,184,75,0.12);
    color: var(--color-primary);
    border: 1px solid rgba(232,184,75,0.3);
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-weight: 700;
}
.sp-section-header p {
    color: var(--color-text-muted);
    margin-top: 6px;
    font-size: 14px;
}

/* 그리드 */
.sp-cars-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: var(--spacing-lg);
}
@media (min-width: 640px)  { .sp-cars-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-cars-grid { grid-template-columns: repeat(3, 1fr); } }

/* 카드 */
.sp-car-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.sp-car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232,184,75,0.15);
    border-color: rgba(232,184,75,0.4);
}

.sp-card-thumb {
    position: relative;
    padding-top: 62%;
    background: var(--color-bg-secondary);
    overflow: hidden;
}
.sp-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.sp-car-card:hover .sp-card-thumb img { transform: scale(1.04); }

.sp-card-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

/* 할인율 배지 */
.sp-discount-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #ef4444;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

.sp-card-badges {
    position: absolute;
    top: 12px; left: 12px;
    display: flex;
    gap: 4px;
}

/* 카드 바디 */
.sp-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sp-card-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text);
}
.sp-card-sub {
    font-size: 12px;
    color: var(--color-text-muted);
}
.sp-card-spec {
    font-size: 12px;
    color: var(--color-text-secondary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

/* 가격 */
.sp-card-price-wrap {
    padding: 10px 0;
}
.sp-card-original {
    font-size: 12px;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-bottom: 3px;
}
.sp-card-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
}
.sp-card-price em {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: rgba(232,184,75,0.7);
    margin-left: 2px;
}
.sp-card-saved {
    font-size: 11px;
    color: #ef4444;
    font-weight: 600;
    margin-top: 4px;
}

/* 내일 가격 */
.sp-tomorrow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(239,68,68,0.06);
    border: 1px dashed rgba(239,68,68,0.25);
    border-radius: var(--radius-md);
    margin-top: 6px;
}
.sp-tomorrow-label {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.sp-tomorrow-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-secondary);
    flex: 1;
}
.sp-tomorrow-down {
    font-size: 11px;
    color: #ef4444;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== 빈 상태 ===== */
.sp-empty {
    text-align: center;
    padding: var(--spacing-2xl);
    color: var(--color-text-muted);
}
.sp-empty h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0 6px;
    color: var(--color-text);
}

/* ===== 하단 CTA ===== */
.sp-cta-section {
    padding: var(--spacing-2xl) 0;
    background: var(--color-bg);
}
.sp-cta-box {
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, rgba(232,184,75,0.08), rgba(232,184,75,0.03));
    border: 1px solid rgba(232,184,75,0.2);
    border-radius: var(--radius-xl);
}
.sp-cta-box h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 8px;
}
.sp-cta-box p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    word-break: keep-all;
}
.sp-cta-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}


/* ===== 카드별 타이머 ===== */
.sp-card-original {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.sp-card-original s { color: var(--color-text-muted); }
.sp-arrow { color: var(--color-primary); font-weight: 700; }
.sp-now-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(232,184,75,0.12);
    padding: 1px 6px;
    border-radius: 3px;
}

.sp-card-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.sp-card-price em {
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: rgba(232,184,75,0.7);
}
.sp-pct-badge {
    font-size: 12px;
    font-weight: 800;
    color: #ef4444;
    background: rgba(239,68,68,0.1);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.sp-card-timer {
    margin-top: 10px;
    border: 1px solid rgba(232,184,75,0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0,0,0,0.2);
}

.sp-card-timer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(232,184,75,0.1);
}
.sp-card-timer-label {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.sp-card-timer-clock {
    font-size: 15px;
    font-weight: 900;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
}

.sp-card-timer-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    font-size: 12px;
}
.sp-ct-current {
    font-weight: 700;
    color: var(--color-text-secondary);
    text-decoration: line-through;
    opacity: 0.6;
}
.sp-ct-arrow {
    color: rgba(255,255,255,0.3);
    font-size: 11px;
}
.sp-ct-next {
    font-weight: 800;
    color: var(--color-text);
}
.sp-ct-diff {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    margin-left: auto;
}


/* ============================================================
   라이트모드 카드 가독성 개선
   ============================================================ */
html:not([data-theme="dark"]) .sp-cars-section {
    background: #f0f0f0;
}

html:not([data-theme="dark"]) .sp-car-card {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
html:not([data-theme="dark"]) .sp-car-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

html:not([data-theme="dark"]) .sp-card-name {
    color: #111;
}
html:not([data-theme="dark"]) .sp-card-sub {
    color: #555;
}
html:not([data-theme="dark"]) .sp-card-spec {
    color: #666;
    border-bottom-color: #e0e0e0;
}

/* 원가 취소선 */
html:not([data-theme="dark"]) .sp-card-original {
    color: #888;
}
html:not([data-theme="dark"]) .sp-card-original s {
    color: #999;
}

/* 카운트 배지 */
html:not([data-theme="dark"]) .sp-count {
    background: rgba(232,184,75,0.15);
    color: #a07800;
    border-color: rgba(232,184,75,0.4);
}

html:not([data-theme="dark"]) .sp-section-header h2 {
    color: #111;
}
html:not([data-theme="dark"]) .sp-section-header p {
    color: #666;
}

/* 타이머 박스 */
html:not([data-theme="dark"]) .sp-card-timer {
    background: #f8f8f8;
    border-color: rgba(232,184,75,0.4);
}
html:not([data-theme="dark"]) .sp-card-timer-top {
    border-bottom-color: #e8e8e8;
}
html:not([data-theme="dark"]) .sp-card-timer-label {
    color: #666;
}
html:not([data-theme="dark"]) .sp-ct-current {
    color: #888;
}
html:not([data-theme="dark"]) .sp-ct-arrow {
    color: #bbb;
}
html:not([data-theme="dark"]) .sp-ct-next {
    color: #111;
    font-weight: 800;
}

/* CTA */
html:not([data-theme="dark"]) .sp-cta-section {
    background: #f0f0f0;
}
html:not([data-theme="dark"]) .sp-cta-box {
    background: linear-gradient(135deg, rgba(232,184,75,0.1), rgba(232,184,75,0.04));
    border-color: rgba(232,184,75,0.3);
}
html:not([data-theme="dark"]) .sp-cta-box h3 {
    color: #111;
}
html:not([data-theme="dark"]) .sp-cta-box p {
    color: #555;
}
html:not([data-theme="dark"]) .btn-outline {
    border-color: #333 !important;
    color: #333 !important;
}


/* ============================================================
   카드 가격 개선 - 누적 할인 강조
   ============================================================ */
.sp-card-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 4px 0 6px;
}

.sp-discount-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.sp-discount-total-num {
    font-size: 16px;
    font-weight: 900;
    color: #ef4444;
    line-height: 1;
}
.sp-discount-total-label {
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
    opacity: 0.8;
    white-space: nowrap;
}

/* 타이머 하단 - 내일 가격 */
.sp-ct-label {
    font-size: 10px;
    color: var(--color-text-muted);
    font-weight: 600;
    white-space: nowrap;
    margin-right: 2px;
}
.sp-ct-diff {
    font-size: 11px;
    font-weight: 700;
    color: #ef4444;
    margin-left: auto;
    white-space: nowrap;
}

html:not([data-theme="dark"]) .sp-ct-label { color: #888; }