@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
  --globridge-oxford-blue: #001D3D;
  --globridge-magnolia: #FCF7FF;
  --globridge-cta-bg: #FFFFFF;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-poppins), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-poppins), -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden; /* yatay taşmayı keser; body scroll container olduğu için sticky çalışır */
}

/* Input, Textarea ve Select – tarayıcı varsayılanlarını sıfırla, !important yok */

/* CKEditor – admin panel İçerik alanı: arka plan, metin rengi ve tipografi */
.ck-editor__editable,
.ck-editor .ck-editor__editable_inline,
.ck-content {
  background-color: #ffffff !important;
  color: #111827 !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  padding: 1rem 1.25rem !important;
  min-height: 400px !important;
}

.ck-editor__editable.ck-focused,
.ck-editor__editable:focus {
  background-color: #ffffff !important;
  color: #111827 !important;
}

.ck-editor__editable p,
.ck-editor__editable h1,
.ck-editor__editable h2,
.ck-editor__editable h3,
.ck-editor__editable h4,
.ck-editor__editable h5,
.ck-editor__editable h6,
.ck-editor__editable li,
.ck-editor__editable span,
.ck-editor__editable div,
.ck-editor__editable strong,
.ck-editor__editable b,
.ck-editor__editable em,
.ck-editor__editable a,
.ck-content p,
.ck-content h1, .ck-content h2, .ck-content h3,
.ck-content h4, .ck-content h5, .ck-content h6,
.ck-content li, .ck-content span, .ck-content div,
.ck-content strong, .ck-content b, .ck-content em,
.ck-content a {
  color: #111827 !important;
}

.ck-editor__editable h1, .ck-content h1 { font-size: 1.75rem !important; font-weight: 700 !important; margin-top: 1.5em !important; margin-bottom: 0.5em !important; }
.ck-editor__editable h2, .ck-content h2 { font-size: 1.375rem !important; font-weight: 700 !important; margin-top: 1.25em !important; margin-bottom: 0.5em !important; }
.ck-editor__editable h3, .ck-content h3 { font-size: 1.125rem !important; font-weight: 600 !important; margin-top: 1em !important; margin-bottom: 0.4em !important; }
.ck-editor__editable p, .ck-content p { margin-bottom: 0.75em !important; }
.ck-editor__editable ul, .ck-content ul { margin: 0.5em 0 1em 1.25em !important; }
.ck-editor__editable ol, .ck-content ol { margin: 0.5em 0 1em 1.25em !important; }
.ck-editor__editable li, .ck-content li { margin-bottom: 0.25em !important; }
.ck-editor__editable a, .ck-content a { color: #4f46e5 !important; text-decoration: underline !important; }

/* CKEditor toolbar */
.ck.ck-toolbar {
  background-color: #f9fafb !important;
  border-color: #e5e7eb !important;
}

.ck.ck-button:not(.ck-disabled):hover,
.ck.ck-button.ck-on {
  background-color: #f3f4f6 !important;
}

/* Partners section – carousel auto loop (soldan sağa sürekli kayar) */
@keyframes partners-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-partners-scroll {
  animation: partners-scroll 120s linear infinite;
  will-change: transform;
}
/* Hover'da da kaymaya devam etsin (hiç durmasın) */
.animate-partners-scroll:hover {
  animation-play-state: running;
}

/* Expertise section – carousel mask sadece desktop (mobil: viewport tek kart, fade yok) */
@media (min-width: 640px) {
  .expertise-carousel-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  }
}

/* Expertise section – ülke kartları carousel (soldan sağa, sağ/sol fade) */
@keyframes expertise-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.animate-expertise-scroll {
  animation: expertise-scroll 45s linear infinite;
  will-change: transform;
}
.animate-expertise-scroll:hover {
  animation-play-state: running;
}

/* ═══════════════════════════════════════════════════════════════════
   GloBridge – Ortak yardımcı sınıflar (Anasayfa bileşenlerinde tekrar eden stiller)
   ═══════════════════════════════════════════════════════════════════ */

/* Section container – max genişlik ve yatay padding */
.gb-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem; /* max-w-7xl = 1280px */
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .gb-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .gb-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Section wrapper – beyaz arka plan, dikey padding. Mobilde daha sıkı (SSS–form vb. boşluk az) */
.gb-section {
  background-color: #ffffff;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
@media (min-width: 640px) {
  .gb-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* Section wrapper – arka plan rengi yok (Figma 22:932 vb.), sadece padding. Mobilde gb-section ile aynı sıkılık */
.gb-section-no-bg {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
@media (min-width: 640px) {
  .gb-section-no-bg {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

/* CTA buton – koyu arkaplan, pill şeklinde (FinancialProcess, FAQ, Contact, Blog'da ortak) */
.gb-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid #D9DFE8;
  background-color: #001D3D;
  padding: 0.75rem 1.25rem;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.42px;
  color: #FCF7FF;
  transition: opacity 0.2s;
}
.gb-cta-btn:hover {
  opacity: 0.9;
}

/* CTA buton ikon dairesi (ok ikonu arka planı) */
.gb-cta-icon {
  display: flex;
  height: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: #FCF7FF;
}

/* Section başlık – iki satır (koyu + gri) ortak kalıp */
.gb-heading-dark {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -2px;
  color: #000814;
}
@media (min-width: 640px) {
  .gb-heading-dark {
    font-size: 38px;
  }
}
.gb-heading-muted {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -2px;
  color: #697289;
}
@media (min-width: 640px) {
  .gb-heading-muted {
    font-size: 38px;
  }
}

/* Hizmet sayfası içerik alanı – HTML (CKEditor çıktısı) tipografi ve renkler */
.service-content {
  max-width: none;
  color: #374151;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4,
.service-content h5,
.service-content h6 {
  color: #000814;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.service-content h1 { font-size: 1.75rem; }
.service-content h2 { font-size: 1.5rem; margin-top: 1.75em; }
.service-content h3 { font-size: 1.25rem; margin-top: 1.25em; }
.service-content h4 { font-size: 1.125rem; }
.service-content p {
  color: #4b5563;
  margin-bottom: 0.875em;
}
.service-content p:last-child { margin-bottom: 0; }
.service-content ul,
.service-content ol {
  color: #4b5563;
  margin: 0.5em 0 1em 1.5em;
  padding-left: 1.5em;
  list-style-position: outside;
}
.service-content ul {
  list-style-type: disc;
}
.service-content ol {
  list-style-type: decimal;
}
.service-content li {
  margin-bottom: 0.35em;
  display: list-item;
  list-style-position: outside;
}
.service-content strong,
.service-content b { color: #000814; font-weight: 600; }
.service-content a {
  color: #001D3D;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.service-content a:hover { opacity: 0.85; }
.service-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 1em 0;
  color: #6b7280;
  font-style: italic;
}
.service-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.service-content th,
.service-content td {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  text-align: left;
  color: #374151;
}
.service-content th {
  background-color: #e5e7eb;
  color: #000814;
  font-weight: 600;
}
.service-content tbody tr:nth-child(even) {
  background-color: #f9fafb;
}
.service-content tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

/* Blog post içeriği – tablolar (okunaklı metin ve çerçeve) */
.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.blog-post-content th,
.blog-post-content td {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  text-align: left;
  color: #374151;
}
.blog-post-content th {
  background-color: #e5e7eb;
  color: #000814;
  font-weight: 600;
}
.blog-post-content tbody tr:nth-child(even) {
  background-color: #f9fafb;
}
.blog-post-content tbody tr:nth-child(odd) {
  background-color: #ffffff;
}
