/* ========================================
   SFON DESIGN SYSTEM
   Modern, Cohesive, and Scalable Design Tokens
   ======================================== */

/* ========================================
   1. COLOR SYSTEM - LIGHT PURPLE THEME
   ======================================== */
:root {
    /* Primary Brand Colors - Light Purple */
    --primary-50: #f3e5f5;
    --primary-100: #e1bee7;
    --primary-200: #ce93d8;
    --primary-300: #ba68c8;
    --primary-400: #9c27b0;
    --primary-500: #9B5A9B;
    --primary-600: #8B4A8B;
    --primary-700: #7B3A7B;
    --primary-800: #6B2A6B;
    --primary-900: #5B1A5B;
    
    /* Secondary Colors - Medium Purple */
    --secondary-50: #f3e5f5;
    --secondary-100: #e1bee7;
    --secondary-200: #ce93d8;
    --secondary-300: #ba68c8;
    --secondary-400: #9c27b0;
    --secondary-500: #8B4A8B;
    --secondary-600: #7B3A7B;
    --secondary-700: #6B2A6B;
    --secondary-800: #5B1A5B;
    --secondary-900: #4B0F4B;
    
    /* Accent Colors - Lighter Purple */
    --accent-50: #f3e5f5;
    --accent-100: #e1bee7;
    --accent-200: #ce93d8;
    --accent-300: #ba68c8;
    --accent-400: #9c27b0;
    --accent-500: #AB6AAB;
    --accent-600: #9B5A9B;
    --accent-700: #8B4A8B;
    --accent-800: #7B3A7B;
    --accent-900: #6B2A6B;
    
    /* Neutral Colors */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #eeeeee;
    --neutral-300: #e0e0e0;
    --neutral-400: #bdbdbd;
    --neutral-500: #9e9e9e;
    --neutral-600: #757575;
    --neutral-700: #616161;
    --neutral-800: #424242;
    --neutral-900: #212121;
    
    /* Semantic Colors */
    --success-50: #e8f5e9;
    --success-500: #4caf50;
    --success-700: #388e3c;
    
    --warning-50: #fff3e0;
    --warning-500: #ff9800;
    --warning-700: #f57c00;
    
    --error-50: #ffebee;
    --error-500: #f44336;
    --error-700: #d32f2f;
    
    --info-50: #e3f2fd;
    --info-500: #2196f3;
    --info-700: #1976d2;
    
    /* Contextual Colors */
    --color-primary: var(--primary-500);
    --color-secondary: var(--secondary-500);
    --color-accent: var(--accent-500);
    --color-success: var(--success-500);
    --color-warning: var(--warning-500);
    --color-error: var(--error-500);
    --color-info: var(--info-500);
}

/* ========================================
   2. TYPOGRAPHY SYSTEM
   ======================================== */
:root {
    /* Font Families */
    --font-primary: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.25rem);
    --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 3.75rem);
    --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 4.5rem);
    
    /* Font Weights */
    --font-thin: 100;
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0em;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
}

/* ========================================
   3. SPACING SYSTEM
   ======================================== */
:root {
    --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-7: 1.75rem;   /* 28px */
    --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 */
    --space-32: 8rem;     /* 128px */
    --space-40: 10rem;    /* 160px */
    --space-48: 12rem;    /* 192px */
    --space-56: 14rem;    /* 224px */
    --space-64: 16rem;    /* 256px */
}

/* ========================================
   4. BORDER RADIUS SYSTEM
   ======================================== */
:root {
    --radius-none: 0;
    --radius-sm: 0.25rem;      /* 4px */
    --radius-base: 0.5rem;     /* 8px */
    --radius-md: 0.75rem;      /* 12px */
    --radius-lg: 1rem;         /* 16px */
    --radius-xl: 1.5rem;       /* 24px */
    --radius-2xl: 2rem;        /* 32px */
    --radius-3xl: 3rem;        /* 48px */
    --radius-full: 9999px;
}

/* ========================================
   5. SHADOW SYSTEM
   ======================================== */
:root {
    /* Elevation Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Colored Shadows - Purple Theme */
    --shadow-primary: 0 10px 40px -5px rgba(155, 90, 155, 0.3);
    --shadow-secondary: 0 10px 40px -5px rgba(155, 90, 155, 0.3);
    --shadow-accent: 0 10px 40px -5px rgba(171, 106, 171, 0.3);
    --shadow-success: 0 10px 40px -5px rgba(76, 175, 80, 0.3);
    --shadow-warning: 0 10px 40px -5px rgba(255, 152, 0, 0.3);
    --shadow-error: 0 10px 40px -5px rgba(244, 67, 54, 0.3);
}

/* ========================================
   6. TRANSITION SYSTEM
   ======================================== */
:root {
    /* Durations */
    --duration-instant: 0ms;
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-medium: 350ms;
    --duration-slow: 500ms;
    --duration-slower: 750ms;
    --duration-slowest: 1000ms;
    
    /* Easing Functions */
    --ease-linear: linear;
    --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);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Combined Transitions */
    --transition-fast: var(--duration-fast) var(--ease-out);
    --transition-base: var(--duration-base) var(--ease-in-out);
    --transition-medium: var(--duration-medium) var(--ease-in-out);
    --transition-slow: var(--duration-slow) var(--ease-in-out);
    --transition-smooth: var(--duration-medium) var(--ease-smooth);
    --transition-bounce: var(--duration-medium) var(--ease-bounce);
}

