/* Additional custom styles for Claudine's Curious Raven */

/* Playfair Display font import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

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

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #d4a017;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure images don't overflow containers */
img {
    max-width: 100%;
    height: auto;
}

/* Custom selection color */
::selection {
    background-color: #c73a24;
    color: #fdfce8;
}

/* Improve readability on small screens */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .text-5xl {
        font-size: 2.25rem;
    }
}

/* Print styles */
@media print {
    nav, .btn-primary, .btn-secondary {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .gold-gradient-text, .gold-shimmer {
        color: #8b6508;
        -webkit-text-fill-color: #8b6508;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
}

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

/* Card glow effect enhancement */
.card-glow {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

/* Ensure proper spacing in grid layouts */
.grid {
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 3rem;
    }
}

/* Smooth scroll offset for fixed navigation */
section[id] {
    scroll-margin-top: 80px;
}

/* Loading state for images */
img {
    background: linear-gradient(90deg, #1a1510 25%, #2a2018 50%, #1a1510 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

img[src] {
    animation: none;
    background: transparent;
}
