/* ===============================================
   FLASH SALE PAGE STYLES
   =============================================== */

/* Flash Sale Header */
.flash-sale-header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 16px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.flash-sale-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.flash-sale-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.flash-sale-title h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.flash-icon {
    width: 40px;
    height: 40px;
    color: #FFD700;
    animation: flash-pulse 1s ease-in-out infinite;
}

@keyframes flash-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.flash-sale-subtitle {
    color: rgba(255,255,255,0.9);
    margin: 0.5rem 0 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Section Header */
.flash-sale-section {
    margin-bottom: 3rem;
}

.flash-sale-section .section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flash-sale-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ff4444;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Flash Sale Grid */
.flash-sale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Flash Sale Card */
.flash-sale-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.flash-sale-card.ended {
    opacity: 0.6;
    pointer-events: none;
}

/* Flash Badge */
.flash-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(255,75,43,0.4);
}

.flash-badge svg {
    width: 14px;
    height: 14px;
}

/* Product Link */
.flash-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Product Image */
.flash-product-image {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.flash-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flash-sale-card:hover .flash-product-image img {
    transform: scale(1.05);
}

/* Product Info */
.flash-product-info {
    padding: 1rem;
}

.flash-game-name {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.flash-product-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Price Container */
.flash-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.flash-original-price {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.flash-sale-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ff4444;
}

.discount-badge {
    background: #fff3cd;
    color: #856404;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Stock Info */
.flash-stock-info {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.stock-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.stock-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.stock-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.sold-text {
    color: #ff4444;
    font-weight: 600;
}

/* Countdown Timer */
.flash-countdown,
.upcoming-countdown {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.countdown-label {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 6px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.countdown-unit {
    text-align: center;
}

.countdown-value {
    display: block;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    min-width: 44px;
}

.countdown-separator {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.countdown-label-small {
    display: block;
    font-size: 0.65rem;
    color: #888;
    margin-top: 4px;
    text-transform: uppercase;
}

.countdown-ended {
    text-align: center;
    padding: 1rem;
    color: #ff4444;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Buy Button */
.flash-buy-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0C951E 0%, #0a7a19 100%);
    color: white;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flash-buy-btn:hover {
    background: linear-gradient(135deg, #0a7a19 0%, #086614 100%);
}

/* Upcoming Section */
.upcoming-section .section-header h2 svg {
    color: #3b82f6;
}

.upcoming-card {
    opacity: 0.9;
}

.upcoming-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.upcoming-badge svg {
    width: 14px;
    height: 14px;
}

.upcoming-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1rem 1rem;
}

.upcoming-overlay span {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
}

.flash-notify-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 1rem;
    background: #f0f0f0;
    color: #666;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: not-allowed;
}

.flash-notify-btn svg {
    width: 18px;
    height: 18px;
}

/* No Flash Sale */
.no-flash-sale {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.no-flash-sale svg {
    width: 80px;
    height: 80px;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.no-flash-sale h3 {
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.no-flash-sale p {
    color: #666;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .flash-sale-header {
        padding: 1.5rem 1rem;
    }
    
    .flash-sale-title h1 {
        font-size: 1.5rem;
    }
    
    .flash-icon {
        width: 30px;
        height: 30px;
    }
    
    .flash-sale-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .flash-product-image {
        height: 120px;
    }
    
    .flash-product-info {
        padding: 0.75rem;
    }
    
    .flash-product-name {
        font-size: 0.9rem;
    }
    
    .countdown-value {
        padding: 6px 8px;
        font-size: 0.9rem;
        min-width: 36px;
    }
}

@media (max-width: 480px) {
    .flash-sale-grid {
        grid-template-columns: 1fr;
    }
    
    .flash-product-image {
        height: 150px;
    }
}