/* ========================================
   7. Z-INDEX SYSTEM
   ======================================== */
:root {
    --z-base: 1;
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
    --z-notification: 1090;
}

/* ========================================
   8. BREAKPOINT SYSTEM
   ======================================== */
:root {
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-2xl: 1400px;
    --breakpoint-3xl: 1600px;
}

/* ========================================
   9. GRADIENT SYSTEM - LIGHT PURPLE THEME
   ======================================== */
:root {
    /* Brand Gradients - Light Purple Theme */
    --gradient-primary: linear-gradient(135deg, #9B5A9B 0%, #8B4A8B 100%);
    --gradient-secondary: linear-gradient(135deg, #9B5A9B 0%, #7B3A7B 100%);
    --gradient-accent: linear-gradient(135deg, #AB6AAB 0%, #9B5A9B 100%);
    
    /* Multi-Color Gradients - Light Purple Based */
    --gradient-rainbow: linear-gradient(135deg, #9B5A9B 0%, #AB6AAB 50%, #8B4A8B 100%);
    --gradient-sunset: linear-gradient(135deg, #BB7ABB 0%, #9B5A9B 50%, #8B4A8B 100%);
    --gradient-purple-to-rose: linear-gradient(135deg, #AB6AAB 0%, #9B5A9B 100%);
    --gradient-fire: linear-gradient(135deg, #AB6AAB 0%, #9B5A9B 100%);
    --gradient-nature: linear-gradient(135deg, #9c27b0 0%, #9B5A9B 100%);
    
    /* Overlay Gradients - Light Purple Theme */
    --gradient-overlay-dark: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    --gradient-overlay-light: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.3) 100%);
    --gradient-overlay-primary: linear-gradient(135deg, rgba(155,90,155,0.9) 0%, rgba(139,74,139,0.7) 100%);
}

/* ========================================
   10. GLASS MORPHISM
   ======================================== */
:root {
    --glass-white: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
    --glass-light: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
    --glass-medium: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.4) 100%);
    --glass-dark: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
    
    --blur-sm: blur(10px);
    --blur-base: blur(20px);
    --blur-md: blur(30px);
    --blur-lg: blur(40px);
    --blur-xl: blur(60px);
}

/* ========================================
   11. ANIMATION KEYFRAMES
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
    }
    50% {
        box-shadow: 0 0 20px var(--color-primary), 0 0 30px var(--color-primary);
    }
}

/* ========================================
   12. UTILITY CLASSES
   ======================================== */

/* Animation Classes */
.animate-fadeIn { animation: fadeIn var(--duration-medium) var(--ease-out); }
.animate-fadeInUp { animation: fadeInUp var(--duration-medium) var(--ease-out); }
.animate-fadeInDown { animation: fadeInDown var(--duration-medium) var(--ease-out); }
.animate-fadeInLeft { animation: fadeInLeft var(--duration-medium) var(--ease-out); }
.animate-fadeInRight { animation: fadeInRight var(--duration-medium) var(--ease-out); }
.animate-bounce { animation: bounce var(--duration-slower) var(--ease-out) infinite; }
.animate-pulse { animation: pulse var(--duration-slower) var(--ease-in-out) infinite; }
.animate-spin { animation: spin var(--duration-slower) linear infinite; }
.animate-float { animation: float 3s var(--ease-in-out) infinite; }

/* Transition Classes */
.transition-all { transition: all var(--transition-base); }
.transition-colors { transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base); }
.transition-transform { transition: transform var(--transition-base); }
.transition-opacity { transition: opacity var(--transition-base); }
.transition-smooth { transition: all var(--transition-smooth); }

/* Hover Effects */
.hover-lift:hover { transform: translateY(-8px); transition: transform var(--transition-base); }
.hover-scale:hover { transform: scale(1.05); transition: transform var(--transition-base); }
.hover-glow:hover { animation: glow 1.5s ease-in-out infinite; }
.hover-rotate:hover { transform: rotate(5deg); transition: transform var(--transition-base); }

/* Glass Morphism Classes */
.glass {
    background: var(--glass-light);
    backdrop-filter: var(--blur-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-strong {
    background: var(--glass-white);
    backdrop-filter: var(--blur-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Shadow Classes */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-base { box-shadow: var(--shadow-base); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-2xl { box-shadow: var(--shadow-2xl); }
.shadow-primary { box-shadow: var(--shadow-primary); }
.shadow-accent { box-shadow: var(--shadow-accent); }

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus-visible:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-base);
}

/* Responsive Visibility */
@media (max-width: 576px) {
    .hidden-xs { display: none !important; }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hidden-sm { display: none !important; }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hidden-md { display: none !important; }
}

@media (min-width: 993px) {
    .hidden-lg { display: none !important; }
}

