/**
 * PP999 Design System - CSS Custom Properties
 * Color palette from Next.js: Primary Red #C41E3A, Secondary Blue #1E3A8A
 * Fonts: Kanit (body/display) + Bebas Neue (accents)
 * Light theme only
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES
   ============================================================================ */

:root {
    /* Primary Red - from Logo */
    --color-primary-50: #FEF2F2;
    --color-primary-100: #FEE2E2;
    --color-primary-200: #FECACA;
    --color-primary-300: #FCA5A5;
    --color-primary-400: #F87171;
    --color-primary-500: #C41E3A;
    --color-primary-600: #B01B34;
    --color-primary-700: #9A172D;
    --color-primary-800: #7F1425;
    --color-primary-900: #6B1120;
    --color-primary: #C41E3A;

    /* Secondary Blue - from Logo */
    --color-secondary-50: #EFF6FF;
    --color-secondary-100: #DBEAFE;
    --color-secondary-200: #BFDBFE;
    --color-secondary-300: #93C5FD;
    --color-secondary-400: #60A5FA;
    --color-secondary-500: #1E3A8A;
    --color-secondary-600: #1E40AF;
    --color-secondary-700: #1E3A8A;
    --color-secondary-800: #1E3A8A;
    --color-secondary-900: #172554;
    --color-secondary: #1E3A8A;

    /* Neutral Grays */
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;

    /* Backgrounds */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-bg-alt: #F1F5F9;
    --color-bg-dark: #1E3A8A;

    /* Text Colors */
    --color-text-heading: #1E3A8A;
    --color-text-body: #475569;
    --color-text-muted: #64748B;
    --color-text-light: #FFFFFF;

    /* Font Families */
    --font-sans: 'Kanit', ui-sans-serif, system-ui, sans-serif;
    --font-display: 'Kanit', ui-sans-serif, system-ui, sans-serif;
    --font-accent: 'Bebas Neue', ui-sans-serif, system-ui, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(196, 30, 58, 0.25);
    --shadow-secondary: 0 4px 14px rgba(30, 58, 138, 0.2);

    /* Premium card shadows */
    --shadow-card-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-card-lg: 0 8px 16px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.06);
    --shadow-card-xl: 0 16px 32px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);

    /* Section Padding */
    --section-padding: clamp(4rem, 8vw, 6rem);
    --container-padding: clamp(1rem, 4vw, 2rem);

    /* Background Patterns */
    --pattern-dots: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23CBD5E1' fill-opacity='0.3'/%3E%3C/svg%3E");
    --pattern-grid: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0z' fill='none'/%3E%3Cpath d='M0 40V0h1v40zm40-40h-1v40h1z' fill='%23E2E8F0' fill-opacity='0.5'/%3E%3Cpath d='M40 0H0v1h40zM0 40h40v-1H0z' fill='%23E2E8F0' fill-opacity='0.5'/%3E%3C/svg%3E");
    --pattern-diagonal: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z' fill='%23E2E8F0' fill-opacity='0.4'/%3E%3C/svg%3E");

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 500;
    --z-tooltip: 700;

    /* Animation Timing */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* ============================================================================
   KEYFRAME ANIMATIONS
   ============================================================================ */

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes countUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes marqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes fade-out {
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
}
