/*
Theme Name: Kurye Muhasebesi
Theme URI: https://kuryemuhasebesi.com/
Author: Kurye Muhasebesi
Author URI: https://kuryemuhasebesi.com/
Description: Trendyol Go, Yemeksepeti, Getir, Viggo, Paket Taxi ve tüm esnaf kuryeler için özel tasarlanmış şahıs şirketi kuruluşu ve muhasebe hizmeti teması. SEO uyumlu, ultra hızlı ve modern.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: kurye
*/

/* Smooth Scroll & Font Settings */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  font-family: 'Montserrat', sans-serif;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}

/* Continuous Infinite Logo Marquee */
@keyframes logoMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex !important;
  width: max-content !important;
  will-change: transform;
  animation: logoMarquee 75s linear infinite !important;
}

.animate-marquee:hover {
  animation-play-state: paused !important;
}


/* Sabit header altında kalmaması için çapa (#) hedeflerine boşluk */
section[id] {
  scroll-margin-top: 5rem;
}

/* ==========================================================
   MOBİL TAŞMA (yatay kayma) DÜZELTMESİ
   Header satırı (logo + Hemen Ara + menü butonu) dar ekranlara
   sığmadığı için sayfa sağa taşıyordu.
   ========================================================== */
@media (max-width: 639px) {
  /* Logo alanı küçülebilsin */
  .kurye-logo {
    flex-shrink: 1 !important;
    min-width: 0;
  }
  .kurye-logo > a {
    gap: 0.5rem;
    min-width: 0;
  }
  .kurye-logo > a > div:first-child {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
  }
  .kurye-logo > a > div:last-child {
    min-width: 0;
  }
  .kurye-logo .text-xl {
    font-size: 1rem;
    line-height: 1.25rem;
  }
  .kurye-logo .text-\[10px\] {
    font-size: 8px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Header "Hemen Ara" butonu mobilde sadece ikon (altta sabit Hemen Ara butonu zaten var) */
  .kurye-header-call {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    justify-content: center;
  }
  .kurye-header-call .kurye-header-call-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (max-width: 359px) {
  #site-header .h-20 {
    gap: 0.5rem;
  }
  .kurye-logo > a > div:first-child,
  .kurye-header-call,
  #mobile-menu-button {
    width: 2.25rem;
    height: 2.25rem;
  }
  #site-header .h-20 > div:last-child {
    gap: 0.375rem;
  }
  .kurye-logo .text-xl {
    font-size: 0.8125rem;
  }
  .kurye-logo .text-\[10px\] {
    display: none;
  }
}

/* ==========================================================
   KURYE REHBERİ (BLOG): /blog/ listesi ve yazı sayfaları
   Derlenmiş tailwind.css yalnızca ana sayfadaki sınıfları içerdiği
   için blog stilleri burada, km- önekiyle tanımlıdır.
   Tasarım kuralları: flat, gölgesiz, glow yok.
   ========================================================== */
.km-blog {
  background: #f8fafc;
  color: #334155;
}
.km-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.km-wrap--narrow {
  max-width: 880px;
}
@media (min-width: 640px) {
  .km-wrap { padding: 0 1.5rem; }
}

/* Başlık alanı */
.km-article-head {
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 55%, #ffedd5 100%);
  border-bottom: 1px solid #fed7aa;
  padding: 2rem 0 2.25rem;
}
@media (min-width: 768px) {
  .km-article-head { padding: 3rem 0 3.25rem; }
}
.km-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1rem;
}
.km-breadcrumb a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: none;
}
.km-breadcrumb a:hover { text-decoration: underline; }
.km-breadcrumb [aria-current] {
  color: #475569;
  overflow-wrap: anywhere;
}
.km-article-title {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 0 1rem;
}
@media (min-width: 768px) {
  .km-article-title { font-size: 2.5rem; }
}
.km-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: #475569;
  margin: 0;
}
.km-article-meta i { color: #ea580c; margin-right: 0.25rem; }
.km-lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
  max-width: 720px;
}

/* Yazı düzeni: içerik + masaüstünde sabit iletişim kutusu */
.km-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .km-article-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3.5rem; }
}
.km-article-main { min-width: 0; max-width: 780px; }
.km-article-side { display: none; }
@media (min-width: 1024px) {
  .km-article-side { display: block; }
  .km-side-box { position: sticky; top: 6.5rem; }
}
.km-article-figure { margin: 0 0 2rem; }
.km-article-figure img { width: 100%; height: auto; border-radius: 1rem; display: block; }

