/* ═══════════════════════════════════════
   AlarmO'Clock — Homepage Styles
   Mobile-first (v1.83.0)
   ═══════════════════════════════════════ */

/* ══════════════════════════════
   HERO — mobile base
   ══════════════════════════════ */
.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-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.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;
}

.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;
}

.date-line {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  margin-top: 8px;
}

/* Quick actions — stacked on mobile */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  width: 100%;
  max-width: 340px;
}

.qa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.35);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.qa-btn:hover {
  background: rgba(255,255,255,0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100,60,180,0.15);
}
.qa-btn svg { flex-shrink: 0; }
.shortcut svg { flex-shrink: 0; color: var(--accent); }

/* Shortcuts — single column on mobile */
.shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  margin-top: 20px;
}

.shortcut {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.shortcut:hover {
  background: rgba(255,255,255,0.65);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100,60,180,0.12);
}
.shortcut strong { color: var(--accent); font-weight: 700; }

/* ══════════════════════════════
   TIMEZONE COMPARE CARD
   ══════════════════════════════ */
.tz-card {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(100,60,180,0.08);
  position: relative;
  z-index: 10;
}

/* Stacked on mobile */
.tz-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.tz-left {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.tz-left h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.tz-left p  { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--muted); line-height: 1.7; }

.tz-right {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  position: relative;
}

.tz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 10px;
  transition: background 0.2s;
}
.tz-row:hover { background: rgba(255,255,255,0.75); }

.tz-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}
.tz-row-left .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.tz-row-left .dot.gray { background: var(--muted); }
.tz-city { color: var(--text); font-weight: 500; }
.tz-city span { color: var(--muted); font-weight: 300; }

.tz-row-right { display: flex; align-items: center; gap: 10px; font-family: 'DM Mono', monospace; }
.tz-time-val  { font-size: 18px; font-weight: 400; color: var(--text); }
.tz-arrow     { color: var(--accent); font-size: 14px; cursor: pointer; transition: transform 0.2s; }
.tz-arrow:hover { transform: translateX(3px); }
.tz-close     { color: var(--muted); font-size: 16px; cursor: pointer; transition: color 0.2s; }
.tz-close:hover { color: #c0392b; }
.tz-select-row { cursor: pointer; user-select: none; position: relative; }

.tz-diff-bar { }
.tz-diff-icon { font-size: 15px; }

/* ══════════════════════════════
   DROPDOWN
   ══════════════════════════════ */
.dropdown-caret {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  transition: transform 0.2s;
  display: inline-block;
}
.dropdown-caret.open { transform: rotate(180deg); }

.custom-dropdown {
  display: none;
  position: fixed;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(100,60,180,0.22);
  z-index: 9999;
  animation: fadeUp 0.15s ease forwards;
  min-width: 260px;
  max-width: 90vw;
}
.custom-dropdown.open { display: block; }

.dropdown-search-wrap { padding: 10px 12px; border-bottom: 1px solid rgba(124,92,191,0.12); }
.dropdown-search {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(124,92,191,0.2);
  border-radius: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text);
  background: rgba(255,255,255,0.8);
  outline: none;
  transition: border-color 0.2s;
}
.dropdown-search:focus { border-color: var(--accent); }
.dropdown-search::placeholder { color: var(--muted); }

.dropdown-list {
  max-height: 220px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,92,191,0.3) transparent;
}
.dropdown-list::-webkit-scrollbar { width: 4px; }
.dropdown-list::-webkit-scrollbar-thumb { background: rgba(124,92,191,0.3); border-radius: 4px; }

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid rgba(124,92,191,0.06);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover    { background: rgba(124,92,191,0.08); }
.dropdown-item.selected { background: rgba(124,92,191,0.12); color: var(--accent); font-weight: 500; }
.dropdown-item .di-tz  { font-size: 10px; color: var(--muted); }

/* ══════════════════════════════
   WORLD CITIES GRID — mobile: 2 cols
   ══════════════════════════════ */
.section-title {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}
.section-title span { color: var(--accent); }

.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.city-card {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  padding: 16px 12px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(100,60,180,0.15);
}
.city-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(100,60,180,0.25); }

.city-card.tc-same   { background: linear-gradient(135deg, rgba(140,100,200,0.75) 0%, rgba(180,130,210,0.65) 100%); }
.city-card.tc-ahead  { background: linear-gradient(135deg, rgba(100,80,180,0.80)  0%, rgba(140,100,210,0.70) 100%); }
.city-card.tc-behind { background: linear-gradient(135deg, rgba(200,130,160,0.80) 0%, rgba(225,165,195,0.70) 100%); }

