/* ==========================================================================
   BEYOĞLU TEKNOLOJİ - BASE DESIGN SYSTEM
   Modern, Güçlü, Kurumsal E-Ticaret ve Hizmet Platformu
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* ==========================================================================
     BEYOĞLU TEKNOLOJİ - RESMİ TASARIM SİSTEMİ DEĞİŞKENLERİ
     ========================================================================== */
  --ib-primary: #d12131;
  --ib-primary-hover: #b81423;
  --ib-primary-active: #9e101d;
  --ib-accent: #d12131;
  --ib-accent-hover: #b81423;
  --ib-accent-light: #FDEDED;
  --ib-background: #f6f8fb;
  --ib-surface: #ffffff;
  --ib-surface-hover: #f0f4f9;
  --ib-surface-subtle: #f5f7fa;
  --ib-border: #e1e7ef;
  --ib-border-light: #edf1f7;
  --ib-border-strong: #c9d3e0;
  --ib-text: #1a1f2e;
  --ib-text-secondary: #444a5a;
  --ib-text-muted: #5f6779;
  --ib-text-light: #8b93a5;
  --ib-success: #1ea97c;
  --ib-warning: #e8a23d;
  --ib-danger: #ef5350;
  --ib-info: #3b82f6;
  --ib-radius-sm: 6px;
  --ib-radius-md: 10px;
  --ib-radius-lg: 14px;
  --ib-radius-pill: 25px;
  --ib-spacing-xs: 4px;
  --ib-spacing-sm: 8px;
  --ib-spacing-md: 16px;
  --ib-spacing-lg: 24px;
  --ib-spacing-xl: 32px;

  /* Ana Marka Renkleri */
  --primary: #d12131;
  --primary-hover: #b81423;
  --primary-active: #9e101d;
  --primary-light: #FDEDED;
  --primary-dark: #9e101d;
  --primary-50: #FDEDED;
  --primary-100: #fcd7d9;
  
  --accent-cyan: #d12131;
  --accent-cyan-dark: #b81423;
  --accent-teal: #d12131;
  
  --dark-navy: #1a1f2e;
  --dark-slate: #1a1f2e;
  --dark-charcoal: #444a5a;
  
  --success: #1ea97c;
  --success-bg: #1ea97c1a;
  --warning: #e8a23d;
  --warning-bg: #e8a23d1f;
  --danger: #ef5350;
  --danger-bg: #ef53501a;
  --info: #3b82f6;
  --info-bg: #3b82f61a;
  
  /* Arkaplan & Yüzeyler */
  --bg-app: #f6f8fb;
  --bg-page: #f6f8fb;
  --bg-card: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f5f7fa;
  --bg-surface-hover: #f0f4f9;
  --bg-surface-active: #FDEDED;
  --bg-dark: #1a1f2e;
  
  /* Tipografi Renkleri */
  --text-main: #1a1f2e;
  --text-secondary: #444a5a;
  --text-muted: #5f6779;
  --text-light: #8b93a5;
  --text-white: #ffffff;
  
  /* Kenarlık & Gölgeler */
  --border-color: #e1e7ef;
  --border-light: #edf1f7;
  --border-strong: #c9d3e0;
  --border-subtle: #edf1f7;
  --border-focus: #d12131;
  
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 2px rgba(23, 32, 51, 0.04);
  --shadow-sm: 0 1px 3px rgba(23, 32, 51, 0.05);
  --shadow-md: 0 2px 8px rgba(23, 32, 51, 0.07);
  --shadow-lg: 0 6px 20px rgba(23, 32, 51, 0.1);
  --shadow-xl: 0 12px 32px rgba(23, 32, 51, 0.13);
  --shadow-glow: 0 0 20px rgba(209, 33, 49, 0.2);
  
  --fs-2xs: 10px;
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 26px;
  
  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  
  /* Font Aileleri */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: "Inter", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Geçişler */
  --trans-fast: 0.15s ease;
  --trans-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --container-max: 1400px;
  --header-height: 145px;
}

/* Sıfırlama ve Temel Davranış */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Konteyner & Grid */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-fluid {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Başlıklar & Metinler */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* Yardımcı Sınıflar (Utilities) */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.font-heading { font-family: var(--font-heading); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-primary { color: var(--primary); }
.text-accent { color: var(--accent-cyan-dark); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.bg-white { background-color: #ffffff; }
.bg-page { background-color: var(--bg-page); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.hidden { display: none !important; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Rozetler (Badges) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-discount {
  background-color: #FDEDED;
  color: #d12131;
  border: 1px solid #fcd7d9;
}

.badge-new {
  background-color: #FDEDED;
  color: #d12131;
  border: 1px solid #fcd7d9;
}

.badge-stock {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-fast {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-official {
  background: #d12131;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(209, 33, 49, 0.25);
}

/* Bölüm Başlık Standartları */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--border-color);
  position: relative;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: #d12131;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--dark-navy);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.section-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #d12131;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--trans-fast), color var(--trans-fast);
}

.section-link:hover {
  color: #b81423;
  gap: 0.55rem;
}

/* ==========================================================================
   UI/UX PRO MAX - GLOBAL ACCESSIBILITY & INTERACTION ENHANCEMENTS
   ========================================================================== */

/* Skip to Content Link (WCAG AAA) */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 99999;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
}

/* Explicit cursor-pointer on all interactive elements */
button,
a,
select,
input[type="checkbox"],
input[type="radio"],
input[type="submit"],
input[type="button"],
.interactive,
[role="button"],
[tabindex="0"] {
  cursor: pointer;
}

/* Accessible visible focus states */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
