/* ============================================================
   Spotlight: 2 tính năng khác biệt — Cảnh báo hàng cận date &
   App Android quét mã vạch nhập sản phẩm.
   ============================================================ */

/* Nhãn "MỚI" gắn trên feature-card */
.feature-card {
    position: relative;
}

.feature-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Card 7-8 nối tiếp delay của 6 card có sẵn trong styles.css */
.feature-card:nth-child(7) { transition-delay: 0.7s; }
.feature-card:nth-child(8) { transition-delay: 0.8s; }

/* ---------- Section spotlight ---------- */
.spotlight {
    padding: 100px 0;
    background: var(--bg-white);
}

.spotlight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 88px;
}

.spotlight-row:last-child {
    margin-bottom: 0;
}

/* Hàng thứ 2: hình bên trái, chữ bên phải */
.spotlight-row.reverse .spotlight-visual {
    order: -1;
}

.spotlight-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.spotlight-title {
    font-size: 2rem;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.spotlight-lead {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.spotlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.spotlight-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.6;
}

.spotlight-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.14);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight-note {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-top: 14px;
}

/* ---------- Minh hoạ: popup cảnh báo hàng cận date ---------- */
.expiry-mock {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 420px;
}

.expiry-mock-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 700;
}

.expiry-mock-body {
    padding: 8px 18px 18px;
}

.expiry-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.expiry-item:last-child {
    border-bottom: none;
}

.expiry-item-name {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
}

.expiry-item-sub {
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 2px;
}

.expiry-pill {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.expiry-pill.danger { background: #fee2e2; color: #b91c1c; }
.expiry-pill.warn   { background: #ffedd5; color: #c2410c; }

/* ---------- Minh hoạ: điện thoại đang quét mã ---------- */
.phone-mock {
    width: 260px;
    margin: 0 auto;
    background: #111827;
    border-radius: 34px;
    padding: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.phone-screen {
    background: #000;
    border-radius: 24px;
    overflow: hidden;
}

.phone-topbar {
    background: #C79A3B;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 12px 14px 10px;
}

.phone-clinicbar {
    background: #fbf4e4;
    color: #5a4720;
    font-size: 0.7rem;
    padding: 7px 14px;
    border-bottom: 1px solid #eadfc2;
}

.phone-cam {
    position: relative;
    height: 210px;
    background: radial-gradient(circle at 50% 45%, #2b2b2b 0%, #0b0b0b 75%);
}

.phone-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
}

.phone-laser {
    position: absolute;
    left: 50%;
    width: 130px;
    margin-left: -65px;
    height: 2px;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
    animation: scanSweep 2.2s ease-in-out infinite;
}

@keyframes scanSweep {
    0%, 100% { top: calc(50% - 60px); }
    50%      { top: calc(50% + 60px); }
}

.phone-footer {
    background: #fff;
    padding: 12px 14px 16px;
}

.phone-hint {
    color: var(--text-light);
    font-size: 0.68rem;
    margin-bottom: 8px;
}

.phone-input {
    display: flex;
    gap: 6px;
}

.phone-input span {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.72rem;
    color: var(--text-dark);
}

.phone-input b {
    background: #C79A3B;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.72rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .spotlight { padding: 70px 0; }

    .spotlight-row {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 60px;
    }

    /* Trên mobile luôn để chữ trước, hình sau cho dễ đọc */
    .spotlight-row.reverse .spotlight-visual { order: 0; }

    .spotlight-title { font-size: 1.55rem; }
    .expiry-mock { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .phone-laser { animation: none; top: 50%; }
}
