/* Talking Plants - Botanical Luxury Theme */

/* Self-hosted fonts (no external requests) */
/* DM Sans — normal */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/dmsans-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../fonts/dmsans-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* DM Sans — italic */
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dmsans-italic-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dmsans-italic-400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display — normal */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-normal-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/playfair-normal-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display — italic */
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Botanical palette - Light */
    --tp-green-50: #f1f8e9;
    --tp-green-100: #dcedc8;
    --tp-green-200: #c5e1a5;
    --tp-green-300: #aed581;
    --tp-green-400: #9ccc65;
    --tp-green-500: #7cb342;
    --tp-green-600: #558b2f;
    --tp-green-700: #33691e;
    --tp-green-800: #1b5e20;
    --tp-green-900: #0d3b0f;

    --tp-earth-50: #efebe9;
    --tp-earth-100: #d7ccc8;
    --tp-earth-200: #bcaaa4;
    --tp-earth-300: #a1887f;
    --tp-earth-400: #8d6e63;
    --tp-earth-500: #6d4c41;

    --tp-bloom-400: #e991a3;
    --tp-bloom-500: #d4687a;
    --tp-water-400: #4fc3f7;
    --tp-water-500: #039be5;
    --tp-sun-400: #ffd54f;
    --tp-sun-500: #ffb300;

    /* Semantic colors - Light Mode */
    --color-primary: #2d6a4f;
    --color-primary-light: #40916c;
    --color-primary-lighter: #52b788;
    --color-primary-surface: #d8f3dc;
    --color-on-primary: #ffffff;
    --color-on-primary-surface: #1b4332;

    --color-secondary: #74663e;
    --color-secondary-surface: #f5f0e1;
    --color-on-secondary: #ffffff;

    --color-accent: #d4687a;
    --color-accent-surface: #fce4ec;

    --color-surface: #fafaf5;
    --color-surface-dim: #f0efe8;
    --color-surface-container: #f5f4ed;
    --color-surface-container-high: #ecebe4;
    --color-surface-container-highest: #e3e2db;
    --color-surface-warm: #faf8f0;
    --color-on-surface: #1a1c18;
    --color-on-surface-muted: #5f6157;
    --color-on-surface-faint: #8a8c82;

    --color-outline: #c8c7be;
    --color-outline-subtle: #e0dfda;

    --color-error: #ba1a1a;
    --color-error-surface: #ffdad6;
    --color-success: #2d6a4f;
    --color-success-surface: #d8f3dc;

    /* Shadows - warm organic feel */
    --shadow-xs: 0 1px 2px rgba(26,28,24,0.06);
    --shadow-sm: 0 2px 8px rgba(26,28,24,0.08);
    --shadow-md: 0 4px 16px rgba(26,28,24,0.10);
    --shadow-lg: 0 8px 32px rgba(26,28,24,0.12);
    --shadow-xl: 0 16px 48px rgba(26,28,24,0.16);
    --shadow-glow: 0 0 20px rgba(45,106,79,0.15);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing - golden ratio inspired */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    /* Radii - organic, rounded */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 280ms;
    --duration-slow: 400ms;

    /* Layout */
    --navbar-h: 68px;
    --sidebar-w: 260px;
    --bottom-nav-h: 64px;
    --max-content: 1100px;

    /* Decorative */
    --leaf-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c-8 12-25 20-25 35s12 15 25 15 25 0 25-15S38 17 30 5z' fill='%232d6a4f' fill-opacity='0.03'/%3E%3C/svg%3E");
    --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --color-primary: #52b788;
    --color-primary-light: #74c69d;
    --color-primary-lighter: #95d5b2;
    --color-primary-surface: #1b3a2a;
    --color-on-primary: #0b2618;
    --color-on-primary-surface: #b7e4c7;

    --color-secondary: #c9b97a;
    --color-secondary-surface: #2a2618;
    --color-on-secondary: #1a1400;

    --color-accent: #f4a0b0;
    --color-accent-surface: #3d1a23;

    --color-surface: #0f1510;
    --color-surface-dim: #0a0f0b;
    --color-surface-container: #151d16;
    --color-surface-container-high: #1c261e;
    --color-surface-container-highest: #232e25;
    --color-surface-warm: #141a14;
    --color-on-surface: #dfe4da;
    --color-on-surface-muted: #a0a69a;
    --color-on-surface-faint: #6b7266;

    --color-outline: #3d4a3e;
    --color-outline-subtle: #2a332b;

    --color-error: #ffb4ab;
    --color-error-surface: #410002;
    --color-success: #52b788;
    --color-success-surface: #1b3a2a;

    --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 30px rgba(82,183,136,0.12);
}

/* Respect system preference when no explicit theme set */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-primary: #52b788;
        --color-primary-light: #74c69d;
        --color-primary-lighter: #95d5b2;
        --color-primary-surface: #1b3a2a;
        --color-on-primary: #0b2618;
        --color-on-primary-surface: #b7e4c7;
        --color-secondary: #c9b97a;
        --color-secondary-surface: #2a2618;
        --color-on-secondary: #1a1400;
        --color-accent: #f4a0b0;
        --color-accent-surface: #3d1a23;
        --color-surface: #0f1510;
        --color-surface-dim: #0a0f0b;
        --color-surface-container: #151d16;
        --color-surface-container-high: #1c261e;
        --color-surface-container-highest: #232e25;
        --color-surface-warm: #141a14;
        --color-on-surface: #dfe4da;
        --color-on-surface-muted: #a0a69a;
        --color-on-surface-faint: #6b7266;
        --color-outline: #3d4a3e;
        --color-outline-subtle: #2a332b;
        --color-error: #ffb4ab;
        --color-error-surface: #410002;
        --color-success: #52b788;
        --color-success-surface: #1b3a2a;
        --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
        --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
        --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
        --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
        --shadow-xl: 0 16px 48px rgba(0,0,0,0.5);
        --shadow-glow: 0 0 30px rgba(82,183,136,0.12);
    }
}
