/* Custom CSS for City Lights Bookstore Landing Page */

/* Performance Optimizations */
img {
    font-display: swap;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Gradient text support */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Enhanced animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Custom button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #ec4899, #db2777);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #db2777, #be185d);
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

/* Hero section enhancements */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f9a8d4' fill-opacity='0.05'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Typography improvements */
.font-serif {
    font-feature-settings: "liga" on, "kern" on;
}

/* Accessibility improvements */
button:focus,
a:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
}

/* Image lazy loading optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Service cards hover effects */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Review cards styling */
.review-card {
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 3rem;
    color: #ec4899;
    font-family: 'Crimson Text', serif;
    opacity: 0.3;
}

/* Map container styling */
.map-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ accordion styling */
.faq-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-item:hover {
    background-color: #fdf2f8;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br {
        background: #333 !important;
        color: white !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-ink-600 {
        color: #1e293b;
    }
    
    .bg-literary-50 {
        background-color: #f1f5f9;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}