/* Rayİst yeni tema — iç sayfalar için ortak katman.
   Mevcut rayist-site-tools.css / rayist-content.css dosyalarının üzerine yüklenir;
   içerik ve HTML yapısı değişmeden yalnızca görünümü günceller. */

:root {
  --r-bg: #07030d;
  --r-surface: #0f0a18;
  --r-line: rgba(255, 255, 255, 0.08);
  --r-line-strong: rgba(255, 255, 255, 0.16);
  --r-ink: #f5f3f7;
  --r-muted: rgba(245, 243, 247, 0.62);
  --r-faint: rgba(245, 243, 247, 0.38);
  --r-accent: #ff6b2c;
  --r-accent-soft: #ffb37a;
  --r-violet: #8400ff;
  --r-violet-soft: #c9a7ff;
  --r-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --r-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

html body {
  background: var(--r-bg);
  color: var(--r-ink);
  font-family: var(--r-sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 107, 44, 0.35); }

/* --- Arka plan: fotoğraf/silüet yerine ızgara + ışıma --- */
html body .rayist-shell::before,
html body .bg-overlay {
  background:
    radial-gradient(50% 40% at 50% 0, rgba(132, 0, 255, 0.3), transparent 70%),
    radial-gradient(32% 26% at 50% 4%, rgba(255, 107, 44, 0.18), transparent 70%),
    var(--r-bg);
  filter: none;
  transform: none;
}
html body .rayist-shell::after,
html body .bg-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  height: auto;
  z-index: -2;
  opacity: 1;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: top center;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 10%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 10%, #000 20%, transparent 75%);
  pointer-events: none;
}
html body .rayist-shell > main::before,
html body .rayist-shell > footer::before { display: none; }

