/* ========================================
   SPECIAL OFFERS CARD STYLES - MODERN EDITION
   Enhanced animations, glassmorphism & responsive design
   ======================================== */

/* Base Card Styles with Glassmorphism */
.promo-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card body - consistent min-height to prevent gradient gaps */
.promo-card .promo-card-body {
    padding-bottom: 2rem !important; /* Consistent bottom spacing */
    min-height: 180px !important; /* Ensures both cards have similar vertical space */
}

.promo-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(70, 17, 89, 0.25),
        0 15px 30px rgba(254, 185, 82, 0.15);
}

/* Glassmorphism Effect */
.promo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.9),
        rgba(255, 242, 169, 0.9)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1;
}

.promo-card:hover::before {
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.95),
        rgba(255, 242, 169, 0.98)
    );
}

/* Bonus Badge Animation */
.bonus-badge {
    animation: badgeFloat 3s ease-in-out infinite;
    background: linear-gradient(
        135deg,
        #461159 0%,
        #FEB952 100%
    );
}

@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
    }
}

/* Card Hover Effects */
.promo-card:hover .promo-image img {
    transform: scale(1.2) brightness(1.05);
}

.promo-card:hover .card-footer-cta {
    background: linear-gradient(
        to right, 
        #461159 0%, 
        #FEB952 100%
    );
    box-shadow: 
        0 10px 20px rgba(70, 17, 89, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Image Effects with Modern Transitions */
.promo-image {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem 1.75rem 0 0;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Image - maintain original sizing */
.promo-image img {
    max-height: 520px;
    object-fit: contain;
}

.promo-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transform: scale(0);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-card:hover .promo-image::before {
    opacity: 1;
    transform: scale(1);
}

/* Card Footer CTA with Gradient */
.card-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 2px solid rgba(70, 17, 89, 0.1);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}



.card-footer-cta span {
    font-weight: 600;
    color: #FEB952;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Decorative Elements with Glassmorphism */
.promo-card::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 2.25rem;
    background: linear-gradient(
        45deg,
        #FEB952 0%,
        #461159 50%,
        #FEB952 100%
    );
    z-index: -1;
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-card:hover::after {
    opacity: 1;
    box-shadow: 
        0 15px 40px rgba(70, 17, 89, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* FAQ Card Styles with Modern Touch */
.faq-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(
        to right,
        rgba(255, 242, 169, 0.7),
        rgba(255, 255, 255, 0.9)
    );
}

.faq-card:hover {
    transform: translateX(8px);
    box-shadow: 
        0 15px 30px rgba(254, 185, 82, 0.2),
        inset 0 0 0 1px rgba(70, 17, 89, 0.1);
}

/* FAQ Icon Animation */
.faq-icon-wrapper {
    animation: iconPulse 2s ease-in-out infinite;
    background: linear-gradient(
        to bottom right,
        #FEB952 0%,
        #461159 100%
    );
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 4px 15px rgba(70, 17, 89, 0.3),
            inset 0 0 10px rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 
            0 6px 20px rgba(70, 17, 89, 0.4),
            inset 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

/* CTA Section Styles with Glassmorphism */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        to bottom right,
        #461159 0%,
        #3A0D47 50%,
        #00838C 100%
    );
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 3rem;
    font-size: 1.375rem;
    border-radius: 1.25rem;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(
        to bottom right,
        #FEB952 0%,
        rgba(255, 242, 169, 0.9) 100%
    );
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 
        0 25px 50px rgba(70, 17, 89, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Responsive Enhancements */
@media (min-width: 768px) {
    .promo-card:hover {
        transform: translateY(-15px) scale(1.04);
    }
    
    .faq-card:hover {
        transform: translateX(12px);
    }
    
    .cta-button:hover {
        transform: translateY(-7px) scale(1.1);
    }
}

@media (min-width: 1024px) {
    .promo-card:hover {
        transform: translateY(-18px) scale(1.05);
    }
    
    .faq-card:hover {
        transform: translateX(16px);
    }
}

/* Accessibility Enhancements */
.promo-card:focus-within,
.faq-card:focus-within {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(254, 185, 82, 0.7),
        0 15px 35px rgba(70, 17, 89, 0.25);
}

/* Animation Delays */
.promo-card:nth-child(odd) .bonus-badge {
    animation-delay: 0s;
}

.promo-card:nth-child(even) .bonus-badge {
    animation-delay: 1.5s;
}

/* Loading State Styles */
.promo-card.loading,
.faq-card.loading {
    opacity: 0.8;
    transform: scale(0.98);
    filter: blur(2px);
}

.promo-card.loaded,
.faq-card.loaded {
    animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Print Styles */
@media print {
    .promo-card,
    .faq-card {
        break-inside: avoid;
        box-shadow: none;
        background: white !important;
    }
    
    .promo-card::after,
    .faq-card::after {
        display: none;
    }
    
    .bonus-badge {
        background-color: #461159 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .promo-card,
    .faq-card {
        background: linear-gradient(
            to bottom right,
            #1e293b 0%,
            #0f172a 100%
        );
        backdrop-filter: blur(10px);
    }
    
    .promo-card h4 {
        color: #f1f5f9;
    }
    
    .promo-card p {
        color: #cbd5e1;
    }
    
    .bonus-badge {
        background: linear-gradient(
            to bottom right,
            #7c3aed 0%,
            #fbbf24 100%
        );
        color: white;
    }
}

/* Animation Utilities */
.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-scale-up {
    animation: scaleUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

/* Accessibility Focus Styles */
:focus-visible {
    outline: 4px solid #FEB952;
    outline-offset: 5px;
    border-radius: 12px;
    box-shadow: 
        0 0 0 3px rgba(70, 17, 89, 0.3),
        0 10px 30px rgba(70, 17, 89, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .promo-card,
    .faq-card {
        border: 2px solid currentColor;
        background: white !important;
    }
    
    .bonus-badge {
        background-color: #FEB952 !important;
        color: #461159 !important;
        font-weight: 700;
        box-shadow: 0 4px 8px rgba(70, 17, 89, 0.3);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .promo-card,
    .faq-card {
        transition: none;
    }
    
    @keyframes badgeFloat {
        from { transform: translateY(0); }
        to { transform: translateY(-8px); }
    }
}

/* Animations for Interactive Elements */
.interactive-element:hover {
    animation: interactiveHover 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes interactiveHover {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Card Flip Animation */
.card-flipper {
    perspective: 1200px;
}

.card-flipper-inner {
    position: relative;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.card-flipper:hover .card-flipper-inner {
    transform: rotateY(180deg);
}

.card-flipper-front,
.card-flipper-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 1.75rem;
}

.card-flipper-back {
    transform: rotateY(180deg);
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .promo-card {
        margin-bottom: 2.5rem;
        border-radius: 1.5rem;
    }
    
    .bonus-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
        animation-delay: 0s;
    }
    
    .promo-card h4 {
        font-size: 1.375rem;
    }
    
    .card-footer-cta span {
        font-size: 0.8125rem;
    }
}

/* Accessibility Enhancements for Card Interactions */
.intro-image {
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-card:hover .intro-image {
    transform: scale(1.1) rotate(-0.5deg);
    box-shadow: 
        0 20px 40px rgba(70, 17, 89, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Modern Card Badge Styles */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-badge-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Gradient Border Effect */
.promo-card-gradient-border {
    position: relative;
}

.promo-card-gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1.75rem;
    background: linear-gradient(
        to bottom right,
        #FEB952 0%,
        #461159 100%
    );
    z-index: -1;
}

.promo-card-gradient-border::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.75rem;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.9),
        rgba(255, 242, 169, 0.9)
    );
}

/* Modern Card Animation States */
.promo-card.animate-scale-in {
    animation: scaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: scale(0.9);
}

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

/* Card Content Enhancements */
.promo-card-content {
    position: relative;
    z-index: 2;
}

.promo-card-header {
    padding: 2rem 2.5rem 1.5rem;
}

.promo-card-body {
    padding: 0 2.5rem 2.5rem;
}

.promo-card-footer {
    padding-top: 1.5rem;
}

/* Modern Card Shadow States */
.promo-card-shadow {
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-card-shadow:hover {
    box-shadow: 
        0 25px 50px -12px rgba(70, 17, 89, 0.3),
        0 15px 30px rgba(254, 185, 82, 0.2),
        inset 0 0 0 1px rgba(70, 17, 89, 0.1);
}

/* Card Progress Indicators */
.promo-card-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(
        to right,
        #FEB952 0%,
        rgba(70, 17, 89, 0.3) 100%
    );
}

.promo-card-progress::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 60%;
    height: 14px;
    background: #FEB952;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(70, 17, 89, 0.3);
}

/* Modern Card Grid Layout */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 3rem;
    }
}

/* Card Interactive States */
.promo-card:hover .card-badge {
    transform: scale(1.05);
    background: linear-gradient(
        to right,
        rgba(70, 17, 89, 0.9),
        rgba(254, 185, 82, 0.9)
    );
}

/* Animation for Card Elements */
.promo-card-element {
    animation: elementFloat 3s ease-in-out infinite;
}

@keyframes elementFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
