/* Custom CSS Variables */
:root {
    /* Wedding colors */
    --wedding-pink: hsl(330 100% 70%);
    --wedding-purple: hsl(280 100% 65%);
    --wedding-gold: hsl(45 100% 50%);
    --whatsapp-green: hsl(122 39% 49%);
    --whatsapp-bubble: hsl(115 54% 76%);
}

/* Custom gradient classes */
.gradient-bg {
    background: linear-gradient(135deg, var(--wedding-pink), var(--wedding-purple));
}

.gradient-text {
    background: linear-gradient(135deg, var(--wedding-pink), var(--wedding-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Price strike animation */
.price-strike {
    position: relative;
}

.price-strike::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: hsl(0 84.2% 60.2%);
    transform: rotate(-8deg);
}

/* Countdown timer animation */
.countdown-timer {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Custom animations */
.animate-pulse {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* WhatsApp bubble style */
.whatsapp-bubble {
    background: var(--whatsapp-bubble);
    border-radius: 18px 18px 4px 18px;
    position: relative;
}

.whatsapp-bubble::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-bottom-color: var(--whatsapp-bubble);
    border-right: 0;
    border-bottom: 8px solid var(--whatsapp-bubble);
    margin-left: -8px;
    margin-bottom: -8px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Optimize text sizes for mobile */
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    /* Better modal sizing on mobile */
    #offerModal > div {
        max-width: 90vw;
        margin: 1rem;
    }
    
    /* Improve touch targets */
    button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-pulse {
        animation: none;
    }
    
    .countdown-timer {
        animation: none;
    }
}

/* Focus styles for better accessibility */
button:focus,
a:focus {
    outline: 2px solid var(--wedding-pink);
    outline-offset: 2px;
}

/* Loading optimization */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Ensure proper z-index for modal */
#offerModal {
    z-index: 9999;
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--wedding-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wedding-purple);
}