/* ==========================================================================
   KAYKODER — Kayseri Klasik Otomobilciler Derneği
   Ana stylesheet
   ========================================================================== */

:root {
  /* Renkler */
  --color-primary: #11458F;
  --color-primary-dark: #0D3673;
  --color-primary-darker: #0A2C5C;
  --color-ink: #14181F;
  --color-text: #1B1F27;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-border: #E5E7EB;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F2F3F5;
  --color-surface-dark: #16191F;
  --color-accent-red: #D32F2F;

  /* Tipografi */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Düzen */
  --max-width: 1180px;
  --header-top-h: 40px;
  --header-main-h: 92px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(20, 24, 31, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 24, 31, 0.10);
  --shadow-lg: 0 20px 48px rgba(20, 24, 31, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
}

a:visited:not(.btn) { color: inherit; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-ink);
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

@media (min-width: 1400px) {
  .container { max-width: 1240px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
}

/* ==========================================================================
   Butonlar
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-dark {
  background: var(--color-ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }

.btn-light {
  background: #fff;
  color: var(--color-ink);
}
.btn-light:hover { background: var(--color-surface-muted); }

.btn-block { width: 100%; }

.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ==========================================================================
   Üst bilgi çubuğu (topbar)
   ========================================================================== */

.topbar {
  background: var(--color-primary);
  color: #fff;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-top-h);
  font-size: 13px;
}

.topbar-support {
  display: flex;
  align-items: center;
  gap: 22px;
  opacity: 0.95;
}
.topbar-support .tb-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}
.topbar-support .tb-item:hover { opacity: 0.85; }
.topbar-support .tb-item svg { flex-shrink: 0; }
.topbar-support strong {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
}

.lang-select svg { width: 12px; height: 12px; }

.topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.topbar-social a:hover { background: rgba(255,255,255,0.3); }
.topbar-social svg { width: 13px; height: 13px; }

/* ==========================================================================
   Ana header
   ========================================================================== */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 200;
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-main-h);
  gap: 24px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  height: 100%;
}

.brand img {
  height: var(--logo-h, 80px);
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary);
}

.main-nav svg { width: 11px; height: 11px; margin-top: 1px; }

.has-dropdown { position: relative; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}

/* Link ile dropdown arasındaki boşluğu görünmez bir köprüyle kapatıyoruz,
   böylece mouse aşağı inerken hover kaybolmuyor. */
.has-dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
}
.dropdown-menu a:hover {
  background: var(--color-surface-muted);
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(.22,.9,.34,1), opacity 0.3s ease, padding 0.4s ease;
}
.mobile-nav.open {
  max-height: 640px;
  opacity: 1;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15.5px;
  font-weight: 500;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav.open a { transform: translateY(0); opacity: 1; }
.mobile-nav.open a:nth-child(1) { transition-delay: .05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: .09s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .13s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .17s; }
.mobile-nav.open a:nth-child(5) { transition-delay: .21s; }
.mobile-nav.open a:nth-child(6) { transition-delay: .25s; }
.mobile-nav.open a:nth-child(7) { transition-delay: .29s; }
.mobile-nav.open a:nth-child(8) { transition-delay: .33s; }
.mobile-nav.open a:nth-child(9) { transition-delay: .37s; }
.mobile-nav.open a:nth-child(10) { transition-delay: .41s; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--color-primary); }

/* ==========================================================================
   Sayfa başlığı (kurumsal alt sayfalar üstü mavi blok)
   ========================================================================== */

.page-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 56px 0 64px;
}

.page-banner .eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 14px;
  display: block;
}

.page-banner h1 {
  color: #fff;
  font-size: 44px;
  margin-bottom: 14px;
}

.page-banner p {
  font-size: 16.5px;
  opacity: 0.88;
  max-width: 560px;
  line-height: 1.55;
}

.page-banner.with-image {
  position: relative;
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-banner.with-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,20,40,0.25) 0%, rgba(8,16,32,0.78) 100%);
  z-index: 1;
}
.page-banner.with-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-banner.with-image .container {
  position: relative;
  z-index: 2;
  padding-bottom: 28px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.banner-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date-chip {
  background: #fff;
  color: var(--color-ink);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1.1;
}
.date-chip .day { font-size: 19px; font-weight: 700; }
.date-chip .month { font-size: 10.5px; font-weight: 600; color: var(--color-accent-red); text-transform: uppercase; }
.banner-title-row h1 { font-size: 32px; color: #fff; margin: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-surface-muted);
  padding-top: 64px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 48px;
}

.footer-brand img {
  height: 78px;
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-primary); }
.footer-social svg { width: 15px; height: 15px; fill: #fff; }

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--color-ink);
}

.footer-col ul li { margin-bottom: 13px; }
.footer-col ul li a {
  font-size: 14.5px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--color-primary); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-contact-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-contact-item .icon svg { width: 15px; height: 15px; color: var(--color-primary); }
.footer-contact-item .label { font-size: 12px; color: var(--color-text-light); margin-bottom: 2px; }
.footer-contact-item .value { font-size: 14px; font-weight: 600; color: var(--color-ink); line-height: 1.4; }

.footer-bottom {
  border-top: 1px solid #DEDFE2;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom .powered {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--color-ink);
}

.footer-bottom .copyright {
  font-size: 14px;
  color: var(--color-text-muted);
}
.footer-bottom .copyright strong { color: var(--color-ink); }

/* ==========================================================================
   Genel bölüm yardımcıları
   ========================================================================== */

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.bg-muted { background: var(--color-surface-muted); }
.bg-dark { background: var(--color-surface-dark); color: #fff; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-accent-red);
  margin-bottom: 12px;
}
.eyebrow.is-primary { color: var(--color-primary); }
.eyebrow.is-muted { color: var(--color-text-light); }

.section-head h2 {
  font-size: 34px;
  margin: 0;
}

.section-sub {
  color: var(--color-text-muted);
  font-size: 15.5px;
  margin-top: 8px;
  max-width: 480px;
}

.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Breadcrumb chips / pill tabs
   ========================================================================== */

.pill-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill-tab {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  transition: all 0.2s ease;
}
.pill-tab:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pill-tab.active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}
.pill-tab.active.is-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ==========================================================================
   Kart bileşenleri
   ========================================================================== */

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-muted);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 22px 24px 26px; }
.card-eyebrow { font-size: 12px; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.card-body h3 { font-size: 18.5px; margin-bottom: 8px; }
.card-body p { font-size: 14.5px; color: var(--color-text-muted); line-height: 1.55; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--color-ink);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* Responsive grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Kaydırma animasyonları (scroll reveal) — tüm sayfalarda kullanılır
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .45s cubic-bezier(.22,.9,.34,1), transform .45s cubic-bezier(.22,.9,.34,1);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-zoom  { transform: scale(.93); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* İçerik henüz eklenmediğinde gösterilen "yakında" kutusu */
.coming-soon {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.coming-soon p { color: var(--color-text-muted); font-size: 18px; margin: 0; }
.coming-soon strong { color: var(--color-primary); font-weight: 700; }

/* ==========================================================================
   Skip link / a11y
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .topbar-support .tb-mail { display: none; }   /* mail sadece masaüstünde */
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 8px 13px; font-size: 13px; }
  .brand img { height: 62px; }                  /* mobil logo biraz daha büyük */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  /* Yatay taşmayı önlemek için mobilde yalnızca dikey beliriş */
  .reveal-left, .reveal-right { transform: translateY(28px); }
}
