/* ═══════════════════════════════════════════════════════════════════════════
   Design Tokens - Amy Yamada Knowledge Hub

   Brand colors derived from amyyamada.com:
   - Primary: Teal #1B8A8A (buttons, links, CTAs)
   - Accent gradient: Teal #1B8A8A → Coral #E8916E (headlines)
   - Secondary: Lavender #C8B8E8 (decorative elements)
   - Background: White #FFFFFF with light gray cards #F7F8FA
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* ─────────────────────────────────────────────────────────────────────────
       COLOR SYSTEM - Amy Yamada Brand
       ───────────────────────────────────────────────────────────────────────── */

    /* Background Colors - Light Theme */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #F7F8FA;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-card: #F7F8FA;
    --color-bg-elevated: #ffffff;
    --color-bg-overlay: rgba(0, 0, 0, 0.5);

    /* Text Colors */
    --color-text-primary: #010011;
    --color-text-secondary: #374151;
    --color-text-muted: #6b7280;
    --color-text-inverse: #ffffff;

    /* Primary Accent - Teal */
    --color-accent-primary: #1B8A8A;
    --color-accent-primary-hover: #167070;
    --color-accent-primary-light: #80C7C7;
    --color-accent-glow: rgba(27, 138, 138, 0.15);
    --color-accent-border: rgba(27, 138, 138, 0.3);

    /* Secondary Accent - Coral (for gradients) */
    --color-accent-secondary: #E8916E;
    --color-accent-secondary-light: #F4B89A;

    /* Tertiary Accent - Lavender (decorative) */
    --color-accent-tertiary: #C8B8E8;
    --color-accent-tertiary-light: #E8E0F8;

    /* Gradient for headlines */
    --gradient-hero: linear-gradient(135deg, #1B8A8A 0%, #E8916E 100%);
    --gradient-hero-reverse: linear-gradient(135deg, #E8916E 0%, #1B8A8A 100%);

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    --color-error: #ef4444;
    --color-error-bg: rgba(239, 68, 68, 0.1);
    --color-info: #1B8A8A;
    --color-info-bg: #F0F9F9;

    /* Evidence/Highlight boxes */
    --color-evidence-bg: #F0F9F9;
    --color-evidence-border: #1B8A8A;

    /* Border Colors */
    --color-border: #e5e7eb;
    --color-border-hover: #d1d5db;
    --color-border-focus: var(--color-accent-primary);

    /* Link Colors */
    --color-link: #1B8A8A;
    --color-link-hover: #167070;
    --color-link-underline: #80C7C7;

    /* ─────────────────────────────────────────────────────────────────────────
       TYPOGRAPHY
       ───────────────────────────────────────────────────────────────────────── */

    /* Font Families - matching amyyamada.com */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-serif: 'Georgia', 'Times New Roman', serif;

    /* Font Sizes - Modular Scale (1.25 ratio) */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    --text-5xl: 3rem;        /* 48px */
    --text-6xl: 3.75rem;     /* 60px */

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.8;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;

    /* ─────────────────────────────────────────────────────────────────────────
       SPACING
       ───────────────────────────────────────────────────────────────────────── */

    --space-0: 0;
    --space-1: 0.25rem;      /* 4px */
    --space-2: 0.5rem;       /* 8px */
    --space-3: 0.75rem;      /* 12px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-8: 2rem;         /* 32px */
    --space-10: 2.5rem;      /* 40px */
    --space-12: 3rem;        /* 48px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */

    /* ─────────────────────────────────────────────────────────────────────────
       BORDERS & RADIUS
       ───────────────────────────────────────────────────────────────────────── */

    --radius-none: 0;
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-3xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    --border-width: 1px;
    --border-width-2: 2px;

    /* ─────────────────────────────────────────────────────────────────────────
       SHADOWS - Softer for light theme
       ───────────────────────────────────────────────────────────────────────── */

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px var(--color-accent-glow);
    --shadow-glow-lg: 0 0 60px var(--color-accent-glow);

    /* ─────────────────────────────────────────────────────────────────────────
       TRANSITIONS
       ───────────────────────────────────────────────────────────────────────── */

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-slower: 500ms ease;

    /* Timing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ─────────────────────────────────────────────────────────────────────────
       LAYOUT
       ───────────────────────────────────────────────────────────────────────── */

    --max-width-xs: 20rem;      /* 320px */
    --max-width-sm: 24rem;      /* 384px */
    --max-width-md: 28rem;      /* 448px */
    --max-width-lg: 32rem;      /* 512px */
    --max-width-xl: 36rem;      /* 576px */
    --max-width-2xl: 42rem;     /* 672px */
    --max-width-3xl: 48rem;     /* 768px */
    --max-width-4xl: 56rem;     /* 896px */
    --max-width-5xl: 64rem;     /* 1024px */
    --max-width-6xl: 72rem;     /* 1152px */
    --max-width-7xl: 80rem;     /* 1280px */
    --max-width-content: 75rem; /* 1200px */
    --max-width-article: 45rem; /* 720px - optimal reading width */

    --nav-height: 4rem;         /* 64px */
    --footer-height: auto;

    /* Grid */
    --grid-gap: var(--space-6);
    --grid-gap-sm: var(--space-4);
    --grid-gap-lg: var(--space-8);

    /* ─────────────────────────────────────────────────────────────────────────
       Z-INDEX SCALE
       ───────────────────────────────────────────────────────────────────────── */

    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* ─────────────────────────────────────────────────────────────────────────
       COMPONENT-SPECIFIC TOKENS
       ───────────────────────────────────────────────────────────────────────── */

    /* Cards */
    --card-bg: var(--color-bg-card);
    --card-border: var(--color-border);
    --card-radius: var(--radius-xl);
    --card-padding: var(--space-6);
    --card-shadow: var(--shadow-sm);
    --card-hover-shadow: var(--shadow-lg);

    /* Buttons */
    --btn-radius: var(--radius-lg);
    --btn-padding-x: var(--space-6);
    --btn-padding-y: var(--space-3);
    --btn-font-size: var(--text-sm);
    --btn-font-weight: var(--font-semibold);
    --btn-primary-bg: var(--color-accent-primary);
    --btn-primary-hover: var(--color-accent-primary-hover);
    --btn-primary-text: var(--color-text-inverse);

    /* Inputs */
    --input-bg: var(--color-bg-primary);
    --input-border: var(--color-border);
    --input-radius: var(--radius-lg);
    --input-padding-x: var(--space-4);
    --input-padding-y: var(--space-3);

    /* Tags/Badges */
    --tag-bg: var(--color-bg-secondary);
    --tag-radius: var(--radius-sm);
    --tag-padding-x: var(--space-2);
    --tag-padding-y: var(--space-1);
    --tag-font-size: var(--text-xs);

    /* Navigation */
    --nav-bg: var(--color-bg-primary);
    --nav-border: var(--color-border);
    --nav-link-color: var(--color-text-primary);
    --nav-link-hover: var(--color-accent-primary);

    /* ─────────────────────────────────────────────────────────────────────────
       BREAKPOINTS (for reference in media queries)
       ───────────────────────────────────────────────────────────────────────── */

    /*
     * Note: CSS custom properties cannot be used in media queries.
     * These are documented here for reference when writing @media rules.
     *
     * --breakpoint-sm: 640px;
     * --breakpoint-md: 768px;
     * --breakpoint-lg: 1024px;
     * --breakpoint-xl: 1280px;
     * --breakpoint-2xl: 1536px;
     */
}

/* ═══════════════════════════════════════════════════════════════════════════
   GRADIENT TEXT UTILITY
   For headlines with the teal-to-coral gradient
   ═══════════════════════════════════════════════════════════════════════════ */

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DECORATIVE WAVE (matching amyyamada.com style)
   ═══════════════════════════════════════════════════════════════════════════ */

.wave-decoration {
    position: absolute;
    width: 100%;
    height: 100px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-accent-tertiary-light) 25%,
        var(--color-accent-tertiary) 50%,
        var(--color-accent-tertiary-light) 75%,
        transparent 100%);
    opacity: 0.3;
    pointer-events: none;
}
