/* public/css/promotions.css - Promotions page styles */

/* Main Layout */
.promotions-main {
    padding-top: 100px;
}

/* Hero Section */
.promotions-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promotions-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.hero-title i {
    color: #dc3545;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: #dc3545;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Hot Deals Section */
.hot-deals-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 50px;
}

.section-title i {
    color: #ff6b35;
}

.hot-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

/* Deal Card */
.deal-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.deal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.deal-card.hot-deal {
    border-color: #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(220, 53, 69, 0.05));
}

.deal-card.flash-sale {
    animation: flashPulse 2s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
}

.deal-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b35, #dc3545);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.weekend-badge {
    background: linear-gradient(135deg, #6f42c1, #495057);
}

.deal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.old-price {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.new-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #dc3545;
}

.deal-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.deal-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.feature-item i {
    color: #22c55e;
    width: 16px;
}

.feature-item span {
    color: var(--text-secondary);
    font-size: 14px;
}

.deal-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 53, 69, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #dc3545;
}

.timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.deal-footer {
    text-align: center;
}

.deal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.flash-btn {
    background: linear-gradient(135deg, #ff6b35, #dc3545);
    color: white;
}

.flash-btn:hover {
    background: linear-gradient(135deg, #dc3545, #c82333);
    transform: translateY(-2px);
}

.weekend-btn {
    background: linear-gradient(135deg, #6f42c1, #495057);
    color: white;
}

.weekend-btn:hover {
    background: linear-gradient(135deg, #5a32a3, #343a40);
    transform: translateY(-2px);
}

/* Promo Codes Section */
.promo-codes-section {
    padding: 80px 0;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Promo Card */
.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.promo-card.limited {
    border-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 193, 7, 0.1));
}

.promo-card.seasonal {
    border-color: #dc3545;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(255, 107, 53, 0.05));
}

.limited-badge,
.seasonal-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.seasonal-badge {
    background: linear-gradient(135deg, #dc3545, #ff6b35);
    display: flex;
    align-items: center;
    gap: 4px;
}

.promo-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.promo-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.promo-icon.gaming {
    background: linear-gradient(135deg, #6f42c1, #495057);
}

.promo-icon.crypto {
    background: linear-gradient(135deg, #fd7e14, #ffc107);
}

.promo-icon.vip {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.promo-icon.student {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.promo-icon.tet {
    background: linear-gradient(135deg, #dc3545, #ff6b35);
}

.promo-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.promo-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.promo-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 2px dashed var(--border-primary);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.promo-code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.promo-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.promo-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 14px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.promo-conditions {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* How to Use Section */
.how-to-use-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.newsletter-content p {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 8px;
    }

    .hero-stats {
        gap: 30px;
    }

    .hot-deals-grid {
        grid-template-columns: 1fr;
    }

    .promo-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 300px;
    }

    .section-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 8px;
    }

    .deal-card {
        padding: 20px;
    }

    .promo-card {
        padding: 20px;
    }

    .promo-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .deal-header h3 {
        font-size: 1.25rem;
    }

    .new-price {
        font-size: 1.5rem;
    }

    .promo-header {
        flex-direction: column;
        text-align: center;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Copy Success Animation */
@keyframes copySuccess {
    0% { background: var(--primary-color); }
    50% { background: #22c55e; }
    100% { background: var(--primary-color); }
}

.copy-btn.success {
    animation: copySuccess 0.6s ease;
}

/* Timer Animation */
@keyframes timerBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

.timer.urgent {
    animation: timerBlink 1s ease-in-out infinite;
}

/* Print Styles */
@media print {
    .promotions-hero::before,
    .newsletter-section,
    .deal-timer,
    .copy-btn {
        display: none;
    }
    
    .deal-card,
    .promo-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .promo-code-box {
        border: 2px solid #000;
    }
}