/* ============================================
   KAZANDIBI DÜNYASI — Design Tokens
   ============================================ */

:root {
  /* ── Colors: Warm Elegance Light Theme ── */
  --color-primary:        #D4A574;
  --color-primary-dark:   #B8845A;
  --color-primary-light:  #E8C8A0;
  --color-secondary:      #8B4513;
  --color-secondary-light:#A0612B;
  --color-accent:         #C9956B;

  /* Background & Surfaces */
  --color-bg:             #110E0C;
  --color-bg-alt:         #1A1410;
  --color-surface:        #221A14;
  --color-surface-hover:  #2E231A;
  --color-surface-active: #3A2E22;
  --color-surface-glass:  rgba(34, 26, 20, 0.65);
  --color-overlay:        rgba(0, 0, 0, 0.6);

  /* Text */
  --color-text:           #F5EDE4;
  --color-text-secondary: #B8A898;
  --color-text-muted:     #7A6E62;
  --color-text-inverse:   #1A1410;

  /* Semantic */
  --color-success:        #7DB87D;
  --color-warning:        #E8A838;
  --color-error:          #D46B6B;
  --color-info:           #6BA8D4;
  --color-badge-new:      #D4A574;
  --color-badge-popular:  #E8A838;
  --color-badge-glutenfree: #7DB87D;

  /* Gradients */
  --gradient-primary:     linear-gradient(135deg, #D4A574 0%, #8B4513 100%);
  --gradient-hero:        linear-gradient(180deg, rgba(17,14,12,0) 0%, #110E0C 100%);
  --gradient-card:        linear-gradient(145deg, rgba(212,165,116,0.08) 0%, rgba(139,69,19,0.04) 100%);
  --gradient-gold:        linear-gradient(90deg, #D4A574, #E8C8A0, #D4A574);
  --gradient-shimmer:     linear-gradient(90deg, transparent 0%, rgba(212,165,116,0.1) 50%, transparent 100%);

  /* ── Typography ── */
  --font-display:         'Playfair Display', Georgia, serif;
  --font-body:            'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:              0.75rem;    /* 12px */
  --text-sm:              0.875rem;   /* 14px */
  --text-base:            0.9375rem;  /* 15px */
  --text-md:              1.0625rem;  /* 17px */
  --text-lg:              1.25rem;    /* 20px */
  --text-xl:              1.5rem;     /* 24px */
  --text-2xl:             1.875rem;   /* 30px */
  --text-3xl:             2.5rem;     /* 40px */
  --text-4xl:             3.25rem;    /* 52px */

  --weight-regular:       400;
  --weight-medium:        500;
  --weight-semibold:      600;
  --weight-bold:          700;

  --leading-tight:        1.2;
  --leading-normal:       1.5;
  --leading-relaxed:      1.7;

  /* ── Spacing ── */
  --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 */

  /* ── Border Radius ── */
  --radius-sm:  0.5rem;   /* 8px */
  --radius-md:  0.75rem;  /* 12px */
  --radius-lg:  1rem;     /* 16px */
  --radius-xl:  1.25rem;  /* 20px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md:    0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg:    0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-xl:    0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-glow:  0 0 20px rgba(212, 165, 116, 0.15);
  --shadow-card:  0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(212, 165, 116, 0.05);

  /* ── Glass ── */
  --glass-blur:       blur(20px);
  --glass-border:     1px solid rgba(212, 165, 116, 0.1);
  --glass-border-hover: 1px solid rgba(212, 165, 116, 0.25);

  /* ── Transitions ── */
  --transition-fast:    150ms ease;
  --transition-base:    250ms ease;
  --transition-slow:    400ms ease;
  --transition-spring:  500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-Index ── */
  --z-base:     1;
  --z-sticky:   100;
  --z-modal:    1000;
  --z-overlay:  999;
  --z-toast:    1100;
  --z-float:    500;

  /* ── Layout ── */
  --container-max:    480px;
  --container-tablet: 768px;
  --container-wide:   1024px;
  --header-height:    64px;
  --category-bar-h:   56px;
  --bottom-safe:      env(safe-area-inset-bottom, 0px);
}

[data-theme="light"] {
  --color-primary-light:  #EAD5AA;
  --color-bg:             #F3EAD3;
  --color-bg-alt:         #EAD9B5;
  --color-surface:        #FFFDF5;
  --color-surface-hover:  #F5EDD8;
  --color-surface-active: #E8D5A8;
  --color-surface-glass:  rgba(243, 234, 211, 0.88);
  --color-overlay:        rgba(44, 30, 22, 0.45);

  --color-text:           #2C1E16;
  --color-text-secondary: #5E4A3D;
  --color-text-muted:     #8A7361;
  --color-text-inverse:   #F3EAD3;

  --gradient-hero:        linear-gradient(180deg, rgba(243,234,211,0) 0%, #F3EAD3 100%);
  --gradient-card:        linear-gradient(145deg, rgba(255,253,245,1) 0%, rgba(234,217,181,0.35) 100%);
}
