:root {
    --coral-400: #FF7675;
    --amber-400: #FDCB6E;
    --teal-400: #00CEC9;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.font-display {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'DM Sans', sans-serif;
}

#weather-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Custom gradient for button */
.from-coral-400 {
    --tw-gradient-from: #FF7675;
}
.to-amber-400 {
    --tw-gradient-to: #FDCB6E;
}

/* Loading cube animation */
.loading-cube {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FF7675, #FDCB6E);
    animation: loading-spin 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading-spin {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: perspective(120px) rotateX(-180deg) rotateY(0deg);
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-180deg);
    }
}

/* Loading dots */
.loading-dots span {
    display: inline-block;
    animation: dots 1.4s infinite;
    color: #64748b;
    font-size: 1.5rem;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dots {
    0%, 80%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Diorama card entrance */
.diorama-card {
    animation: card-enter 0.6s ease-out;
}

@keyframes card-enter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hide scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism enhancement */
.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Image loading shimmer */
img {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

img[src^="/api"],
img[src^="http"] {
    background: none;
    animation: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .diorama-card {
        border-radius: 1.5rem;
        margin: 0 -0.5rem;
    }
}

/* Text color utilities */
.text-coral-500 {
    color: #FF7675;
}