/* ═══════════════════════════════════════════════════════════
   MecAnalytica — services.css v2.0
   Hizmet sayfaları ortak stili
   ═══════════════════════════════════════════════════════════ */

/* ── Animasyon (güvenli) ─────────────────────────────────── */
[data-animate] {
  opacity: 1;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Renk değişkenleri (fallback) ────────────────────────── */
:root {
  --accent:        #2563eb;
  --accent-light:  #3b82f6;
  --text:          #0f172a;
  --text-light:    #64748b;
  --text-muted:    #94a3b8;
  --bg:            #ffffff;
  --bg-subtle:     #f8fafc;
  --bg-card:       #ffffff;
  --border:        #e2e8f0;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
}

[data-theme="dark"] {
  --text:          #f1f5f9;
  --text-light:    #94a3b8;
  --text-muted:    #64748b;
  --bg:            #0f172a;
  --bg-subtle:     #1e293b;
  --bg-card:       #1e293b;
  --border:        #334155;
}

/* ════════════════════════════════════════════════════════════
   1. HERO
   ════════════════════════════════════════════════════════════ */
.service-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e293b 100%);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(99,102,241,.10) 0%, transparent 40%);
  pointer-events: none;
}

.service-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-size: .85rem;
}
.service-hero .breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.service-hero .breadcrumb a:hover { color: #fff; }
.service-hero .breadcrumb span[aria-hidden] { color: rgba(255,255,255,.3); }
.service-hero .breadcrumb span[aria-current] { color: rgba(255,255,255,.9); }

.service-hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.service-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.25);
  border: 1px solid rgba(37,99,235,.4);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.service-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════
   2. ORTAK SECTION AYARLARI
   ════════════════════════════════════════════════════════════ */
.section { padding: 80px 0; }
.bg-subtle { background: var(--bg-subtle); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.08);
  color: var(--accent);
  border: 1px solid rgba(37,99,235,.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-header { margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section-header h2 strong { color: var(--accent); }
.text-center { text-align: center; }

/* ════════════════════════════════════════════════════════════
   3. DETAY — 2 KOLON GRID
   ════════════════════════════════════════════════════════════ */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.service-detail-main h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 20px;
}
.service-detail-main h2 strong { color: var(--accent); }
.service-detail-main p {
  color: var(--text-center);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 1rem;
}
.service-detail-main h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.5;
}
.service-feature-list li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: .85rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}
.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,.3);
}
/* ════════════════════════════════════════════════════════════
   PROCESS STEPS — Tam Stil (v2.1)
   ════════════════════════════════════════════════════════════ */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.process-step {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow .2s, border-color .2s;
}

.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .3);
}

/* ── Numara baloncuğu ── */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;             /* asla küçülme */
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, .10);
  border: 2px solid rgba(37, 99, 235, .25);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  /* ::after tamamen kaldırıldı */
}

/* ::after YOK — altı çizgi yok, artifact yok */

/* ── İçerik metni ── */
.step-content {
  flex: 1;
  min-width: 0;               /* taşmayı önler */
}

.step-content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.step-content p {
  font-size: .875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.65;
}

/* ── Mobil (≤ 768px): dikey değil, yan yana kalır ── */
@media (max-width: 768px) {
  .process-step {
    gap: 14px;
    padding: 16px 18px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: .9rem;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .step-content h4 {
    font-size: .9rem;
  }

  .step-content p {
    font-size: .82rem;
  }
}

/* ── Küçük ekran (≤ 480px) ── */
@media (max-width: 480px) {
  .process-step {
    gap: 12px;
    padding: 14px 16px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: .85rem;
    border-radius: 8px;
  }
}
.step-content h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.step-content p {
  font-size: .875rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* ── Sidebar ── */
.service-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 90px;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-card-header i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.1);
  color: var(--accent);
  border-radius: 8px;
  font-size: .9rem;
}
.sidebar-card-header h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-light);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
}
.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(37,99,235,.06);
}

.sidebar-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.sidebar-benefit-list li i {
  color: #22c55e;
  margin-top: 2px;
  flex-shrink: 0;
}

.sidebar-cta {
  background: linear-gradient(135deg, #1e3a5f, #1e1b4b);
  border-color: rgba(255,255,255,.1);
  text-align: center;
}
.sidebar-cta-icon {
  display: block;
  font-size: 2.5rem;
  color: #60a5fa;
  margin-bottom: 16px;
}
.sidebar-cta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.sidebar-cta p {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ════════════════════════════════════════════════════════════
   4. METRİKLER
   ════════════════════════════════════════════════════════════ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.metric-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.metric-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,.1);
  color: var(--accent);
  border-radius: 12px;
  font-size: 1.3rem;
  margin: 0 auto 16px;
}
.metric-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.metric-label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.metric-desc {
  display: block;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   5. DİĞER HİZMETLER
   ════════════════════════════════════════════════════════════ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  transition: all .25s;
  box-shadow: var(--shadow-sm);
}
.related-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,.35);
  transform: translateY(-4px);
}
.related-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,99,235,.1);
  color: var(--accent);
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.related-card h4 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.related-card p { font-size: .875rem; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 16px; }
.related-card-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.related-card:hover .related-card-link { gap: 10px; }

/* ════════════════════════════════════════════════════════════
   6. CTA BÖLÜMÜ
   ════════════════════════════════════════════════════════════ */
.cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e1b4b 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(37,99,235,.2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.cta-content h2 strong { color: #60a5fa; }
.cta-content p {
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 500px;
}
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-visual { position: relative; z-index: 1; }
.cta-icon-wrap {
  width: 120px; height: 120px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 24px;
  font-size: 3.5rem;
  color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════════════════════════
   7. BUTONLAR — TURUNCU
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  line-height: 1;
}

/* ── Birincil buton (İletişime Geç, Hemen Başla vb.) ── */
.btn-primary {
  background: #f97316;
  color: #fff !important;
  border: none;
}
.btn-primary:hover {
  background: #ea6c0a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249,115,22,.45);
  color: #fff !important;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}

/* ── Outline buton (beyaz zemin üstünde) ── */
.btn-outline {
  background: transparent;
  color: rgba(255,255,255,.85) !important;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  color: #fff !important;
}

/* ── Ghost buton ── */
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85) !important;
  border: 1px solid rgba(255,255,255,.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.18);
}
.service-hero__subtitle:{color: #fff !important;}
/* ── Boyutlar ── */
.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

/* ── Sidebar tam genişlik CTA butonu ── */
.sidebar-cta .btn-primary {
  background: #f97316;
  color: #fff !important;
}
.sidebar-cta .btn-primary:hover {
  background: #ea6c0a;
  box-shadow: 0 6px 20px rgba(249,115,22,.45);
}

/* ════════════════════════════════════════════════════════════
   8. MOBİL RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-detail-sidebar { position: static; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .service-hero { padding: 100px 0 0px; text-align: center; }
  .service-hero h1 { font-size: 2rem; text-align: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .service-feature-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; padding: 40px 28px; text-align: center; }
  .cta-visual { display: none; }
  .cta-buttons { justify-content: center; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .sidebar-card { padding: 20px; }
  .cta-card { padding: 32px 20px; }
}
