/**
 * ============================================================================
 * PRIYA GLAM STUDIO & ACADEMY
 * FRONTEND DESIGN SYSTEM
 * ============================================================================
 *
 * Central source of truth for:
 * - Brand colors
 * - Semantic colors
 * - Typography
 * - Spacing
 * - Containers
 * - Radius
 * - Shadows
 * - Motion
 * - Layering
 * - Effects
 *
 * IMPORTANT:
 * Page and component CSS should consume these variables instead of
 * hard-coding repeated design values.
 * ============================================================================
 */

:root {

    /* ========================================================================
       BRAND COLOR SYSTEM
       ======================================================================== */

    /*
     * Primary — Signature Rose
     */
    --color-primary-50:  #fff5f7;
    --color-primary-100: #ffe4e9;
    --color-primary-200: #ffc9d4;
    --color-primary-300: #ff9db0;
    --color-primary-400: #ff6685;
    --color-primary-500: #f54275;
    --color-primary-600: #e0245e;
    --color-primary-700: #bc1a4d;
    --color-primary-800: #9d1846;
    --color-primary-900: #881942;


    /*
     * Secondary — Deep Burgundy
     */
    --color-secondary-50:  #fdf4f5;
    --color-secondary-100: #fbe8eb;
    --color-secondary-200: #f8d5db;
    --color-secondary-300: #f2b2be;
    --color-secondary-400: #e98599;
    --color-secondary-500: #d85775;
    --color-secondary-600: #c23d5e;
    --color-secondary-700: #a32f4e;
    --color-secondary-800: #882a46;
    --color-secondary-900: #74273f;


    /*
     * Accent — Warm Gold
     */
    --color-accent-50:  #fffbf0;
    --color-accent-100: #fef6dc;
    --color-accent-200: #fdeab8;
    --color-accent-300: #fbd98a;
    --color-accent-400: #f9c04f;
    --color-accent-500: #f7a826;
    --color-accent-600: #e88716;
    --color-accent-700: #c16514;
    --color-accent-800: #9a4f18;
    --color-accent-900: #7c4119;


    /* ========================================================================
       NEUTRAL COLOR SYSTEM
       ======================================================================== */

    --color-neutral-50:  #fafaf9;
    --color-neutral-100: #f5f5f4;
    --color-neutral-200: #e7e5e4;
    --color-neutral-300: #d6d3d1;
    --color-neutral-400: #a8a29e;
    --color-neutral-500: #78716c;
    --color-neutral-600: #57534e;
    --color-neutral-700: #44403c;
    --color-neutral-800: #292524;
    --color-neutral-900: #1c1917;


    /* ========================================================================
       SEMANTIC COLOR TOKENS
       ======================================================================== */

    /*
     * Backgrounds / Surfaces
     */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #fafaf9;
    --color-bg-cream: #fef9f3;
    --color-bg-rose: #fff5f7;
    --color-bg-champagne: #fef6ec;

    --color-surface: #ffffff;
    --color-surface-soft: var(--color-neutral-50);
    --color-surface-rose: var(--color-primary-50);


    /*
     * Text
     */
    --color-text-primary: var(--color-neutral-900);
    --color-text-secondary: var(--color-neutral-700);
    --color-text-muted: var(--color-neutral-500);
    --color-text-light: var(--color-neutral-400);
    --color-text-inverse: #ffffff;


    /*
     * Borders
     */
    --color-border-light: var(--color-neutral-200);
    --color-border-medium: var(--color-neutral-300);
    --color-border-primary: rgba(245, 66, 117, 0.18);


    /*
     * Status
     */
    --color-success: #15803d;
    --color-success-bg: #f0fdf4;

    --color-warning: #b45309;
    --color-warning-bg: #fffbeb;

    --color-error: #b91c1c;
    --color-error-bg: #fef2f2;

    --color-info: #0369a1;
    --color-info-bg: #f0f9ff;


    /* ========================================================================
       SIGNATURE GRADIENTS
       ======================================================================== */

    --gradient-rose-gold:
        linear-gradient(
            135deg,
            #f54275 0%,
            #e0245e 50%,
            #bc1a4d 100%
        );

    --gradient-burgundy:
        linear-gradient(
            135deg,
            #a32f4e 0%,
            #882a46 50%,
            #74273f 100%
        );

    --gradient-champagne:
        linear-gradient(
            135deg,
            #fef6ec 0%,
            #fdeab8 50%,
            #f9c04f 100%
        );

    --gradient-hero:
        linear-gradient(
            135deg,
            rgba(245, 66, 117, 0.95) 0%,
            rgba(188, 26, 77, 0.95) 100%
        );

    --gradient-overlay:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.72) 100%
        );

    --gradient-overlay-dark:
        linear-gradient(
            180deg,
            rgba(17, 12, 14, 0.30) 0%,
            rgba(17, 12, 14, 0.78) 100%
        );


    /* ========================================================================
       GLASS / TRANSLUCENT SURFACES
       ======================================================================== */

    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-bg-strong: rgba(255, 255, 255, 0.90);

    --glass-border: rgba(245, 66, 117, 0.12);

    --glass-shadow:
        0 8px 32px rgba(245, 66, 117, 0.12);


    /* ========================================================================
       TYPOGRAPHY — FONT FAMILIES
       ======================================================================== */

    --font-display:
        "Cormorant Garamond",
        "Playfair Display",
        Georgia,
        "Times New Roman",
        serif;

    --font-heading:
        "Poppins",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-body:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    --font-accent:
        "Sacramento",
        cursive;


    /* ========================================================================
       TYPOGRAPHY — FONT WEIGHTS
       ======================================================================== */

    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;


    /* ========================================================================
       TYPOGRAPHY — FLUID FONT SCALE
       ======================================================================== */

    --text-xs:
        clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);

    --text-sm:
        clamp(0.875rem, 0.84rem + 0.15vw, 0.95rem);

    --text-base:
        clamp(1rem, 0.96rem + 0.18vw, 1.075rem);

    --text-lg:
        clamp(1.125rem, 1.06rem + 0.28vw, 1.25rem);

    --text-xl:
        clamp(1.25rem, 1.14rem + 0.48vw, 1.5rem);

    --text-2xl:
        clamp(1.5rem, 1.32rem + 0.78vw, 1.875rem);

    --text-3xl:
        clamp(1.875rem, 1.60rem + 1.15vw, 2.375rem);

    --text-4xl:
        clamp(2.25rem, 1.85rem + 1.70vw, 3rem);

    --text-5xl:
        clamp(2.75rem, 2.15rem + 2.50vw, 4rem);

    --text-6xl:
        clamp(3.25rem, 2.40rem + 3.50vw, 5rem);


    /* ========================================================================
       LINE HEIGHTS
       ======================================================================== */

    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.6;
    --leading-relaxed: 1.75;
    --leading-loose: 1.9;


    /* ========================================================================
       LETTER SPACING
       ======================================================================== */

    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.10em;
    --tracking-widest: 0.15em;


    /* ========================================================================
       SPACING SYSTEM
       ======================================================================== */

    --spacing-0: 0;

    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 2.5rem;    /* 40px */
    --spacing-3xl: 3rem;      /* 48px */
    --spacing-4xl: 4rem;      /* 64px */
    --spacing-5xl: 5rem;      /* 80px */
    --spacing-6xl: 6rem;      /* 96px */
    --spacing-7xl: 7.5rem;    /* 120px */
    --spacing-8xl: 9rem;      /* 144px */


    /* ========================================================================
       SECTION SPACING
       ======================================================================== */

    --section-padding-y:
        clamp(3.5rem, 6vw, 6rem);

    --section-padding-x:
        clamp(1rem, 3vw, 2rem);

    --section-gap:
        clamp(2rem, 4vw, 4rem);


    /* ========================================================================
       BORDER RADIUS
       ======================================================================== */

    --radius-none: 0;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;


    /* ========================================================================
       SHADOW SYSTEM
       ======================================================================== */

    --shadow-xs:
        0 1px 2px rgba(28, 25, 23, 0.05);

    --shadow-sm:
        0 2px 4px rgba(28, 25, 23, 0.05),
        0 1px 2px rgba(28, 25, 23, 0.04);

    --shadow-md:
        0 6px 16px rgba(28, 25, 23, 0.07),
        0 2px 6px rgba(245, 66, 117, 0.04);

    --shadow-lg:
        0 12px 30px rgba(28, 25, 23, 0.08),
        0 4px 12px rgba(245, 66, 117, 0.06);

    --shadow-xl:
        0 20px 45px rgba(28, 25, 23, 0.10),
        0 8px 20px rgba(245, 66, 117, 0.08);

    --shadow-2xl:
        0 28px 60px rgba(28, 25, 23, 0.14);


    /*
     * Brand-colored shadows
     */
    --shadow-rose:
        0 8px 24px rgba(245, 66, 117, 0.20);

    --shadow-rose-lg:
        0 14px 36px rgba(245, 66, 117, 0.28);

    --shadow-gold:
        0 8px 24px rgba(247, 168, 38, 0.20);

    --shadow-burgundy:
        0 8px 24px rgba(163, 47, 78, 0.24);


    /* ========================================================================
       TRANSITIONS / MOTION
       ======================================================================== */

    --ease-standard:
        cubic-bezier(0.4, 0, 0.2, 1);

    --ease-enter:
        cubic-bezier(0, 0, 0.2, 1);

    --ease-exit:
        cubic-bezier(0.4, 0, 1, 1);

    --ease-bounce:
        cubic-bezier(0.34, 1.56, 0.64, 1);


    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;


    /*
     * Backward-compatible transition tokens
     */
    --transition-fast:
        var(--duration-fast) var(--ease-standard);

    --transition-base:
        var(--duration-base) var(--ease-standard);

    --transition-slow:
        var(--duration-slow) var(--ease-standard);

    --transition-bounce:
        600ms var(--ease-bounce);


    /* ========================================================================
       FOCUS SYSTEM
       ======================================================================== */

    --focus-color:
        var(--color-primary-500);

    --focus-ring:
        0 0 0 3px rgba(245, 66, 117, 0.20);

    --focus-offset:
        3px;


    /* ========================================================================
       Z-INDEX SCALE
       ======================================================================== */

    --z-below: -1;
    --z-base: 0;
    --z-normal: 1;

    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;

    --z-modal-backdrop: 400;
    --z-modal: 500;

    --z-popover: 600;
    --z-tooltip: 700;
    --z-notification: 800;

    --z-loader: 9999;


    /* ========================================================================
       LAYOUT / CONTAINERS
       ======================================================================== */

    --container-max-width: 1320px;
    --container-narrow: 960px;
    --container-wide: 1536px;

    --content-max-width: 760px;

    --header-height: 85px;
    --mobile-header-height: 72px;
    --mobile-cta-height: 65px;


    /* ========================================================================
       BREAKPOINT REFERENCE TOKENS
       ======================================================================== */

    /*
     * NOTE:
     * CSS custom properties cannot currently be reliably used directly
     * inside @media conditions in normal CSS.
     *
     * These values are reference/documentation tokens.
     */

    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1440px;


    /* ========================================================================
       DECORATIVE EFFECTS
       ======================================================================== */

    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --blur-xl: 40px;

    --backdrop-blur-sm: blur(8px);
    --backdrop-blur-md: blur(16px);
    --backdrop-blur-lg: blur(24px);


    /* ========================================================================
       COMMON OPACITY LEVELS
       ======================================================================== */

    --opacity-disabled: 0.55;
    --opacity-muted: 0.70;
    --opacity-overlay: 0.78;


    /* ========================================================================
       COMMON CONTROL SIZES
       ======================================================================== */

    --control-height-sm: 38px;
    --control-height-md: 46px;
    --control-height-lg: 54px;

    --icon-size-sm: 1rem;
    --icon-size-md: 1.25rem;
    --icon-size-lg: 1.5rem;
}
