/* WorldTimeNow — Global Stylesheet
   Design: Dark precision / data-dashboard aesthetic
   Palette: Near-black bg, electric-blue accent, warm-white text, slate surfaces
   Typography: "Inter" (body/UI) + "JetBrains Mono" (time display)
*/

/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0d1117;
  --bg2:         #161b22;
  --bg3:         #21262d;
  --border:      #30363d;
  --accent:      #58a6ff;
  --accent-glow: rgba(88,166,255,0.15);
  --green:       #3fb950;
  --yellow:      #e3b341;
  --red:         #f85149;
  --text:        #e6edf3;
  --text2:       #8b949e;
  --text3:       #6e7681;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --font-body:   'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Mono', monospace;
  --max-w:       1100px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; min-height: 100vh; }

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.875rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-top: 2rem; margin-bottom: .75rem; }
h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: .5rem; }
p  { color: var(--text2); margin-bottom: 1rem; }
p strong { color: var(--text); }
a  { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; text-decoration: underline; }
ul, ol { padding-left: 1.5rem; color: var(--text2); }
li { margin-bottom: .4rem; }
code { font-family: var(--font-mono); font-size: .85em; background: var(--bg3); padding: .15em .4em; border-radius: 4px; color: var(--accent); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.page-wrap  { padding: 2.5rem 0 5rem; }

/* NAV */
.site-header { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 1rem; }
.logo { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text) !important; text-decoration: none !important; display: flex; align-items: center; gap: .5rem; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--text2); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-search input { background: var(--bg3); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); padding: .4rem .75rem; font-size: .9rem; width: 200px; }
.nav-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* CLOCK HERO */
.clock-hero { text-align: center; padding: 3rem 1rem 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.clock-hero .city-label { font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-bottom: .75rem; }
.clock-display { font-family: var(--font-mono); font-size: clamp(3rem, 10vw, 6.5rem); font-weight: 700; color: var(--text); letter-spacing: -0.02em; line-height: 1; text-shadow: 0 0 60px var(--accent-glow); }
.clock-display .sep { color: var(--accent); animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }
.clock-date { font-family: var(--font-mono); font-size: 1rem; color: var(--text2); margin-top: .75rem; letter-spacing: .04em; }
.tz-badge { display: inline-block; background: var(--bg3); border: 1px solid var(--border); padding: .3rem .75rem; border-radius: 99px; font-family: var(--font-mono); font-size: .8rem; color: var(--accent); margin-top: .75rem; }

/* CARDS */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.city-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; transition: border-color .2s, transform .2s; text-decoration: none !important; display: block; }
.city-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.city-card .card-city { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: .25rem; }
.city-card .card-tz   { font-family: var(--font-mono); font-size: .8rem; color: var(--text3); }
.city-card .card-time { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--accent); margin-top: .5rem; }

/* INFO GRID */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.info-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.info-card .label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text3); margin-bottom: .35rem; }
.info-card .value { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--text); }
.info-card .sub   { font-size: .85rem; color: var(--text2); margin-top: .25rem; }
.badge-yes { color: var(--green); }
.badge-no  { color: var(--red); }

/* FAQ */
.faq-section { margin: 2.5rem 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
details { padding: 1.1rem 0; }
summary { font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; list-style: none; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--accent); font-size: 1.25rem; flex-shrink: 0; }
details[open] summary::after { content: '−'; }
.faq-a { margin-top: .75rem; color: var(--text2); font-size: .95rem; }

/* RELATED */
.related-section { margin: 2.5rem 0; }
.related-grid { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.related-pill { background: var(--bg3); border: 1px solid var(--border); border-radius: 99px; padding: .4rem 1rem; font-size: .85rem; color: var(--text2); transition: border-color .15s, color .15s; }
.related-pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ARTICLE */
.article-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.article-meta { font-size: .85rem; color: var(--text3); margin-top: .5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-body { max-width: 720px; }
.article-body h2 { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.article-body blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: .75rem 1.25rem; background: var(--bg2); border-radius: 0 var(--radius) var(--radius) 0; }
.article-body blockquote p { color: var(--text); margin: 0; }

/* BREADCRUMB */
.breadcrumb { font-size: .85rem; color: var(--text3); margin-bottom: 1.25rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); }

/* HERO (homepage) */
.hero { text-align: center; padding: 4rem 1rem 3rem; background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(88,166,255,.12), transparent); border-bottom: 1px solid var(--border); }
.hero-eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1rem; }
.hero .lead { font-size: 1.1rem; color: var(--text2); max-width: 580px; margin: 0 auto 2rem; }
.hero-utc { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text3); margin-bottom: 1.5rem; }
.hero-utc span { color: var(--text); }

/* SECTION LABELS */
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-bottom: .75rem; display: block; }
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 1.25rem; }

/* TABLE */
.tz-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tz-table th { text-align: left; padding: .6rem .75rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); border-bottom: 1px solid var(--border); }
.tz-table td { padding: .7rem .75rem; border-bottom: 1px solid var(--border); color: var(--text2); }
.tz-table tr:last-child td { border-bottom: none; }
.tz-table tr:hover td { background: var(--bg2); }
.tz-table .mono { font-family: var(--font-mono); color: var(--accent); }

/* FOOTER */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 4rem; font-size: .85rem; color: var(--text3); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-col h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text2); margin-bottom: .75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col a { color: var(--text3); }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); text-align: center; }

/* ADS */
.ad-slot { background: var(--bg2); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--text3); font-size: .75rem; padding: 1rem; margin: 1.5rem 0; }
.ad-slot-728 { min-height: 90px; }
.ad-slot-300 { min-height: 250px; max-width: 300px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-search input { width: 140px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-inner { flex-direction: column; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .clock-display { font-size: clamp(2.5rem, 14vw, 4rem); }
  .info-grid { grid-template-columns: 1fr; }
}

/* UTILS */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
