/**
 * Heritage Cup Popup Styles
 * Custom styles to enhance Tailwind classes for the popup
 */

.heritage-popup {
    /* Smooth backdrop filter for modern browsers */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.heritage-popup__backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.heritage-popup__content {
    /* Smooth animations */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

.heritage-popup__close {
    /* Enhanced close button styling */
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.heritage-popup__close:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.heritage-popup__cta {
    /* Enhanced CTA button with gradient and effects */
    background: linear-gradient(135deg, #285DA7 0%, #1a4a85 100%);
    position: relative;
    overflow: hidden;
}

.heritage-popup__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.heritage-popup__cta:hover::before {
    left: 100%;
}

.heritage-popup__cta:active {
    transform: scale(0.98);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .heritage-popup__content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .heritage-popup__close {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.5rem;
    }
}

/* Focus states for accessibility */
.heritage-popup__close:focus,
.heritage-popup__cta:focus {
    outline: 2px solid #FBD700;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .heritage-popup__content,
    .heritage-popup__close,
    .heritage-popup__cta {
        transition: none;
    }
    
    .heritage-popup__cta::before {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .heritage-popup__content {
        border: 2px solid currentColor;
    }
    
    .heritage-popup__close {
        border: 1px solid currentColor;
    }
}