/* ========================================
   ANA SAYFA CSS - OPTİMİZE EDİLMİŞ
   Performans iyileştirmeleri ile
   ======================================== */

/* CSS Variables - Birleştirilmiş ve Optimize Edilmiş */
:root {
  /* Akdeniz Renk Paleti */
  --color-bg: #fef7f0;
  --color-bg-alt: #ffffff;
  --color-bg-secondary: #fdf4e8;
  --color-bg-tertiary: #fcebd6;
  
  /* Ana Renkler */
  --color-primary: #1e40af;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e3a8a;
  
  /* Accent Renkler */
  --color-accent: #f97316;
  --color-accent-light: #fb923c;
  --color-accent-dark: #ea580c;
  --color-accent-subtle: #fed7aa;
  
  /* Metin Renkleri */
  --color-text: #0f172a;
  --color-text-secondary: #374151;
  --color-text-muted: #6b7280;
  --color-text-light: #9ca3af;
  
  /* Border ve Shadow */
  --color-border: #fbbf24;
  --color-border-light: #fde68a;
  --color-shadow: 0 4px 24px rgba(251, 191, 36, 0.15);
  --color-shadow-hover: 0 8px 32px rgba(251, 191, 36, 0.25);
  
  /* Gradient Renkleri */
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --gradient-sunset: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  --gradient-title: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  
  /* Tipografi */
  --font-main: 'Inter', 'Roboto', Arial, sans-serif;
  --font-title: 'Poppins', 'Inter', Arial, sans-serif;
  
  /* Ölçüler */
  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --transition: 0.18s cubic-bezier(.4,0,.2,1);
  
  /* Section Header */
  --section-title-size: 3rem;
  --section-title-size-mobile: 2.5rem;
  --section-subtitle-size: 1.25rem;
  --section-subtitle-size-mobile: 1.125rem;
}

/* ========================================
   SLIDER STYLES - OPTİMİZE EDİLMİŞ
   ======================================== */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 900px;
  background: #f8fafc;
  overflow: hidden;
  isolation: isolate;
  contain: layout style paint;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.slider-wrapper:has(.stories-bar) .slider-container {
  padding-top: 140px;
}

.clean-slider {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.clean-slider .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 1;
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  width: 90%;
  padding: 3rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-title {
  font-size: 3.5rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 1rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.slider-text,
.slider-description {
  font-size: 1.5rem !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 2rem !important;
  line-height: 1.6 !important;
}

/* ========================================
   SECTION HEADERS - STANDARTLAŞTIRILMIŞ
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 3rem !important;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-primary-light);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--section-subtitle-size) !important;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* ========================================
   SEARCH SECTION
   ======================================== */
.search-section {
  padding: 4rem 0;
  background: rgba(248, 250, 252, 0.8);
  position: relative;
  overflow: hidden;
}

.search-title {
  font-size: 3rem !important;
  font-weight: 700 !important;
  color: #1e293b;
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.search-subtitle {
  font-size: 1.25rem !important;
  color: #64748b;
  margin: 0;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   ONLINE SERVICES
   ======================================== */
.modern-services-title h2 {
  font-size: var(--section-title-size) !important;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1rem 0;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modern-services-title p {
  font-size: var(--section-subtitle-size) !important;
  color: #64748b;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   RESPONSIVE - OPTİMİZE EDİLMİŞ MEDIA QUERIES
   ======================================== */
@media (max-width: 768px) {
  :root {
    --section-title-size: 2.5rem;
    --section-subtitle-size: 1.125rem;
  }
  
  .slider-wrapper {
    height: 60vh;
    min-height: 400px;
  }
  
  .slider-content {
    padding: 2rem;
  }
  
  .slider-title {
    font-size: 2.8rem !important;
  }
  
  .slider-text,
  .slider-description {
    font-size: 1.3rem !important;
  }
  
  .search-title {
    font-size: 2.5rem !important;
  }
  
  .search-subtitle {
    font-size: 1.125rem !important;
  }
  
  .modern-services-title h2 {
    font-size: var(--section-title-size) !important;
  }
  
  .modern-services-title p {
    font-size: var(--section-subtitle-size) !important;
  }
}

@media (max-width: 480px) {
  .slider-wrapper {
    height: 50vh;
    min-height: 300px;
  }
  
  .slider-content {
    padding: 1.5rem;
  }
  
  .slider-title {
    font-size: 2.5rem !important;
  }
  
  .slider-text,
  .slider-description {
    font-size: 1.2rem !important;
  }
}

/* ========================================
   PERFORMANS OPTİMİZASYONLARI
   ======================================== */
/* Will-change için optimize edilmiş elementler */
.slider-wrapper,
.clean-slider,
.slider-content {
  will-change: transform;
}

/* Containment için optimize edilmiş */
.section-header,
.modern-services-title,
.search-header {
  contain: layout style;
}

/* GPU hızlandırma */
.section-header h2,
.search-title,
.modern-services-title h2 {
  transform: translateZ(0);
  backface-visibility: hidden;
}