/* İçindekiler */
.km-toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #ea580c;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.25rem;
}
.km-toc-title {
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
}
.km-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
  list-style: decimal;
}
.km-toc a { color: #334155; text-decoration: none; }
.km-toc a:hover { color: #ea580c; text-decoration: underline; }

/* Yazı içeriği tipografisi */
.km-prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
  overflow-wrap: break-word;
}
.km-prose > * + * { margin-top: 1.15em; }
.km-prose p { margin-bottom: 0; }
.km-prose h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 2.25em 0 0.75em;
  scroll-margin-top: 6rem;
}
@media (min-width: 768px) {
  .km-prose h2 { font-size: 1.75rem; }
}
.km-prose h3 {
  font-size: 1.1875rem;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
  margin: 1.75em 0 0.5em;
}
.km-prose h2 + *, .km-prose h3 + * { margin-top: 0; }
.km-prose a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.km-prose a:hover { color: #9a3412; }
.km-prose strong { color: #0f172a; font-weight: 700; }
.km-prose ul, .km-prose ol { padding-left: 1.4rem; margin-bottom: 0; }
.km-prose ul { list-style: disc; }
.km-prose ol { list-style: decimal; }
.km-prose li { margin-top: 0.4em; padding-left: 0.2rem; }
.km-prose li::marker { color: #ea580c; font-weight: 700; }
.km-prose em { color: #64748b; font-size: 0.9375rem; }
.km-prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}
@media (min-width: 768px) {
  .km-prose table { display: table; }
}
.km-prose th, .km-prose td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  min-width: 140px;
}
.km-prose th { background: #fff7ed; color: #0f172a; font-weight: 700; }
.km-prose tr:last-child td { border-bottom: 0; }

/* Butonlar ve iletişim kutuları */
.km-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.6rem;
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.2s;
}
.km-btn--wa { background: #10b981; color: #fff; }
.km-btn--wa:hover { background: #059669; color: #fff; }
.km-btn--call { background: #ea580c; color: #fff; }
.km-btn--call:hover { background: #c2410c; color: #fff; }
.km-cta {
  margin-top: 3rem;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 1rem;
  padding: 1.75rem;
}
.km-cta p { margin: 0 0 1.25rem; line-height: 1.6; }
.km-cta .km-cta-title {
  color: #fff;
  font-size: 1.375rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.km-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.km-side-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #ea580c;
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.km-side-title { font-weight: 800; color: #0f172a; font-size: 1.125rem; margin: 0; }
.km-side-box ul { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.km-side-box li i { color: #ea580c; margin-right: 0.4rem; }

/* Kart listesi (blog listesi ve ilgili yazılar) */
.km-related {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 3rem 0 4rem;
}
.km-related--list { background: #f8fafc; border-top: 0; }
.km-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 1.5rem;
}
.km-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .km-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .km-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.km-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}
.km-card:hover { border-color: #ea580c; }
.km-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #fff7ed;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
}
.km-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.km-card:hover .km-card-img { transform: scale(1.03); }
/* Öne çıkan görseli olmayan yazılar için markalı yer tutucu */
.km-card-media--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
}
.km-card-media--empty i { font-size: 2.5rem; }
.km-card-media--empty span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c2410c;
}
.km-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  flex-grow: 1;
}
.km-card-date { font-size: 0.75rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.04em; }
.km-card-title { font-size: 1.125rem; line-height: 1.4; font-weight: 800; color: #0f172a; }
.km-card:hover .km-card-title { color: #c2410c; }
.km-card-text { font-size: 0.9375rem; line-height: 1.6; color: #475569; flex-grow: 1; }
.km-card-more { font-size: 0.875rem; font-weight: 700; color: #ea580c; }
.km-related-all { margin: 1.75rem 0 0; }
.km-related-all a { color: #c2410c; font-weight: 700; text-decoration: none; }
.km-related-all a:hover { text-decoration: underline; }
.km-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.km-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-width: 2.5rem;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: #fff;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
}
.km-pagination .page-numbers.current { background: #ea580c; border-color: #ea580c; color: #fff; }

/* Ana sayfa: Kurye Rehberi bölümü */
.km-home-more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.km-home-more .km-btn { padding: 0.9rem 1.75rem; font-size: 1rem; }
#kurye-muhasebesi-rehberi .km-related-all { margin-top: 2.5rem; }
