/* ===== Tema 2 — Modern avukat teması ===== */
/* Tipografi: Plus Jakarta Sans */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --theme-primary: #0f172a;
  --theme-secondary: #1e293b;
  --theme-accent: #3b82f6;
  --theme-light: #f1f5f9;
  --theme-dark: #0f172a;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-lacivert {
  --theme-primary: #1e3a5f;
  --theme-secondary: #2c5282;
  --theme-accent: #3182ce;
  --theme-light: #e2e8f0;
  --theme-dark: #1a202c;
}

body.theme-koyu-gri {
  --theme-primary: #1e293b;
  --theme-secondary: #334155;
  --theme-accent: #64748b;
  --theme-light: #e2e8f0;
  --theme-dark: #0f172a;
}

body.theme-bordo {
  --theme-primary: #7f1d1d;
  --theme-secondary: #991b1b;
  --theme-accent: #b91c1c;
  --theme-light: #fef2f2;
  --theme-dark: #1a202c;
}

body.theme-koyu-yesil {
  --theme-primary: #14532d;
  --theme-secondary: #166534;
  --theme-accent: #15803d;
  --theme-light: #ecfdf5;
  --theme-dark: #0f172a;
}

body.theme-lacivert-acik {
  --theme-primary: #1e40af;
  --theme-secondary: #2563eb;
  --theme-accent: #3b82f6;
  --theme-light: #eff6ff;
  --theme-dark: #1e293b;
}

/* Genel */
body {
  font-family: var(--font-sans);
  color: #334155;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 1rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

/* Başlıklar */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-weight: 700;
  color: var(--theme-dark);
  letter-spacing: -0.02em;
}

/* Bölüm başlıkları — modern etiket */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--theme-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

/* Butonlar */
.btn {
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background-color: var(--theme-secondary);
  border-color: var(--theme-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
  border-width: 2px;
  color: var(--theme-primary);
}

.btn-outline-primary:hover {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  border: none;
}

.btn-light:hover {
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: var(--theme-primary) !important;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-lg);
}

/* Üst bar — ince, modern */
.top-bar {
  min-height: 36px;
  background: linear-gradient(135deg, var(--theme-dark) 0%, var(--theme-secondary) 100%);
  font-size: 0.8125rem;
  font-weight: 500;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.top-bar-link:hover {
  color: #fff;
}

.top-bar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.top-bar-social:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Navbar — sticky, cam efekti */
.navbar-modern {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.navbar-modern.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--theme-primary) !important;
  transition: opacity 0.2s ease;
}

.navbar-brand:hover {
  opacity: 0.85;
}

.nav-link {
  font-weight: 500;
  color: #475569 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--theme-primary) !important;
  background-color: var(--theme-light);
}

.nav-link.active {
  color: var(--theme-primary) !important;
  background-color: rgba(0, 0, 0, 0.04);
}

.navbar-toggler {
  border-radius: var(--radius);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Anasayfa hero banner */
.home-banner {
  min-height: 600px;
  position: relative;
}

@media (max-width: 767.98px) {
  .home-banner {
    min-height: 420px;
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 28rem;
}

/* Kartlar — yuvarlak köşe, gölge, hover */
.card-modern {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-modern .card-img-top {
  transition: transform var(--transition);
}

.card-hover:hover .card-img-top,
a:hover .card-modern .card-img-top {
  transform: scale(1.05);
}

.card-hover,
.card-modern {
  cursor: pointer;
}

.card-hover:hover,
a:hover .card-modern {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.card-modern .card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.card-modern .card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

/* Ekip kartı — yuvarlak foto */
.team-card-modern .card-img-top {
  height: 260px;
  object-fit: cover;
  border-radius: 0;
}

.team-card-modern {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Bölüm arka planları */
.section-light {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-alt {
  background-color: #fff;
}

/* CTA bölümü — metin her zaman açık okunaklı */
.cta-modern {
  background: linear-gradient(135deg, #334155 0%, #475569 50%, #64748b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-modern .container {
  position: relative;
  z-index: 1;
}

.cta-modern h2,
.cta-modern h3,
.cta-modern p,
.cta-modern .opacity-90 {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-modern .opacity-90 {
  opacity: 0.95 !important;
}

.cta-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.cta-modern .btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b !important;
  font-weight: 600;
}

/* İç sayfa banner */
.page-banner-modern {
  min-height: 240px;
  position: relative;
}

.page-banner-modern .page-banner-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb */
.breadcrumb-modern {
  font-size: 0.875rem;
  background: transparent;
  padding: 0.75rem 0;
}

.breadcrumb-modern .breadcrumb-item a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-modern .breadcrumb-item a:hover {
  color: var(--theme-primary);
}

/* WhatsApp sabit buton */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

/* Form kontrolleri — tema uyumlu */
.form-control:focus,
.form-select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

/* Link ok (Devamını oku) */
.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--theme-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.link-arrow:hover {
  color: var(--theme-secondary);
  gap: 0.5rem;
}

/* Hafif giriş animasyonu (sayfa yüklenince) */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eski class uyumluluğu */
.card-hover:hover,
a:hover .card-hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover) !important;
}

.navbar-brand,
.nav-link.active {
  color: var(--theme-primary) !important;
}

/* Footer modern */
.footer-modern {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #64748b;
}

.footer-modern .footer-link {
  transition: color 0.2s ease;
}

.footer-modern .footer-link:hover {
  color: var(--theme-primary) !important;
}

.footer-modern .footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.06);
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-modern .footer-social:hover {
  background: var(--theme-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Sayfalama — kompakt, aralıklı */
.pagination {
  gap: 0.5rem;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
  min-width: 2.25rem;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-item.active .page-link {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
}

.pagination .page-link:hover {
  background-color: var(--theme-light);
  border-color: var(--theme-light);
  color: var(--theme-primary);
}
