/* =========================================================================
   SNAP COMMERCE SUITE - ENHANCEMENT STYLESHEET
   Path: admin/snap/assets/css/snap-suite.css
   Isolated design additions for all 15 Snap Modules
   ========================================================================= */

/* --- 1. WhatsApp / Telegram Direct Order Buttons --- */
.snap-wa-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}
.snap-wa-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45) !important;
}

.snap-tg-btn {
    border-radius: 50px !important;
    font-weight: 700 !important;
    transition: all 0.25s ease !important;
}

/* --- 2. Live Search Dropdown --- */
.snap-live-search-wrapper {
    position: relative;
    width: 100%;
}
.snap-search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 320px;
    background: #0d1527 !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(245, 158, 11, 0.15) !important;
    backdrop-filter: blur(20px);
    z-index: 1080;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px !important;
    display: none;
}
.snap-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #f1f5f9;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.snap-search-item:last-child {
    border-bottom: none;
}
.snap-search-item:hover {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    transform: translateX(3px);
}
.snap-search-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    flex-shrink: 0;
}

/* --- 3. Flash Sale Countdown Badge --- */
.snap-countdown-box {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    color: #f87171;
    font-weight: 700;
}
.snap-timer-unit {
    background: #dc2626;
    color: #ffffff;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
}

/* --- 4. Stock Scarcity Alerts --- */
.snap-scarcity-badge {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
}
.snap-scarcity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: snapPulseDot 1.6s infinite ease-in-out;
}
@keyframes snapPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* --- 5. Order Tracking Timeline --- */
.snap-timeline-container {
    width: 100%;
}
.snap-timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
}
.snap-timeline-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.snap-timeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}
.snap-step-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #64748b;
    border: 2px solid #334155;
    font-size: 16px;
    transition: all 0.3s ease;
}
.snap-step-complete .snap-step-icon {
    background: #059669;
    color: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}
.snap-step-active .snap-step-icon {
    background: #f59e0b;
    color: #0b1120;
    border-color: #fbbf24;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.7);
    animation: snapStepPulse 2s infinite;
}
@keyframes snapStepPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.snap-step-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}
.snap-step-complete .snap-step-label,
.snap-step-active .snap-step-label {
    color: #f1f5f9;
}

/* --- 6. Product Variants Selection --- */
.snap-variant-pills {
    gap: 8px;
}
.snap-variant-pill-label {
    cursor: pointer;
    margin: 0;
}
.snap-variant-pill-span {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    transition: all 0.2s ease;
}
.snap-variant-radio:checked + .snap-variant-pill-span {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fbbf24;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* --- 7. First Order Coupon Popup --- */
.snap-coupon-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1060;
    max-width: 360px;
    animation: snapSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes snapSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.snap-coupon-card {
    background: rgba(13, 21, 39, 0.96) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    backdrop-filter: blur(16px);
    position: relative;
}
.snap-coupon-close {
    filter: invert(1);
    opacity: 0.6;
}
.snap-coupon-close:hover {
    opacity: 1;
}

/* --- 8. Photo Review Thumbnails --- */
.snap-review-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease;
}
.snap-review-thumb:hover {
    transform: scale(1.08);
}

/* --- 9. Mobile Responsiveness for Snap Components --- */
@media (max-width: 768px) {
    .snap-timeline-track::before {
        top: 16px;
    }
    .snap-step-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .snap-step-label {
        font-size: 9px;
    }
    .snap-coupon-toast {
        left: 10px;
        right: 10px;
        bottom: 12px;
        max-width: calc(100vw - 20px);
    }
}
