* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-radius: 15px;
    margin: 20px 0 40px 0;
    color: white;
    transition: all 0.3s ease;
}

/* Theme-based header colors */
.theme-orange .header {
    background: linear-gradient(135deg, #FF6B35, #E85A2B);
}

.theme-red .header {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.theme-green .header {
    background: linear-gradient(135deg, #27AE60, #219A52);
}

.theme-purple .header {
    background: linear-gradient(135deg, #8E44AD, #7D3C98);
}

.header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 90%;
    margin: 0 auto;
}

.header img{
    width: 320px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.offer-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    border: 1px solid #e9ecef;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.offer-image img{
    width: 100%;
}

/* Amazon-style badges */
.amazon-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.badge-bestseller {
    background: linear-gradient(135deg, #FF9500, #FF8C00);
}

.badge-top-rated {
    background: linear-gradient(135deg, #FF6B35, #E85A2B);
}

.badge-limited {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    animation: badgePulse 2s infinite;
}

.badge-choice {
    background: linear-gradient(135deg, #8E44AD, #7D3C98);
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    50% { transform: scale(1.05); box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4); }
    100% { transform: scale(1); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
}

.offer-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    color: white;
}

.ai-icon { background: linear-gradient(45deg, #ff6b6b, #ee5a24); }
.game-icon { background: linear-gradient(45deg, #4834d4, #686de0); }
.music-icon { background: linear-gradient(45deg, #00d2d3, #54a0ff); }
.shopping-icon { background: linear-gradient(45deg, #ff9ff3, #f368e0); }
.fitness-icon { background: linear-gradient(45deg, #3742fa, #2f3542); }
.photo-icon { background: linear-gradient(45deg, #1dd1a1, #10ac84); }

.offer-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    margin-top: 15px;
    text-align: left;
    padding: 0 25px;
    position: relative;
}

.offer-description {
    color: #7f8c8d;
    line-height: 1.3;
    margin-bottom: 15px;
    font-size: 0.9rem;
    padding: 0 25px;
}

.free-badge {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pricing-info {
    position: absolute;
    top: 0;
    right: 15px;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

.current-price {
    font-weight: bold;
    color: #fff;
}

.duration-text {
    color: #fff;
    margin-left: 5px;
}

.offer-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    width: 90%;
}

.reward {
    font-weight: bold;
    color: #27ae60;
    font-size: 1.1rem;
}

.time-left {
    color: #e74c3c;
    font-size: 0.9rem;
}

/* Color Scheme 1: Orange (High Energy) */
.theme-orange .cta-button {
    background: #FF6B35;
}
.theme-orange .cta-button:hover {
    background: #E85A2B;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}
.theme-orange .free-badge {
    background: linear-gradient(45deg, #FF6B35, #E85A2B);
}

/* Color Scheme 2: Red (Urgency) */
.theme-red .cta-button {
    background: #E74C3C;
}
.theme-red .cta-button:hover {
    background: #C0392B;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}
.theme-red .free-badge {
    background: linear-gradient(45deg, #E74C3C, #C0392B);
}

/* Color Scheme 3: Green (Success/Money) */
.theme-green .cta-button {
    background: #27AE60;
}
.theme-green .cta-button:hover {
    background: #219A52;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}
.theme-green .free-badge {
    background: linear-gradient(45deg, #27AE60, #219A52);
}

/* Color Scheme 4: Purple (Premium) */
.theme-purple .cta-button {
    background: #8E44AD;
}
.theme-purple .cta-button:hover {
    background: #7D3C98;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.4);
}
.theme-purple .free-badge {
    background: linear-gradient(45deg, #8E44AD, #7D3C98);
}

/* Base button styles */
.cta-button {
    width: 90%;
    padding: 12px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.terms-text {
    font-size: 0.6rem;
    color: #bbb;
    text-align: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    grid-column: 1 / -1;
}

.footer-cta {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.footer-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 15px;
    }

    .footer-content h2 {
        font-size: 1.4rem;
    }

    .footer-content p {
        font-size: 1rem;
    }

    .amazon-badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .offer-title {
        margin-top: 20px;
    }
}
