﻿:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --text: #1b2a22;
  --muted: #4d6257;
  --line: #d4ddd1;
  --brand: #0f8f67;
  --brand-soft: #e4f7ef;
  --radius: 18px;
  --shadow: 0 14px 34px rgba(27, 42, 34, 0.08);
  --accent: #ffd85b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #eef8e2 0, transparent 40%),
    radial-gradient(circle at 100% 0%, #fff8da 0, transparent 45%),
    var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(247, 248, 244, 0.9);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.logo {
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.logo span { color: var(--brand); }

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #1f3b2f;
  border-radius: 2px;
}

.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 19, 0.3);
  z-index: 29;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: #ffffff;
  box-shadow: -12px 0 30px rgba(17, 28, 23, 0.2);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 30;
  padding: 1.2rem 1rem;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.drawer-nav {
  display: grid;
  gap: 0.4rem;
}

.drawer-nav a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
}

.drawer-nav a.is-active,
.drawer-nav a:hover {
  color: var(--brand);
  background: #f4fff9;
  border-color: #9ec7b5;
}

.hero {
  padding: 3.5rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.hero-content {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f3fbf7 100%);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  overflow: hidden;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(255, 216, 91, 0.65) 0, rgba(255, 216, 91, 0) 70%);
  pointer-events: none;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0.4rem 0 0.8rem;
  line-height: 1.2;
  font-size: clamp(1.55rem, 2.9vw, 2.3rem);
}