/* --- Tipografi --- */
html body .font-black { font-weight: 600; }
html body .font-extrabold { font-weight: 600; }
html body .font-sans, html body.font-sans { font-family: var(--r-sans); }
html body h1 { letter-spacing: -0.04em; line-height: 1.04; }
html body h2 { letter-spacing: -0.03em; }
html body .gradient-text {
  font-family: var(--r-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.08em;
  padding-inline-end: 0.06em;
  background: linear-gradient(100deg, var(--r-accent-soft) 10%, var(--r-accent) 55%, var(--r-violet-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html body .muted, html body .text-gray-300, html body .text-gray-400 { color: var(--r-muted); }
html body .text-gray-500 { color: var(--r-faint); }

/* --- Renk vurguları: sarı → turuncu/şeftali --- */
html body .text-\[\#ffd93d\],
html body .hover\:text-\[\#ffd93d\]:hover,
html body .text-rayist-gold,
html body .text-yellow-200\/80,
html body .text-yellow-100 { color: var(--r-accent-soft); }
html body .text-rayist-orange, html body .text-\[\#ff6b6b\] { color: var(--r-accent); }
html body .border-\[\#ffd93d\]\/50,
html body .border-\[\#ffd93d\]\/30,
html body .border-rayist-gold\/50,
html body .border-rayist-gold\/30,
html body .border-yellow-300\/30 { border-color: var(--r-line-strong); }
html body .bg-yellow-300\/10, html body .bg-rayist-gold\/5 { background-color: rgba(255, 107, 44, 0.08); }
html body .bg-rayist-gold { background-color: var(--r-accent-soft); }
html body .border-rayist-gold { border-color: rgba(255, 179, 122, 0.55); }

/* --- Navigasyon --- */
html body #navbar {
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
html body #navbar .h-24 { height: 4.5rem; }
html body #navbar.bg-\[\#1a0b2e\]\/80,
html body #navbar.mobile-menu-open {
  background: rgba(7, 3, 13, 0.72) !important;
  border-bottom-color: var(--r-line) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
html body nav img.rounded-full {
  width: 2.6rem !important;
  height: 2.6rem !important;
  min-width: 2.6rem !important;
  min-height: 2.6rem !important;
  border: 0 !important;
  box-shadow: 0 0 0 1px var(--r-line-strong), 0 6px 24px rgba(255, 107, 44, 0.25) !important;
}
html body #navbar a.rounded-md {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--r-muted);
  padding-inline: 0.7rem;
}
html body #navbar a.rounded-md:hover { color: var(--r-ink); }
html body #navbar a.rounded-md.text-\[\#ffd93d\] { color: var(--r-ink); font-weight: 500; position: relative; }
html body #navbar .md\:flex a.rounded-md.text-\[\#ffd93d\]::after {
  content: ""; position: absolute; left: 50%; bottom: -0.1rem; width: 4px; height: 4px;
  border-radius: 99px; background: var(--r-accent); transform: translateX(-50%);
}
html body #navbar .glass-btn-gold,
html body .glass-btn.glass-btn-gold {
  background: var(--r-ink);
  color: #0b0612 !important;
  border-color: var(--r-ink);
  font-weight: 600;
  font-size: 0.8125rem;
  box-shadow: none;
}
html body #navbar .glass-btn-gold:hover,
html body .glass-btn.glass-btn-gold:hover {
  background: #fff;
  box-shadow: 0 8px 30px rgba(255, 179, 122, 0.35);
}
html body #mobile-menu {
  background: rgba(7, 3, 13, 0.97) !important;
  border: 0;
  border-bottom: 1px solid var(--r-line);
  border-radius: 0;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
html body #mobile-menu a { color: var(--r-muted); border-bottom: 1px solid var(--r-line); border-radius: 0; }
html body #mobile-menu a:last-child { border-bottom: 0; }
html body #mobile-menu a:hover, html body #mobile-menu a.text-\[\#ffd93d\] { color: var(--r-ink); }
html body .lang-btn { font-family: var(--r-mono); font-weight: 400; font-size: 11px; }
html body .lang-btn:hover, html body .lang-btn.active { color: var(--r-ink); }
html body .nav-link:hover, html body .nav-link.active { color: var(--r-ink); background: rgba(255, 255, 255, 0.08); }

/* --- Kartlar --- */
html body .glass-card {
  background: var(--r-surface);
  border: 1px solid var(--r-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html body a.glass-card:hover,
html body .guide-card:hover,
html body .related-card:hover,
html body .donation-btn:hover {
  border-color: var(--r-line-strong);
  background: #140e1f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.35);
}
html body .donation-btn { background: var(--r-surface); border-color: var(--r-line); -webkit-backdrop-filter: none; backdrop-filter: none; }
html body .donation-btn .amount {
  background: linear-gradient(100deg, var(--r-accent-soft), var(--r-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-weight: 600; letter-spacing: -0.03em;
}
html body .content-hero::after {
  background: radial-gradient(circle, rgba(132, 0, 255, 0.22), transparent 68%);
}
html body .content-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 0% 100%, rgba(255, 107, 44, 0.1), transparent 70%);
}

/* --- Rehber içerikleri --- */
html body .content-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--r-mono); font-weight: 400; font-size: 0.72rem;
  letter-spacing: 0.14em; color: var(--r-faint);
}
html body .content-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 99px;
  background: var(--r-accent); box-shadow: 0 0 12px var(--r-accent);
}
html body .content-meta span { border-color: var(--r-line); background: rgba(255, 255, 255, 0.025); font-family: var(--r-mono); font-size: 0.74rem; }
html body .breadcrumb { font-family: var(--r-mono); font-size: 0.74rem; color: var(--r-faint); }
html body .breadcrumb a:hover, html body .link-list a:hover { color: var(--r-ink); }
html body .article-body { color: rgba(245, 243, 247, 0.74); }
html body .article-body h2 { font-weight: 600; letter-spacing: -0.03em; }
html body .article-note {
  border-left-color: var(--r-accent);
  background: linear-gradient(90deg, rgba(255, 107, 44, 0.09), rgba(255, 107, 44, 0.02));
}
html body .tip-list i, html body .faq-question i { color: var(--r-accent-soft); }
html body .side-card h2, html body .side-card h3, html body .faq-question { font-weight: 600; letter-spacing: -0.015em; }
html body .guide-icon {
  background: rgba(255, 107, 44, 0.1);
  border-color: rgba(255, 107, 44, 0.22);
  color: var(--r-accent-soft);
}
html body .guide-card h2, html body .related-card strong { font-weight: 600; letter-spacing: -0.02em; }
html body .guide-card .read-more, html body .compact-content-block a, html body .policy-body a { color: var(--r-accent-soft); font-weight: 500; }
html body .related-card span { font-family: var(--r-mono); font-weight: 400; color: var(--r-faint); }
html body .source-box { background: rgba(132, 0, 255, 0.06); border-color: rgba(201, 167, 255, 0.18); }
html body .source-box a { color: var(--r-violet-soft); }
html body .faq-item.open { border-color: var(--r-line-strong); }

/* --- Araç sayfaları (sefer saatleri, hat durumları, canlı takip) --- */
html body .glass-input { background: rgba(255, 255, 255, 0.03); border-color: var(--r-line-strong); }
html body .glass-input:focus { border-color: rgba(255, 179, 122, 0.7); box-shadow: 0 0 0 4px rgba(255, 107, 44, 0.14); }
html body .rayist-btn {
  border-radius: 999px;
  border-color: var(--r-ink);
  background: var(--r-ink);
  color: #0b0612;
  font-weight: 600;
}
html body .rayist-btn:hover { background: #fff; border-color: #fff; box-shadow: 0 10px 34px rgba(255, 179, 122, 0.35); }
html body .rayist-btn::before { display: none; }
html body .rayist-btn-blue { background: rgba(255, 255, 255, 0.04); border-color: var(--r-line-strong); color: var(--r-ink); }
html body .rayist-btn-blue:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); box-shadow: none; }
html body .rayist-btn:disabled { opacity: 0.45; }
html body .time-chip.is-nearest { background: linear-gradient(135deg, var(--r-accent-soft), var(--r-accent)); border-color: var(--r-accent-soft); }
html body .route-preview-map {
  background:
    radial-gradient(circle at 18% 20%, rgba(132, 0, 255, 0.18), transparent 30%),
    radial-gradient(circle at 78% 68%, rgba(255, 107, 44, 0.16), transparent 32%),
    linear-gradient(145deg, #0d0816, #07030d);
  border-color: var(--r-line);
}
html body .route-map-loading i { color: var(--r-accent-soft); }
html body .premium-feature { background: var(--r-surface); border-color: var(--r-line); }

/* --- Footer --- */
html body footer { background: transparent !important; -webkit-backdrop-filter: none; backdrop-filter: none; border-top: 1px solid var(--r-line); }
html body footer .border-white\/10 { border-color: var(--r-line); }
html body footer img.rounded-full { width: 3rem; height: 3rem; border: 0; box-shadow: 0 0 0 1px var(--r-line-strong); }
html body .content-footer-links a { color: var(--r-muted); transition: color 0.2s; }
html body .content-footer-links a:hover { color: var(--r-ink); }

@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
