/*
Theme Name: Dolmuş Hareketi
Theme URI: https://dolmushareketi.com
Author: Dolmuş Hareketi
Description: Şehir içi ve şehirlerarası dolmuş, minibüs ve otobüs saatleri için özel tema.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dolmus-hareketi
*/

:root {
  --navy: #103A5E;
  --blue: #2E6FA3;
  --bg: #F7F9FB;
  --badge-bg: #E6EEF5;
  --ink: #0F1F33;
  --muted: #475569;
  --muted-2: #64748B;
  --border: #E2E8F0;
  --border-2: #CBD5E1;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
button, select, input { font-family: inherit; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.site-logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { color: #334155; font-size: 15px; font-weight: 600; }
.site-nav .btn-outline {
  padding: 9px 18px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.nav-toggle { display: none; }

/* Hero */
.hero {
  background: var(--bg);
  padding: 64px 0 72px;
}
.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.hero__content { flex: 1; display: flex; flex-direction: column; gap: 24px; }
.eyebrow {
  width: fit-content;
  background: var(--badge-bg);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  padding: 7px 14px;
  border-radius: 999px;
}
.hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.16;
  font-weight: 800;
  color: var(--ink);
  max-width: 560px;
}
.hero p.lede {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 500px;
}
.hero__visual { flex: 1; display: flex; align-items: center; justify-content: center; }

/* Search card */
.search-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 10px 28px rgba(16, 58, 94, 0.08);
  max-width: 520px;
}
.search-card__row { display: flex; gap: 12px; }
.field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.4px;
}
.field select {
  padding: 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}
.search-card button {
  width: 100%;
  padding: 14px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.search-card button:hover { background: #0C2E4A; opacity: 1; }

.trust-row { display: flex; gap: 28px; }
.trust-row span { font-size: 13.5px; color: var(--muted-2); font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section h2 {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 8px;
}
.section .section-lede { color: var(--muted); font-size: 16px; margin: 0 0 32px; max-width: 640px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.route-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  transition: box-shadow .15s ease, transform .15s ease;
}
.route-card:hover { box-shadow: 0 12px 24px rgba(16,58,94,0.10); transform: translateY(-2px); opacity: 1; }
.route-card__thumb {
  display: block;
  margin: -22px -22px 4px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.route-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.route-card .route-cat {
  font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.3px;
}
.route-card h3 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.route-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Single route article */
.route-header { background: var(--bg); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.route-header .route-cat {
  font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.3px;
}
.route-header h1 { margin: 12px 0 10px; font-size: 36px; font-weight: 800; color: var(--ink); max-width: 780px; }
.route-header .updated { font-size: 13.5px; color: var(--muted-2); }

.route-layout {
  display: flex;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: flex-start;
}
.route-content { flex: 2; font-size: 16.5px; color: #1E293B; }
.route-content p { margin: 0 0 18px; }
.route-thumb {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
}
.route-thumb img { width: 100%; height: auto; display: block; }
.route-content h2 { font-size: 24px; margin: 36px 0 14px; color: var(--ink); }
.route-content h3 { font-size: 19px; margin: 28px 0 10px; color: var(--ink); }

.route-data {
  flex: 1;
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 28px rgba(16, 58, 94, 0.06);
}
.route-data h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.route-data table { width: 100%; border-collapse: collapse; }
.route-data table td { padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.route-data table td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.route-data table tr:last-child td { border-bottom: none; }
.route-data .price { font-size: 22px; font-weight: 800; color: var(--navy); }
.route-data .disclaimer { font-size: 12px; color: var(--muted-2); }

/* Sefer sıklığı özet kartı — sabit aralıklı saatler için dev tablo yerine */
.frequency-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0 8px;
}
.frequency-card p { margin: 0 0 6px; font-size: 15.5px; color: var(--ink); }
.frequency-card p:last-child { margin-bottom: 0; }
.frequency-card strong { color: var(--navy); }

/* Kalkış saatleri — tam genişlik, CSS ile zenginleştirilmiş tablo */
.schedule-table-wrap {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 20px 0 8px;
  max-height: 520px;
  overflow-y: auto;
}
table.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
table.schedule-table th {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 12px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
table.schedule-table th:last-child { border-right: none; }
table.schedule-table td {
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
table.schedule-table td:last-child { border-right: none; }
table.schedule-table tr:nth-child(even) td { background: var(--bg); }
table.schedule-table tbody tr:hover { background: var(--badge-bg); }
.route-content .disclaimer { font-size: 13px; color: var(--muted-2); margin: 0 0 24px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #CBD5E1;
  padding: 48px 0 28px;
  margin-top: 48px;
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer .site-logo { color: #fff; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { font-size: 14px; color: #CBD5E1; }
.site-footer .copyright { padding-top: 20px; font-size: 13px; color: #94A3B8; }

/* Page (about/contact/privacy) */
.page-content { padding: 56px 0 72px; max-width: 760px; }
.page-content h1 { font-size: 34px; font-weight: 800; margin: 0 0 24px; }

@media (max-width: 900px) {
  .hero__inner { flex-direction: column; }
  .hero__visual { order: -1; }
  .hero h1 { font-size: 34px; }
  .card-grid { grid-template-columns: 1fr; }
  .route-layout { flex-direction: column; }
  .route-data { position: static; width: 100%; }
  .site-nav { display: none; }
}
