/* ═══════════════════════════════════════
   AlarmO'Clock — Shared Clock Styles
   Used by: city-clock.php, world-clock.php
   Includes: hero container, digital clock display, analog SVG clock,
             analog/digital mode toggle.
   ═══════════════════════════════════════ */

/* ── HERO container ── */
section.hero, .page-hero, .city-page-hero { position: relative; }
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px var(--content-pad) 48px;
  text-align: center;
}
.hero--clock {
  justify-content: center;
  padding: 0 var(--content-pad) 48px;
  margin: 0;
}
@media (min-width: 769px) {
  .hero { padding: 110px 48px 60px; }
  .hero--clock { padding: 32px var(--content-pad) 48px; }
}

/* ── DIGITAL CLOCK DISPLAY ── */
.clock-display {
  font-family: 'DM Mono', monospace;
  font-size: clamp(56px, 18vw, 160px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1;
  position: relative;
  text-shadow: 0 4px 32px rgba(100,60,180,0.18);
  margin: 10px 0;
  pointer-events: none;
}
.clock-seconds {
  font-size: 0.38em;
  color: rgba(255,255,255,0.7);
  position: absolute;
  top: 13px;
}
.clock-ampm {
  font-size: 0.5em;
  color: rgba(255,255,255,0.8);
  margin-left: 8px;
  position: absolute;
  bottom: 9px;
}
body.theme-dark .clock-display { color: var(--text); }

/* ── ANALOG CLOCK ── */
.wc-analog {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
}
.wc-analog-svg {
  width: min(280px, 80vw);
  height: min(280px, 80vw);
  filter: drop-shadow(0 8px 32px rgba(100,60,180,0.25));
}

/* ── ANALOG / DIGITAL TOGGLE ── */
.wc-mode-toggle {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 4px;
}
.wc-toggle-btn {
  padding: 6px 16px;
  border-radius: 7px;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.2s;
}
.wc-toggle-btn.active {
  background: rgba(255,255,255,0.35);
  color: var(--text);
}

/* ── CLOCK META (city · live-dot · GMT label) ── */
.clock-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.06em;
}
.clock-meta .live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: white;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%      { opacity: 0.3; transform: scale(0.6); }
}

/* ── DATE LINE (under the clock — e.g. "Tuesday, March 4") ── */
.date-line {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* ── FULLSCREEN TRIGGER (pill button in hero) ── */
.fullscreen-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}
.fullscreen-trigger:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}

/* ── In fullscreen mode, hide chrome ── */
:fullscreen nav,
:-webkit-full-screen nav,
:fullscreen footer,
:-webkit-full-screen footer { display: none; }
