/* Modern Top Deal Section */

.top-deal-section-modern {
    position: relative;
    margin: 4rem auto;
    padding: 2rem 0;
    overflow: visible; /* Changed from hidden to visible for badge */
}

/* Lottie Animation Background */
.top-deal-lottie-bg {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .top-deal-lottie-bg {
    opacity: 0.4;
}

/* Modern Badge */
.deal-badge-modern {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.deal-badge-modern i {
    animation: rotate 3s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modern Card */
.top-deal-card-modern {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    z-index: 1;
}

[data-theme="dark"] .top-deal-card-modern {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Decorative Elements */
.top-deal-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Image Section */
.top-deal-image-modern {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    filter: blur(30px);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.top-deal-image-modern img {
    position: relative;
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Info Section */
.top-deal-info-modern {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    color: white;
}

.top-deal-title-modern {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: white;
}

.top-deal-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
}

[data-bs-theme="dark"] .top-deal-description {
    color: #ffffff !important;
}

.top-deal-price-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-deal-price-modern .price-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-deal-price-modern .price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Button */
.top-deal-cta-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    align-self: flex-start;
}

[data-theme="dark"] .top-deal-cta-modern {
    background: #f7fafc;
    color: #2d3748;
}

.top-deal-cta-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #667eea;
}

[data-theme="dark"] .top-deal-cta-modern:hover {
    color: #2d3748;
}

.top-deal-cta-modern i {
    transition: transform 0.3s ease;
}

.top-deal-cta-modern:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .top-deal-card-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .top-deal-lottie-bg {
        width: 200px;
        height: 200px;
    }
    
    .top-deal-title-modern {
        font-size: 1.5rem;
    }
    
    .top-deal-price-modern .price-amount {
        font-size: 2.5rem;
    }
    
    .deal-badge-modern {
        right: 20px;
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .top-deal-section-modern {
        margin: 2rem auto;
    }
    
    .top-deal-card-modern {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .top-deal-lottie-bg {
        width: 150px;
        height: 150px;
        top: -30px;
        left: -30px;
    }
    
    .top-deal-image-modern img {
        max-height: 200px;
    }
    
    .top-deal-title-modern {
        font-size: 1.25rem;
    }
    
    .top-deal-price-modern .price-amount {
        font-size: 2rem;
    }
    
    .top-deal-cta-modern {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}
