/* Custom styles for wedding configurator */

/* Prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.3s ease-in-out;
}

/* Card hover effects */
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Step indicator */
.step-indicator {
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #27A776, #4dd4a3);
    transform: translateY(-50%);
}

.step-indicator:last-child::after {
    display: none;
}

/* Brand color accent animations */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.brand-shimmer {
    background: linear-gradient(90deg, #27A776 0%, #4dd4a3 50%, #27A776 100%);
    background-size: 2000px 100%;
    animation: shimmer 3s infinite;
}

/* Mobile sticky bar */
@media (max-width: 768px) {
    .mobile-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 50;
        box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
    }
    
    /* Add padding to body when sticky bar is visible */
    body {
        padding-bottom: 80px;
    }
}

/* Touch-friendly interactions */
.touch-manipulation {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    /* Better text rendering on mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Prevent text size adjustment on iOS */
    input, textarea, select, button {
        font-size: 16px !important;
    }
    
    /* Better button touch targets */
    button, a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
}

/* Card hover effects - disable on touch devices */
@media (hover: hover) {
    .card-hover:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
}

/* Active state for touch devices */
@media (hover: none) {
    .card-hover:active {
        transform: scale(0.98);
    }
}

/* Event card image styles */
.event-card-image {
    transition: transform 0.3s ease-in-out;
}

.event-card:hover .event-card-image,
.event-card.selected .event-card-image {
    transform: scale(1.05);
}

/* Image loading placeholder */
.event-card-image {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.event-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
