/* Base Styles and Variables */
:root {
    --background: 150 25% 98%;
    --foreground: 160 30% 15%;

    --card: 0 0% 100%;
    --card-foreground: 160 40% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 160 40% 10%;

    --primary: 158 50% 38%;
    --primary-foreground: 0 0% 100%;

    --secondary: 155 75% 50%;
    --secondary-foreground: 160 50% 12%;

    --muted: 150 15% 95%;
    --muted-foreground: 155 12% 45%;

    --accent: 155 60% 48%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;

    --border: 150 15% 90%;
    --input: 150 15% 90%;
    --ring: 158 50% 38%;

    --radius: 0.75rem;

    /* Rich green theme colors */
    --forest-dark: 158 40% 25%;
    --forest-mid: 155 45% 34%;
    --forest-light: 152 50% 42%;
    --mint: 155 75% 50%;
    --mint-soft: 152 55% 88%;

    /* Forest scene colors */
    --sky-top: 197 71% 73%;
    --sky-bottom: 180 52% 85%;
    --mountain-far: 158 25% 55%;
    --mountain-mid: 158 35% 42%;
    --mountain-near: 158 45% 32%;
    --hill-back: 158 50% 38%;
    --hill-mid: 155 55% 32%;
    --hill-front: 152 60% 25%;
    --ground: 152 65% 20%;

    /* Tree colors */
    --tree-dark: 152 55% 22%;
    --tree-mid: 155 50% 32%;
    --tree-light: 150 55% 42%;
    --tree-highlight: 145 60% 52%;
    --trunk: 25 45% 30%;

    /* Accent colors */
    --coral: 5 85% 65%;
    --teal: 175 70% 45%;
    --gold: 45 95% 55%;

    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

* {
    border-color: hsl(var(--border));
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

/* Force Inter on non-heading elements using font-display class (e.g. price tags).
   Playfair Display renders $ with a double-line stroke; Inter uses a single line
   which matches the rest of the site's body text. */
span.font-display,
p.font-display,
div.font-display {
    font-family: 'Inter', sans-serif;
}

/* Custom Utilities from index.css */
.forest-sky {
    background: linear-gradient(180deg,
            hsl(var(--sky-top)) 0%,
            hsl(var(--sky-bottom)) 100%);
}

.glass-card {
    background-color: hsla(var(--card) / 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.stat-card {
    background-color: hsl(var(--card));
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 1px solid hsla(var(--border) / 0.5);
    padding: 1.5rem;
}

.progress-track {
    height: 1rem;
    background-color: hsl(var(--muted));
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-image: linear-gradient(to right, hsl(var(--primary)), hsl(var(--accent)));
    border-radius: 9999px;
    transition: all 1s;
}

/* Animations */
.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-sway {
    animation: sway 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}