/* ============================================
   DRM OTO SERVİS - SHARED STYLES
   CSS Variables, Reset, Base Styles
   ============================================ */

/* --------------------------------
   TOP BAR - HIDDEN
   -------------------------------- */
.top-bar {
  display: none !important;
}

.top-bar-container,
.top-bar-left,
.top-bar-right {
  display: none !important;
}

/* --------------------------------
   CSS VARIABLES (Design Tokens)
   -------------------------------- */
:root {
  /* Renkler - Mevcut tasarım korunuyor */
  --color-primary: #007BFF;
  --color-primary-dark: #0A3D62;
  --color-primary-light: #60a5fa;
  --color-background: #f7f7f5;
  --color-background-light: #fafafa;
  --color-background-gray: #F5F6FA;
  --color-background-dark: #0b1225;
  --color-text: #2c2c2c;
  --color-text-dark: #00050a;
  --color-text-light: #666;
  --color-text-muted: #94a3b8;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #c5c5c5;
  --color-gray-light: #ddd;
  --color-gray-dark: #333;
  --color-success: #27ae60;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  
  /* Spacing System */
  --spacing-xs: 0.5rem;      /* 8px */
  --spacing-sm: 1rem;       /* 16px */
  --spacing-md: 1.5rem;     /* 24px */
  --spacing-lg: 2rem;       /* 32px */
  --spacing-xl: 3rem;       /* 48px */
  --spacing-2xl: 4rem;      /* 64px */
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 2rem;     /* 32px */
  --font-size-4xl: 2.5rem;   /* 40px */
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
  
  /* Transitions & Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.25);
  
  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-full: 9999px;
  
  /* Z-Index Layers */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Container - Responsive için base değerler */
  --container-width: 95%;
  --container-max-width: 1200px;
  --container-padding: 1.25rem; /* 20px - responsive.css'te override edilecek */
}

/* --------------------------------
   RESET & BASE STYLES
   -------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  margin: 0;
  padding: 0;
}

/* Section'lar arasındaki boşluğu kaldır */
section + section {
  margin-top: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

/* --------------------------------
   TYPOGRAPHY
   -------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-dark);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* --------------------------------
   CONTAINER SYSTEM
   -------------------------------- */
.container {
  width: var(--container-width);
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --------------------------------
   UTILITY CLASSES
   -------------------------------- */
.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;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* --------------------------------
   LOADING STATES
   -------------------------------- */
.loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--color-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* --------------------------------
   FADE-IN ANIMATION (Base)
   -------------------------------- */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--spacing-sm);
  z-index: var(--z-tooltip);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

