/**
 * SMG THEME - CSS VARIABLES SYSTEM
 * Zentrale Variablen für konsistente Design-Tokens
 * Alle Widgets verwenden diese Variablen für DRY-Prinzipien
 */

:root {
    /* ========================================
       BRAND COLORS - SMG SUMA
       ⚠️ WERDEN DYNAMISCH VON functions.php GENERIERT!
       ======================================== */
    /* Die folgenden Variablen werden automatisch gesetzt: */
    /* --smg-primary, --smg-primary-dark, --smg-primary-light */
    /* --smg-50 bis --smg-950 (alle Shades) */
    /* --smg-600-rgb und alle anderen RGB-Varianten */
    /* NICHT hier überschreiben! */
    
    /* Neutral Colors */
    --smg-gray-50: #f9fafb;
    --smg-gray-100: #f3f4f6;
    --smg-gray-200: #e5e7eb;
    --smg-gray-300: #d1d5db;
    --smg-gray-400: #9ca3af;
    --smg-gray-500: #6b7280;
    --smg-gray-600: #4b5563;
    --smg-gray-700: #374151;
    --smg-gray-800: #1f2937;
    --smg-gray-900: #111827;
    
    /* Semantic Colors */
    --smg-success: #10b981;
    --smg-warning: #f59e0b;
    --smg-error: #ef4444;
    --smg-info: #3b82f6;
    
    /* ========================================
       TYPOGRAPHY SYSTEM
       ======================================== */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', system-ui, sans-serif;
    --font-family-heading: var(--font-family-base);
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Font Sizes */
    --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 */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-snug: 1.375;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 2;
    
    /* ========================================
       SPACING SYSTEM
       ======================================== */
    --space-0: 0;
    --space-px: 1px;
    --space-0-5: 0.125rem;   /* 2px */
    --space-1: 0.25rem;      /* 4px */
    --space-1-5: 0.375rem;   /* 6px */
    --space-2: 0.5rem;       /* 8px */
    --space-2-5: 0.625rem;   /* 10px */
    --space-3: 0.75rem;      /* 12px */
    --space-3-5: 0.875rem;   /* 14px */
    --space-4: 1rem;         /* 16px */
    --space-5: 1.25rem;      /* 20px */
    --space-6: 1.5rem;       /* 24px */
    --space-7: 1.75rem;      /* 28px */
    --space-8: 2rem;         /* 32px */
    --space-9: 2.25rem;      /* 36px */
    --space-10: 2.5rem;      /* 40px */
    --space-11: 2.75rem;     /* 44px */
    --space-12: 3rem;        /* 48px */
    --space-14: 3.5rem;      /* 56px */
    --space-16: 4rem;        /* 64px */
    --space-20: 5rem;        /* 80px */
    --space-24: 6rem;        /* 96px */
    --space-28: 7rem;        /* 112px */
    --space-32: 8rem;        /* 128px */
    
    /* ========================================
       LAYOUT SYSTEM
       ======================================== */
    /* Container Sizes */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    --container-max-width: 1400px;
    
    /* Container Padding */
    --container-padding: var(--space-8);
    --container-padding-tablet: var(--space-6);
    --container-padding-mobile: var(--space-4);
    --container-padding-small: var(--space-3);
    
    /* Grid System */
    --grid-gap: var(--space-6);
    --grid-gap-tablet: var(--space-4);
    --grid-gap-mobile: var(--space-3);

    /* Widget Component Spacing */
    --widget-filter-margin-bottom: clamp(2rem, 4vw, 3rem);     /* 32px → 48px */
    --widget-pagination-margin-top: clamp(1.25rem, 3vw, 2rem); /* 20px → 32px */
    
    /* Flex System */
    --flex-gap: var(--space-4);
    --flex-gap-tablet: var(--space-3);
    --flex-gap-mobile: var(--space-2);
    
    /* ========================================
       COMPONENT TOKENS
       ======================================== */
    /* Cards */
    --card-background: rgba(255, 255, 255, 0.8);
    --card-border: 1px solid rgba(255, 255, 255, 0.3);
    --card-border-radius: var(--space-4);
    --card-padding: var(--space-6);
    --card-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --card-backdrop-filter: blur(20px);
    
    /* Card Hover States */
    --card-hover-transform: translateY(-4px);
    --card-hover-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Buttons */
    --button-background: var(--smg-500); /* ✅ Primärfarbe für Buttons */
    --button-color: white;
    --button-border: none;
    --button-border-radius: var(--space-3);
    --button-padding: var(--space-3) var(--space-6);
    --button-font-weight: var(--font-weight-semibold);
    --button-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Button Hover States */
    --button-hover-background: var(--smg-600); /* ✅ Dunklere Variante für Hover */
    --button-hover-transform: translateY(-2px);

    /* Icons */
    --icon-size: var(--space-6);
    --icon-color: var(--smg-500); /* ✅ Primärfarbe für Icons */
    
    /* ========================================
       WIDGET TOKENS
       ======================================== */
    /* Widget Base */
    --widget-padding: var(--space-20) 0;
    --widget-padding-tablet: var(--space-16) 0;
    --widget-padding-mobile: var(--space-12) 0;
    --widget-padding-small: var(--space-8) 0;
    
    --widget-max-width: var(--container-max-width);
    --widget-inner-padding: var(--space-8);
    --widget-inner-padding-tablet: var(--space-6);
    --widget-inner-padding-mobile: var(--space-4);
    --widget-inner-padding-small: var(--space-3);
    
    /* Widget Cards */
    --widget-card-background: var(--card-background);
    --widget-card-border-radius: var(--card-border-radius);
    --widget-card-padding: var(--card-padding);
    --widget-card-shadow: var(--card-shadow);
    
    /* Widget Buttons */
    --widget-button-background: var(--button-background);
    --widget-button-color: var(--button-color);
    
    /* ========================================
       BENTO GRID SPECIFIC TOKENS
       ======================================== */
    --bento-card-background: rgba(255, 255, 255, 0.8);
    --bento-card-border: 1px solid rgba(255, 255, 255, 0.3);
    --bento-card-border-radius: clamp(16px, 3vw, 24px);
    --bento-card-padding: clamp(1rem, 3vw, 1.5rem);
    --bento-card-gap: clamp(0.75rem, 2vw, 1rem);
    --bento-card-backdrop-filter: blur(20px);
    --bento-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    
    /* Bento Card Hover */
    --bento-card-hover-transform: translateY(-4px);
    --bento-card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    
    /* Bento Shops Card */
    --bento-shops-background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(227, 30, 36, 0.02) 100%);
    --bento-shops-border: 2px solid rgba(227, 30, 36, 0.15);
    --bento-shops-shadow: 0 12px 40px rgba(227, 30, 36, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);

    /* Glassmorphism Content Overlay */
    --bento-glassmorphism-background: rgba(255, 255, 255, 0.92);
    --bento-glassmorphism-background-hover: rgba(255, 255, 255, 0.95);
    --bento-glassmorphism-backdrop-filter: blur(12px);
    --bento-glassmorphism-backdrop-filter-hover: blur(16px);
    --bento-glassmorphism-border: 1px solid rgba(255, 255, 255, 0.3);
    --bento-glassmorphism-border-radius: clamp(12px, 2.5vw, 20px);
    --bento-glassmorphism-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --bento-glassmorphism-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --bento-glassmorphism-margin: clamp(0.75rem, 2vw, 1rem);
    
    /* ========================================
       ANIMATION TOKENS
       ======================================== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --easing-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-ease-out: cubic-bezier(0, 0, 0.2, 1);
    --easing-ease-in: cubic-bezier(0.4, 0, 1, 1);
    
    /* ========================================
       BREAKPOINTS
       ======================================== */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ========================================
       Z-INDEX SYSTEM
       ======================================== */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    --z-index-toast: 1080;
}
