/*
Theme Name: HT Transportation
Theme URI: https://httransportation.com
Author: HT Transportation
Author URI: https://httransportation.com
Description: Şehirlerarası otobüs taşımacılık yönetim sistemi tanıtım teması. Biletleme, hakediş, kontör ve raporlama.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: httransportation
Tags: one-page, custom-menu, translation-ready
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ═══════════════════════════════════════════
   HT Transportation — Tanıtım Sitesi Stilleri
   ═══════════════════════════════════════════ */

:root {
  --primary-900: #1a365d;
  --primary-700: #2a4a7f;
  --primary-500: #3182ce;
  --primary-300: #63a3e8;
  --primary-100: #ebf4ff;
  --accent: #f6ad55;
  --accent-dark: #dd8a30;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --border: #e2e8f0;
  --success: #38a169;
  --danger: #e53e3e;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(26,54,93,0.08);
  --shadow-lg: 0 8px 40px rgba(26,54,93,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}

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

/* ── Navbar ─────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: var(--primary-900);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 44px;
}

.navbar-logo .logo-light { display: block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.nav-links .btn-docs {
  background: var(--accent);
  color: var(--primary-900);
  font-weight: 600;
}

.nav-links .btn-docs:hover {
  background: var(--accent-dark);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ───────────────────────────────── */

.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('img/hero-bg.svg') center/cover no-repeat;
  opacity: 0.6;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 550px;
  margin-bottom: 36px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-900);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(246,173,85,0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ── Stats Strip ────────────────────────── */

.stats {
  background: var(--primary-900);
  padding: 40px 0;
  border-bottom: 3px solid var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ── Section Common ─────────────────────── */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-900);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ── Features Grid ──────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-300);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  background: var(--primary-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card .icon img {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── How It Works ───────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(49,130,206,0.3);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ── Roles ──────────────────────────────── */

.roles-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.role-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.role-tab:hover, .role-tab.active {
  border-color: var(--primary-500);
  background: var(--primary-100);
  color: var(--primary-500);
}

.role-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: none;
}

.role-content.active {
  display: block;
}

.role-content h3 {
  font-size: 1.3rem;
  color: var(--primary-900);
  margin-bottom: 8px;
}

.role-content .role-desc {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-blue { background: var(--primary-100); color: var(--primary-500); }
.badge-orange { background: #fef3e2; color: var(--accent-dark); }
.badge-green { background: #f0fff4; color: var(--success); }
.badge-gray { background: #edf2f7; color: var(--text-light); }

/* ── Advantages ─────────────────────────── */

.advantage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
}

.advantage:last-child { margin-bottom: 0; }

.advantage.reverse { direction: rtl; }
.advantage.reverse > * { direction: ltr; }

.advantage-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-900);
  margin-bottom: 16px;
}

.advantage-text ul {
  list-style: none;
  padding: 0;
}

.advantage-text li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
}

.advantage-text li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-100);
  border: 3px solid var(--primary-500);
}

.advantage-visual {
  background: var(--primary-100);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}

.advantage-visual .visual-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.refund-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.refund-table th, .refund-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.refund-table th {
  font-weight: 700;
  color: var(--primary-900);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.refund-table .rate-100 { color: var(--success); font-weight: 700; }
.refund-table .rate-80 { color: #3182ce; font-weight: 700; }
.refund-table .rate-50 { color: var(--accent-dark); font-weight: 700; }
.refund-table .rate-0 { color: var(--danger); font-weight: 700; }

/* ── Tech Stack ─────────────────────────── */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.tech-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary-900);
  transition: 0.2s;
}

.tech-item:hover {
  border-color: var(--primary-500);
  box-shadow: var(--shadow);
}

/* ── Modules Accordion ──────────────────── */

.accordion-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.2s;
}

.accordion-header:hover {
  background: var(--primary-100);
}

.accordion-header .arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--text-light);
}

.accordion-item.open .accordion-header .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
}

.accordion-item.open .accordion-body {
  padding: 0 20px 16px;
  max-height: 200px;
}

.accordion-body p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── Footer ─────────────────────────────── */

.footer {
  background: var(--primary-900);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand img { height: 36px; margin-bottom: 12px; }

.footer-brand p {
  font-size: 0.88rem;
  max-width: 300px;
}

.footer h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .advantage { grid-template-columns: 1fr; gap: 32px; }
  .advantage.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-900);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .nav-links a { padding: 12px 16px; width: 100%; }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item .stat-number { font-size: 2rem; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════
   docs.html Stilleri
   ═══════════════════════════════════════════ */

/* ── Docs Layout ─────────────────────────── */
.docs-layout {
  margin-top: 72px;
  min-height: calc(100vh - 72px);
}

.docs-sidebar {
  position: fixed;
  top: 72px;
  left: 0;
  width: 280px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  z-index: 100;
}

.docs-sidebar h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 12px 24px 8px;
}

.docs-sidebar a {
  display: block;
  padding: 6px 24px 6px 32px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.docs-sidebar a:hover, .docs-sidebar a.active {
  background: var(--primary-100);
  color: var(--primary-500);
  border-left-color: var(--primary-500);
}

.docs-content {
  margin-left: 280px;
  padding: 40px 56px 80px;
  box-sizing: border-box;
  width: calc(100% - 280px);
  max-width: 100%;
  overflow-x: hidden;
}

.docs-content h1 {
  font-size: 2rem;
  color: var(--primary-900);
  margin-bottom: 8px;
}

.docs-content h2 {
  font-size: 1.5rem;
  color: var(--primary-900);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.docs-content h3 {
  font-size: 1.15rem;
  color: var(--primary-700);
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85rem;
}

.docs-content .table-wrap {
  width: 100%;
  overflow-x: auto;
}

.docs-content th, .docs-content td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
}

.docs-content th {
  background: var(--bg-alt);
  font-weight: 700;
  color: var(--primary-900);
}

.method-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: monospace;
}

.method-get { background: #e6fffa; color: #234e52; }
.method-post { background: #ebf4ff; color: #2a4365; }
.method-put { background: #fefcbf; color: #744210; }
.method-delete { background: #fed7d7; color: #742a2a; }

.endpoint-path {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.82rem;
  color: var(--primary-700);
}

pre {
  background: #1a202c;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  overflow-x: auto;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  line-height: 1.5;
  margin: 12px 0 20px;
  max-width: 100%;
}

code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 0.85em;
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
}

pre code {
  background: none;
  padding: 0;
}

.json-key { color: #63b3ed; }
.json-string { color: #68d391; }
.json-number { color: #f6ad55; }

.docs-toggle-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-500);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

/* ── Docs Tablet ── */
@media (max-width: 1023px) {
  .docs-sidebar { width: 240px; }
  .docs-content {
    margin-left: 240px;
    width: calc(100% - 240px);
    padding: 32px 32px 80px;
  }
}

/* ── Docs Mobile ── */
@media (max-width: 767px) {
  .docs-sidebar {
    left: -280px;
    width: 280px;
    z-index: 1001;
    transition: left 0.3s;
  }

  .docs-sidebar.open { left: 0; }

  .docs-content {
    margin-left: 0;
    width: 100%;
    padding: 24px 16px 60px;
  }

  .docs-toggle-btn { display: block; }
}
