/* Promotion Section Styles */

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.bg-gradient-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="promo-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(102,126,234,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23promo-grid)"/></svg>');
    opacity: 0.5;
}

/* Promotion Number Cards */
.promotion-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.promotion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35 0%, #f7931e 50%, #ff6b35 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.promotion-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 1);
}

.promotion-card.vip-card {
    background: linear-gradient(135deg, #fffbf0 0%, #fff8e1 100%);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.promotion-card.vip-card::before {
    background: linear-gradient(90deg, #f59e0b 0%, #fcd34d 50%, #f59e0b 100%);
}

/* Special Price Badge */
.special-price-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 0 0 12px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    z-index: 5;
}

.special-price-badge.free-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Promotion Number Display */
.promotion-number-display {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.promotion-card:hover .promotion-number-display {
    transform: scale(1.05);
}

/* Promotion Price Display */
.promotion-price-display {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.promotion-price-display.free-price {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.promotion-price-display.regular-price {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Promotion Badges */
.promotion-badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.promotion-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Promotion Buttons */
.promotion-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.promotion-btn {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border: none;
}

.promotion-btn-copy {
    background: #f1f5f9;
    color: #475569;
}

.promotion-btn-copy:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.promotion-btn-order {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.promotion-btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Pagination Controls */
#loadMorePromotion, #loadPrevPromotion {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#loadMorePromotion:hover, #loadPrevPromotion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

#loadMorePromotion:disabled, #loadPrevPromotion:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

#loadPrevPromotion {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

#loadPrevPromotion:hover {
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.5);
}

#pageIndicator {
    font-size: 1rem !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.promotion-card.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promotion-card {
        padding: 1.25rem;
    }
    
    .promotion-number-display {
        font-size: 1.25rem;
        margin: 0.75rem 0;
    }
    
    .promotion-price-display {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .promotion-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .promotion-btn {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Pagination controls on mobile */
    #loadMorePromotion, #loadPrevPromotion {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    #pageIndicator {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
    }
}

@media (max-width: 480px) {
    .promotion-card {
        padding: 1rem;
    }
    
    .promotion-number-display {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }
    
    .promotion-price-display {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .promotion-badge {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}/*
 Operator Badge Styles for Promotion Cards */
.operator-ais {
    background: linear-gradient(135deg, #00A651, #00C851) !important;
    color: white !important;
}

.operator-dtac {
    background: linear-gradient(135deg, #0066CC, #0080FF) !important;
    color: white !important;
}

.operator-true {
    background: linear-gradient(135deg, #FF6B35, #FF8C42) !important;
    color: white !important;
}

.operator-nt {
    background: linear-gradient(135deg, #8E44AD, #9B59B6) !important;
    color: white !important;
}

/* Promotion Section Title Animation */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Loading Animation */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Promotion grid responsive adjustments */
@media (max-width: 576px) {
    #promotionGrid .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 400px) {
    #promotionGrid .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .promotion-card {
        margin-bottom: 1rem;
    }
}