/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #050b18;
  color: #e2e8f0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select { font-family: inherit; }
img { max-width: 100%; }

/* ===== CSS VARIABLES ===== */
:root {
  --bg-deep:       #050b18;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(99,179,237,0.3);
  --accent-blue:   #3b82f6;
  --accent-cyan:   #22d3ee;
  --accent-purple: #a855f7;
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --radius:        16px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.4);
  --transition:    0.2s ease;
  --font-head:     'Space Grotesk', 'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
}

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.glass-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 32px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== SECTION ===== */
.section { padding: 32px 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,11,24,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-primary);
}
.logo-icon { font-size: 1.3rem; }
.logo-accent { color: var(--accent-cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
}
.nav-links a {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  position: relative;
}
.nav-search input {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  width: 220px;
  outline: none;
  transition: border-color var(--transition), width var(--transition);
}
.nav-search input:focus { border-color: var(--accent-cyan); width: 280px; }
.nav-search input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--accent-blue);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.search-btn:hover { opacity: 0.85; }

/* Search results dropdown */
.search-results {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #0f1c33;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 200;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.search-results.visible { display: block; }
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.06); }
.search-result-city { font-weight: 600; font-size: 0.9rem; }
.search-result-time { font-family: var(--font-mono); color: var(--accent-cyan); font-size: 0.9rem; }
.search-no-result { padding: 16px; color: var(--text-muted); text-align: center; font-size: 0.875rem; }

/* ===== CONVERTER SECTION ===== */
.converter-section {
  padding: 28px 0 24px;
  background: linear-gradient(180deg, #050b18 0%, #0a1628 100%);
}
.converter-card { padding: 28px 32px; }
.converter-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}
.converter-col { display: flex; flex-direction: column; gap: 8px; }
.tz-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.converter-col select {
  background: #1a2235;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #e2e8f0;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.converter-col select:focus { border-color: var(--accent-cyan); outline: none; }
.converter-col select option {
  background: #1a2235;
  color: #e2e8f0;
}
.converter-time {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}
.converter-arrow {
  font-size: 1.8rem;
  color: var(--accent-blue);
  text-align: center;
  padding-top: 28px;
}
.converter-result {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 28px 0 32px;
  background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #050b18 100%);
}
.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.orb-1 { width: 400px; height: 400px; background: #3b82f6; top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: #a855f7; bottom: -80px; right: -80px; }
.orb-3 { width: 300px; height: 300px; background: #22d3ee; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Clock card */
.clock-card {
  padding: 28px 36px;
  text-align: center;
  width: 100%;
  max-width: 560px;
}
.clock-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.clock-display {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 60%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 10px;
}
.colon { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.clock-date {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.clock-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.clock-offset-badge {
  background: rgba(34,211,238,0.15);
  border: 1px solid rgba(34,211,238,0.3);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.clock-accuracy { font-size: 0.8rem; color: var(--text-muted); }
.clock-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: opacity var(--transition);
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat-pill {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
}
.stat-pill strong { font-size: 1.1rem; font-weight: 700; color: var(--accent-cyan); }
.stat-pill span { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== WORLD CLOCK ===== */
.world-clock-section { background: #050b18; }
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.city-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color var(--transition), transform var(--transition);
  cursor: default;
}
.city-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.city-offset { font-size: 0.7rem; font-weight: 700; color: var(--accent-blue); letter-spacing: 0.08em; }
.city-name-row { display: flex; align-items: center; gap: 8px; }
.city-flag { font-size: 1.2rem; }
.city-name { font-weight: 600; font-size: 1rem; color: var(--text-primary); }
.city-time { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--accent-cyan); }
.city-date { font-size: 0.75rem; color: var(--text-muted); }

/* ===== UTC SECTION ===== */
.utc-section { background: #080f1e; }
.utc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.utc-card {
  padding: 20px;
  text-align: center;
}
.utc-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.utc-time { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--accent-cyan); margin-bottom: 4px; }
.utc-desc { font-size: 0.8rem; color: var(--text-secondary); }

/* ===== CITIES A–Z ===== */
.cities-section { background: #050b18; }
.az-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.az-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: border-color var(--transition);
}
.az-item:hover { border-color: var(--border-hover); }
.az-city { color: var(--text-secondary); }
.az-time { font-family: var(--font-mono); color: var(--accent-cyan); font-size: 0.85rem; font-weight: 600; }

/* ===== ARTICLE ===== */
.article-section { background: #080f1e; }
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.article-header { margin-bottom: 24px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--accent-blue);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.article-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-author { color: var(--accent-cyan); font-weight: 600; }
.article-body { color: var(--text-secondary); font-size: 0.975rem; line-height: 1.8; }
.article-body p { margin-bottom: 16px; }
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}
.article-body strong { color: var(--text-primary); }
.article-body em { color: var(--accent-cyan); font-style: italic; }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }
.sidebar-widget { padding: 20px; }
.sidebar-widget h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.fact-list { display: flex; flex-direction: column; gap: 8px; }
.fact-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.fact-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-cyan); font-size: 0.8rem; }
.sidebar-tz-list { display: flex; flex-direction: column; gap: 8px; }
.sidebar-tz-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.sidebar-tz-item:last-child { border-bottom: none; }
.sidebar-tz-name { color: var(--text-secondary); }
.sidebar-tz-time { font-family: var(--font-mono); color: var(--accent-cyan); font-weight: 600; }

/* ===== FAQ ===== */
.faq-section { background: #050b18; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.faq-card { padding: 22px 24px; }
.faq-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.faq-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ===== FOOTER ===== */
.footer {
  background: #020710;
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-bottom: 32px;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 12px; max-width: 260px; line-height: 1.6; }
.footer-nav { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent-cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== PARTNER SECTION ===== */
.partner-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.partner-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.partner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
  min-width: 200px;
}
.partner-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(56,189,248,0.06);
  transform: translateY(-2px);
}
.partner-emoji { font-size: 1.5rem; flex-shrink: 0; }
.partner-name { font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 2px; }
.partner-desc { font-size: 0.78rem; color: var(--text-muted); }
.partner-card:hover .partner-name { color: var(--accent-cyan); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1e3a5f;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050b18; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2d5a8e; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .az-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 36px 0; }
  .converter-section { padding: 20px 0 18px; }
  .hero-section { padding: 20px 0 24px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); }
  .utc-grid { grid-template-columns: repeat(2, 1fr); }
  .az-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .converter-row { grid-template-columns: 1fr; }
  .converter-arrow { display: none; }
  .nav-links { display: none; }
  .nav-search input { width: 160px; }
  .nav-search input:focus { width: 200px; }
}
@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr; }
  .utc-grid { grid-template-columns: 1fr; }
  .az-grid { grid-template-columns: repeat(2, 1fr); }
  .clock-display { font-size: 3rem; }
  .hero-stats { gap: 8px; }
  .stat-pill { padding: 8px 12px; min-width: 70px; }
}
@media print {
  .navbar, .hero-bg-orbs, .clock-actions, .footer { display: none; }
}