h2 {
  margin-top: 0;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

h3 {
  margin-top: 0;
  font-size: 1rem;
}

.eyebrow {
  margin: 0;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.lead {
  margin-top: 0;
  color: var(--muted);
  max-width: 62ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.metric-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
}

.metric-card p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.metric-card strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

.metric-subtext {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.city-select-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.city-select {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.city-select:focus {
  outline: 2px solid rgba(15, 143, 103, 0.2);
  border-color: #82c7ab;
}

.btn-mini {
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.btn {
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #0f8f67 0%, #0c6f50 100%);
}

.btn-ghost {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: #c6e7d7;
}

.section {
  padding: 1.2rem 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(27, 42, 34, 0.12);
}

.stat-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.stat-card li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.45rem;
}

.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.live-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0;
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #f3fbf7;
  border: 1px solid #cde8db;
}

.icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: #0f8f67;
}

.live-note {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f3f7f5;
  color: #185c44;
  border: 1px solid #cae3d8;
  padding: 0.24rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.live-city-list {
  display: grid;
  gap: 0.45rem;
  max-height: 360px;
  overflow: auto;
  padding-right: 0.2rem;
}

.live-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.live-search {
  min-width: 0;
  border: 1px solid #bedfcc;
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font: inherit;
}

.live-search:focus {
  outline: 2px solid rgba(15, 143, 103, 0.2);
  border-color: #82c7ab;
}

.live-toggle {
  border: 1px solid #bedfcc;
  background: #f4fff9;
  color: #185c44;
  border-radius: 10px;
  padding: 0.4rem 0.7rem;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.live-toggle:hover {
  background: #eafff2;
}

.live-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.5rem 0.65rem;
  text-decoration: none;
}

.live-item:hover {
  border-color: #9ec7b5;
  background: #f7fffb;
}

.live-item-name {
  font-weight: 700;
  color: var(--text);
}

.live-item-time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.live-item.is-next {
  border-color: #8fcaac;
  background: #ecfff3;
  box-shadow: 0 10px 22px rgba(15, 143, 103, 0.13);
}

.live-item.is-next .live-item-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0f8f67;
  margin-right: 0.42rem;
  vertical-align: middle;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  text-decoration: none;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 600;
}

.chip:hover {
  border-color: #aac6b5;
  background: #f8fffb;
}

.page-head {
  padding-bottom: 0.4rem;
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.page-tab {
  text-decoration: none;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-weight: 700;
}

.page-tab.is-active,
.page-tab:hover {
  color: var(--brand);
  border-color: #9ec7b5;
  background: #f4fff9;
}

.vakit-hero-card {
  overflow: hidden;
}

.vakit-hero-card.is-iftar {
  background: linear-gradient(135deg, #ffffff 0%, #f6fff9 55%, #fefbe8 100%);
}

.vakit-hero-card.is-sahur {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 55%, #f1f8ff 100%);
}

.vakit-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.vakit-icon-badge {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ecfff3;
  border: 1px solid #c8ead7;
  margin-bottom: 0.5rem;
}

.vakit-main-time {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.3rem);
  line-height: 1;
  margin: 0.25rem 0 0.45rem;
  color: #0c6f50;
  font-weight: 800;
}

.vakit-date-line {
  margin: 0;
  font-weight: 600;
}

.vakit-countdown-box {
  border: 1px solid #cfe5d8;
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 0.9rem;
  display: grid;
  align-content: start;
  gap: 0.35rem;
}

.vakit-countdown-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.vakit-countdown {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  color: var(--brand);
  letter-spacing: 0.02em;
}

.vakit-countdown-note {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

.vakit-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.vakit-mini-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.12rem;
}

.vakit-mini-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.vakit-mini-item strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
}

.vakit-mini-item.is-key {
  border-color: #9ec7b5;
  background: #f5fff9;
}

.table-wrap {
  overflow-x: auto;
}

.imsakiye-table-wrap {
  padding: 0.4rem;
}

.imsakiye-table {
  min-width: 760px;
}

.imsakiye-table thead th {
  position: sticky;
  top: 0;
  background: #fbfcf9;
  z-index: 1;
}

.imsakiye-table td,
.imsakiye-table th {
  white-space: nowrap;
}

.imsakiye-col-key {
  font-weight: 800;
  color: #0c6f50;
  background: #f3fbf7;
}

.imsakiye-row-today td {
  background: #f8fff6;
}

.imsakiye-row-today td:first-child {
  box-shadow: inset 3px 0 0 #7ec49f;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  background: rgba(255, 255, 255, 0.82);
}

.footer-inner p {
  margin: 0.2rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-note {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-copy {
  margin-top: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.muted { color: var(--muted); }

#countdown {
  margin: 0;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 800;
  color: var(--brand);
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.city-grid-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.time-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.time-city-card {
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  display: grid;
  gap: 0.45rem;
}

.time-city-card:hover {
  border-color: #9ec7b5;
  background: #f8fffb;
}

.time-city-top {
  display: grid;
  gap: 0.1rem;
}

.time-city-top strong {
  font-size: 0.98rem;
}

.time-city-top span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.time-city-bottom {
  font-weight: 700;
  color: #185c44;
  font-size: 0.88rem;
}

.time-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e7f3ec;
  overflow: hidden;
}

.time-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1a9b71, #0f8f67);
}

.city-grid-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.12rem;
}

.city-grid-link:hover {
  border-color: #9ec7b5;
  background: #f7fffb;
}

.city-grid-link span {
  font-weight: 700;
}

.city-grid-link small {
  color: var(--muted);
  font-size: 0.78rem;
}

.city-grid-link.is-collapsed {
  display: none;
}

.city-grid-links.is-expanded .city-grid-link.is-collapsed {
  display: grid;
}

.all-cities-actions {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content,
  .stat-card,
  .feature-card {
    animation: riseIn 0.55s ease both;
  }

  .stat-card { animation-delay: 0.08s; }
  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.18s; }
}

@media (max-width: 720px) {
  .vakit-hero-grid {
    grid-template-columns: 1fr;
  }

  .vakit-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imsakiye-table {
    min-width: 680px;
  }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    min-height: 66px;
  }

  .top-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .city-grid-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 2.4rem;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .live-controls {
    grid-template-columns: 1fr;
  }

  .city-select-row {
    grid-template-columns: 1fr;
  }

  .city-grid-links {
    grid-template-columns: 1fr;
  }

  .time-city-grid {
    grid-template-columns: 1fr;
  }
}