.city-name-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.city-big-time {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  font-weight: 400;
  color: white;
  line-height: 1;
  margin-bottom: 4px;
}
.city-local-ref {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  margin-top: 6px;
}

/* ══════════════════════════════
   CLOCK PAGE HERO
   ══════════════════════════════ */
.hero--clock {
  justify-content: center;
  padding: 96px var(--content-pad) 48px;
  margin: 0;
}

.fullscreen-btn {
  position: fixed;
  bottom: 24px; right: 80px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 50;
}
.fullscreen-btn:hover { background: rgba(255,255,255,0.55); transform: scale(1.08); }

:fullscreen nav, :-webkit-full-screen nav,
:fullscreen footer, :-webkit-full-screen footer { display: none; }

/* ══════════════════════════════
   WORLD CLOCK PAGE
   ══════════════════════════════ */
.wc-city-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.2s;
  user-select: none;
  position: relative;
  z-index: 10;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.wc-city-trigger:hover {
  background: rgba(255,255,255,0.32);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-1px);
}
.wc-caret { font-size: 11px; opacity: 0.8; }
.wc-section-label { margin-bottom: 16px; font-size: 15px; }

.wc-dropdown {
  position: fixed;
  z-index: 9999;
  width: min(340px, 90vw);
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(100,60,180,0.18);
  overflow: hidden;
  animation: fadeUp 0.15s ease forwards;
}
.wc-dropdown-inner { display: flex; flex-direction: column; }
.wc-search {
  padding: 14px 16px;
  border: none; border-bottom: 1px solid rgba(0,0,0,0.08);
  background: none;
  font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--text); outline: none;
}
.wc-search::placeholder { color: var(--muted); }
.wc-dropdown-list { max-height: 260px; overflow-y: auto; }
.wc-dropdown-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; cursor: pointer; transition: background 0.12s; gap: 12px;
}
.wc-dropdown-item:hover    { background: rgba(124,92,191,0.08); }
.wc-dropdown-item.selected { background: rgba(124,92,191,0.12); }
.wc-di-name   { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); }
.wc-dropdown-item.selected .wc-di-name { color: var(--accent); }
.wc-di-region { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--muted); }
.wc-di-time   { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--accent); }

/* ══════════════════════════════
   ANALOG CLOCK — smaller on mobile
   ══════════════════════════════ */
.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));
}

.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);
}

/* ══════════════════════════════
   DESKTOP — min-width: 769px
   ══════════════════════════════ */
@media (min-width: 769px) {
  .hero { padding: 110px 48px 60px; margin: 0; }
  .hero--clock { padding: 32px var(--content-pad) 48px; }

  .quick-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .shortcuts-grid { grid-template-columns: 1fr 1fr; max-width: 700px; }

  .tz-card-inner { grid-template-columns: 1fr 1.6fr; }
  .tz-left { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.5); padding: 32px 28px; }
  .tz-right { padding: 24px 28px; }
  .tz-time-val { font-size: 20px; }

  .cities-grid { grid-template-columns: repeat(5, 1fr); }
  .city-card { padding: 20px 13px; }
  .city-big-time { font-size: 24px; }
  .city-name-label { font-size: 12px; }

  .section-title { font-size: 22px; margin-bottom: 24px; }

  .wc-analog-svg { width: 400px; height: 400px; }
  .wc-analog { margin: 20px 0; }
  .wc-city-trigger { font-size: 14px; }
}

/* ── DARK THEME ── */
[data-theme="dark"] .tz-card {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── FULLSCREEN TRIGGER PILL ── */
.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);
}

/* ── Clickable city card ── */
a.city-card {
  text-decoration: none;
  cursor: pointer;
}
a.city-card:hover { transform: translateY(-3px); }

/* ── City timezone abbreviation ── */
.city-tz-abbr {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.85em;
}

@media (max-width: 768px) {
}

@media (max-width: 768px) {
  .fullscreen-trigger { display: none; } /* desktop removes inline trigger */
}

@media (max-width: 768px) {
  .fullscreen-trigger { display: none; } /* desktop removes inline trigger */
}

@media (max-width: 768px) {
  .fullscreen-btn { display: none; }
  .fullscreen-trigger { display: none; }
  .hero--clock { padding: 30px var(--content-pad) 32px; }
}
