/* ================================================================
   Aylik Raporlar — Glass-morphism Tema
   Ana siteden (yerdurumu.org.tr) uyumlu koyu tema
   ================================================================ */

:root {
  --ana: #0e1525;
  --cam: #ffffff99;
  --cizgi: #ffffff33;
  --parlama: #ffffffcc;
  --vurgulu: #41b1ff;
  --vurgulu-2: #00e3b2;
  --beyaz: #fff;
  --radius: 22px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: #e8eef7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(1200px 600px at 10% -10%, #12335f 0%, rgba(18,51,95,0) 60%),
    radial-gradient(1200px 600px at 110% 10%, #0f6a9a 0%, rgba(15,106,154,0) 60%),
    linear-gradient(180deg, #0a1220 0%, #0d1422 100%);
}

a { color: var(--vurgulu); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- GLASS ---- */
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--cizgi);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 40%),
    radial-gradient(400px 120px at 60% -10%, rgba(255,255,255,0.16), transparent 70%);
  mix-blend-mode: screen;
}

.glass-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid #ffffff22;
  border-radius: calc(var(--radius) - 6px);
  backdrop-filter: blur(20px) saturate(150%);
}

/* ---- NAV ---- */
.topnav {
  width: 100%;
  max-width: 1280px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(20,30,50,.55), rgba(20,30,50,.35));
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid #ffffff22;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.topnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topnav .brand {
  font-weight: 800;
  font-size: 1.2rem;
  white-space: nowrap;
  color: #eaf3ff;
  text-decoration: none;
}
.topnav .brand:hover { text-decoration: none; opacity: .85; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  color: #9fb8d8;
  flex-wrap: wrap;
}
.breadcrumb a { color: #9fb8d8; }
.breadcrumb a:hover { color: var(--vurgulu); text-decoration: none; }
.breadcrumb .sep { opacity: .5; }

/* ---- PAGE HEADER ---- */
.page-header {
  width: 100%;
  max-width: 1100px;
  margin: 24px 16px 0;
  padding: 32px 28px;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}
.page-header .subtitle {
  color: #cfe6ff;
  opacity: .9;
  font-size: 1.05rem;
}

/* ---- METRIC CHIPS ---- */
.metrics-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #ffffff2a;
  background: rgba(255,255,255,0.08);
  font-size: .92rem;
  color: #e6f4ff;
}
.chip strong {
  font-weight: 800;
  color: #fff;
}

/* ---- PDF BUTTON ---- */
.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.05rem;
  color: #0a1626;
  background: linear-gradient(90deg, #00f5a0, #00d9ff);
  box-shadow: 0 10px 30px rgba(0,217,255,.28);
  border: 1px solid #8ff7ff55;
  text-decoration: none;
  transition: transform .15s ease;
  margin-top: 18px;
}
.btn-pdf:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* ---- SECTIONS ---- */
.section {
  width: 100%;
  max-width: 1100px;
  margin: 20px 16px;
  padding: 26px;
}
.section h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
  color: #eaf3ff;
}
.section p {
  color: #d6e7ff;
  opacity: .95;
  line-height: 1.55;
}

/* ---- IMAGE GRID ---- */
.img-container {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ffffff15;
  background: rgba(0,0,0,0.2);
  margin: 10px 0;
}
.img-container img {
  width: 100%;
  display: block;
}

.img-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 700px) {
  .img-row { grid-template-columns: 1fr; }
}

/* ---- CITY CARDS GRID ---- */
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1050px) {
  .city-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr; }
}

.city-card {
  padding: 22px;
  text-decoration: none;
  color: #e8eef7;
  transition: transform .15s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.city-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,0.45);
  text-decoration: none;
}
.city-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
}
.city-card .card-stat {
  font-size: .88rem;
  color: #9fb8d8;
}
.city-card .card-stat strong {
  color: var(--vurgulu);
}

/* ---- PERIOD CARDS (main index) ---- */
.period-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 780px) {
  .period-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .period-grid { grid-template-columns: 1fr; }
}
.period-card {
  padding: 28px;
  text-align: center;
  text-decoration: none;
  color: #e8eef7;
  transition: transform .15s ease;
}
.period-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}
.period-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.period-card .period-sub {
  font-size: .95rem;
  color: #9fb8d8;
}

/* ---- TABLE ---- */
.eq-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: .88rem;
}
.eq-table thead th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #ffffff33;
  color: #9fb8d8;
  font-weight: 700;
  white-space: nowrap;
}
.eq-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #ffffff11;
  color: #d6e7ff;
}
.eq-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}
.eq-table .mag-high {
  color: #ff6b6b;
  font-weight: 800;
}
.eq-table .mag-mid {
  color: #ffa94d;
  font-weight: 700;
}

/* table wrapper for horizontal scroll on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid #ffffff15;
  background: rgba(0,0,0,0.15);
}

/* ---- FOOTER ---- */
.footer {
  width: 100%;
  max-width: 1100px;
  margin: 30px 16px 40px;
  padding: 24px;
  text-align: center;
}
.footer img {
  max-width: 200px;
  margin-bottom: 12px;
}
.footer .company {
  font-weight: 800;
  font-size: 1rem;
  color: #9fb8d8;
  letter-spacing: .3px;
}

/* ---- AI COMMENT ---- */
.ai-comment {
  margin-top: 10px;
  padding: 14px 18px;
  border-left: 3px solid var(--vurgulu);
  background: rgba(65, 177, 255, 0.06);
  border-radius: 0 12px 12px 0;
  font-size: .92rem;
  color: #cfe6ff;
  line-height: 1.55;
}

/* ---- UTILITIES ---- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: #9fb8d8; }
