:root {
  --sky: #1DA1F2;        /* üst bant: eski Twitter mavisi */
  --sky-2: #0F8DDB;
  --blue: #0C7ABF;       /* düğmeler, bağlantılar, alt bant */
  --blue-deep: #0B3B5C;  /* başlık gölgesi, koyu çizgiler */
  --pale: #EAF6FE;       /* sayfa zemini */
  --paper: #FFFFFF;
  --signal: #FFD43B;     /* glider sarısı */
  --ink: #14232E;
  --muted: #557086;
  --line: #CFE3F1;
  --route: #1A2530;     /* son görev rotası ve yazısı */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--pale);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

/* ---------- Başlık bandı ---------- */
.band {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-2) 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 1.5rem;
  padding: 0.9rem 2rem;
}
.mascot {
  justify-self: start;
  height: 110px;
  width: auto;
  animation: bob 4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(6px) rotate(1deg); } }
.brand {
  justify-self: center;
  color: var(--signal);
  text-decoration: none;
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 3px 0 var(--blue-deep), 0 6px 14px rgba(11, 59, 92, 0.35);
}
/* Logolar: iki plaka aynı boyutta, etiketler aynı hizada */
.partners {
  justify-self: end;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  --plate-w: 230px;
  --plate-h: 78px;
}
.partner { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.logo-plate {
  width: var(--plate-w);
  height: var(--plate-h);
  background: #FFFFFF;
  border-radius: 12px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(11, 59, 92, 0.15);
}
.logo-plate img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
/* İki logo görsel olarak eşit ağırlıkta dursun */
.logo-plate .logo-odtu { max-height: 76%; }
.partner-label {
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- Menü ---------- */
.nav {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
}
.nav a {
  color: var(--blue);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav a:hover { background: var(--pale); }
.nav a[aria-current="page"] { background: var(--signal); color: var(--ink); }

/* ---------- Ana sayfa ---------- */
.home {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  min-height: 520px;
}
#map { min-height: 520px; height: 100%; background: #D6EAF6; }
.panel {
  background: var(--paper);
  padding: 0 2.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.panel-photo {
  display: block;
  width: calc(100% + 4.5rem);
  max-width: none;
  margin: 0 -2.25rem 0.4rem;
  aspect-ratio: 9 / 2;
  object-fit: cover;
}
.panel h1 {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--blue-deep);
  margin: 0;
}
.status { font-size: 1.15rem; line-height: 1.55; margin: 0; }
.status mark { background: var(--signal); color: var(--ink); padding: 0 0.3em; border-radius: 3px; font-weight: 600; }
.last { font-size: 0.98rem; margin: 0; color: var(--ink); }
.last:empty { display: none; }
.last-text { padding: 0.1em 0.4em; border-radius: 3px; animation: glow 1.8s ease-in-out infinite; }
.dot-key {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  background: var(--signal); border: 2px solid var(--blue-deep);
  margin-right: 0.45em; vertical-align: -1px;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes glow { 0%, 100% { background-color: rgba(255, 212, 59, 1); } 50% { background-color: rgba(255, 212, 59, 0.2); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.9); } 70% { box-shadow: 0 0 0 9px rgba(255, 212, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 212, 59, 0); } }
.mission, .rest-note { font-size: 1rem; line-height: 1.55; margin: 0; color: #2C4558; }
.rest-note[hidden] { display: none; }
.last-mission[hidden] { display: none; }
.last-mission {
  background: var(--pale);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.last-mission p { margin: 0; }
.last-mission-title { font-weight: 700; color: var(--route); font-size: 1.05rem; }
.last-mission-detail { color: var(--route); font-size: 0.95rem; margin-top: 0.2rem !important; }
.route-key {
  display: inline-block; width: 30px; height: 0; border-top: 3px dashed var(--route);
  vertical-align: middle; margin-right: 0.55em; position: relative; top: -2px;
}
.resting .mission { display: none; }

/* ---------- İç sayfalar ---------- */
.page { flex: 1; width: 100%; max-width: 46rem; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; font-weight: 800; color: var(--blue-deep); margin: 0 0 1.5rem; }
.page h2 { font-size: 1.3rem; color: var(--blue); margin: 2.2rem 0 0.6rem; font-weight: 700; }
.page p { font-size: 1.06rem; margin: 0 0 1rem; max-width: 65ch; }
.soon { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 3rem 1.5rem; margin: 2rem 0; text-align: center; }
.soon-title { font-size: 1.5rem; font-weight: 700; color: var(--blue-deep); margin: 0 0 0.75rem !important; }
.soon p { max-width: 46ch; margin-left: auto; margin-right: auto; }

.page-wide { max-width: none; padding: 2rem 2.5rem 3rem; }
.page-wide h1 { margin-bottom: 1.25rem; }
.photos { display: flex; gap: 1rem; margin-bottom: 2rem; }
.photos figure { margin: 0; flex-basis: 0; min-width: 0; }
.photos img { width: 100%; height: auto; display: block; border-radius: 10px; }
.photos figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.5rem; }
.sections { columns: 3 19rem; column-gap: 3rem; }
.sections section { break-inside: avoid; margin-bottom: 1.5rem; }
.sections h2 { margin-top: 0; }
.page-wide p { max-width: none; }

/* ---------- Geçmiş görevler ---------- */
.missions-page h1 { margin-bottom: 0.4rem; }
.missions-intro { color: var(--muted); margin-bottom: 0.9rem !important; max-width: 70ch !important; }
.wip-note {
  display: inline-block;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem !important;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.6rem !important;
}
.wip-note[hidden] { display: none; }
.mission-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  min-height: 340px;
}
.mc-map { min-height: 340px; background: #D6EAF6; }
.mc-info { padding: 1.6rem 1.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.mc-info h2 { margin: 0 !important; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; color: var(--route) !important; font-weight: 800; }
.mc-sub { color: var(--route); font-weight: 600; margin: 0 !important; }
.mc-stats { margin: 0 !important; color: var(--route); font-size: 1.05rem; line-height: 1.7; }
.mc-stats strong { background: var(--signal); color: var(--ink); padding: 0 0.3em; border-radius: 3px; }
.mc-text { margin: 0.3rem 0 0 !important; color: #2C4558; }

/* ---------- Alt bant ---------- */
.foot {
  background: var(--blue);
  color: #E3F2FC;
  padding: 1.1rem 1.5rem;
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.sponsor { color: #FFFFFF; font-weight: 600; flex: 1 1 28rem; }

/* ---------- Dizüstü gibi alçak ekranlar: her şey kaydırmadan sığsın ---------- */
@media (max-height: 940px) and (min-width: 821px) {
  .partners { --plate-w: 190px; --plate-h: 62px; }
  .partner-label { font-size: 0.7rem; }
  .band { padding: 0.45rem 2rem; }
  .mascot { height: 76px; }
  .foot { padding: 0.55rem 1.5rem; font-size: 0.86rem; }
  .brand { font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
      .nav { padding: 0.4rem 1rem; }
  .nav a { padding: 0.45rem 0.95rem; }
  .panel-photo { aspect-ratio: 6.5 / 1; }
  .panel { gap: 0.55rem; padding-bottom: 1rem; }
  .panel h1 { font-size: 1.6rem; margin-top: 0.4rem; }
  .status { font-size: 1.05rem; }
  .mission, .rest-note { font-size: 0.94rem; line-height: 1.47; }
}

/* ---------- Telefon ---------- */
@media (max-width: 820px) {
  .band { grid-template-columns: auto auto; grid-template-areas: "kasif baslik" "logolar logolar"; justify-content: center; align-items: center; column-gap: 0.55rem; row-gap: 0.55rem; padding: 0.7rem 0.85rem 0.8rem; }
  .partners { grid-area: logolar; justify-self: center; gap: 0.75rem; --plate-w: 150px; --plate-h: 50px; }
  .partner { gap: 0.25rem; }
  .partner-label { font-size: 0.62rem; letter-spacing: 0.06em; }
  .logo-plate { border-radius: 9px; padding: 5px 9px; }
  .mascot { grid-area: kasif; justify-self: end; height: 48px; }
  .brand { grid-area: baslik; justify-self: start; font-size: 2.3rem; text-shadow: 0 2px 0 var(--blue-deep); }
      .nav { display: grid; grid-template-columns: 1fr 1fr; padding: 0.5rem; gap: 0.35rem; }
  .nav a { display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; font-size: 0.95rem; padding: 0.55rem 0.4rem; line-height: 1.25; background: var(--pale); border-radius: 10px; }
  .nav a:last-child { grid-column: 1 / 3; }

  .home { display: flex; flex-direction: column; gap: 0.75rem; background: var(--paper); min-height: 0; padding-bottom: 1.75rem; }
  .panel { display: contents; }
  .panel > * { margin-left: 1.25rem; margin-right: 1.25rem; }
  .panel h1 { order: 1; margin: 1.1rem 1.25rem 0; font-size: 1.55rem; }
  .status { order: 2; font-size: 1.05rem; }
  .last { order: 3; }
  #map { order: 4; height: 50vh; min-height: 300px; }
  .panel-photo { order: 5; width: auto; max-width: none; height: 120px; aspect-ratio: auto; margin-top: 0.5rem; margin-bottom: 0; border-radius: 10px; }
  .mission, .rest-note { order: 6; font-size: 0.98rem; }
  .last-mission { order: 3; }

  .page { padding-left: 1rem; padding-right: 1rem; }
  .page-wide { padding: 1.25rem 1rem 2rem; }
  .page-wide h1 { font-size: 1.8rem; }
  .mission-card { grid-template-columns: 1fr; }
  .mc-map { min-height: 260px; }
  .mc-info { padding: 1.1rem 1.2rem 1.3rem; }
  .photos { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; gap: 0.75rem; margin: 0 -1rem 1.5rem; padding: 0 1rem 0.25rem; }
  .photos figure { flex: 0 0 82% !important; scroll-snap-align: start; }
  .photos img { height: 220px; width: 100%; object-fit: cover; }
}

/* Hareket istemeyen ziyaretçiler için animasyonları durdur */
@media (prefers-reduced-motion: reduce) {
  .mascot, .last-text, .dot-key { animation: none; }
  .last-text { background-color: var(--signal); }
}
