@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono:wght@500&display=swap");

/* ===============================
   ROOT & DESIGN TOKENS
   ================================ */
:root {
  --wtcp-text: #6b7280;
  --wtcp-time-text: #111827;
  --wtcp-accent: #3b82f6;
  --wtcp-city: #4671a1;
  --primary-font: "Inter", system-ui, -apple-system, sans-serif;
  --mono-font: "JetBrains Mono", monospace;
}

/* ===============================
   WORLD CLOCK GRID
   ================================ */
#wtcp-grid-main.wtcp-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important; /* Force single row */
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 8px !important;
  padding: 15px !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  font-family: var(--primary-font);
  background: transparent !important;
  min-height: 150px;
  overflow-x: auto !important; /* Allow scroll on mobile if needed */
}

/* ===============================
   CLOCK CARD
   ================================ */
.wtcp-clock {
  flex: 0 0 calc(14% - 8px); /* Roughly 1/7th of the row */
  min-width: 120px;
  padding: 12px 6px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fdfdfd;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.wtcp-clock::before { display: none; }

.wtcp-clock:hover {
  transform: translateY(-5px);
}

/* ===============================
   CLOCK TITLE
   ================================ */
.wtcp-clock h3 {
  font-size: 11px;
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--wtcp-city);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   FLAGS
   ================================ */
.wtcp-flag {
  width: 18px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: inline-block;
}

/* ===============================
   DIGITAL CLOCK
   ================================ */
.digital-clock {
  font-family: var(--mono-font);
  font-size: 11px;
  font-weight: 400;
  margin: 8px 0 0 0;
  color: #000;
  background: none;
  display: block;
  letter-spacing: 0.02em;
}

/* ===============================
   APPLE STYLE ANALOG CLOCK
   ================================ */
.apple-clock {
  width: 65px;
  height: 65px;
  margin: 0 auto 5px auto;
  display: block;
  background: transparent !important;
  box-shadow: none !important;
}

/* ===============================
   AIRPORT BOARD
   ================================ */
.airport-board {
  background: #111;
  color: #00ff9c;
  font-family: var(--mono-font);
  padding: 20px;
  margin-top: 15px;
  border-radius: 12px;
  font-size: 22px;
  letter-spacing: 4px;
  display: inline-flex;
  gap: 2px;
  box-shadow:
    inset 0 0 15px rgba(0, 255, 156, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 156, 0.2);
}

.airport-board span {
  background: #222;
  padding: 4px 8px;
  border-radius: 4px;
  border-bottom: 2px solid #000;
}

.airport-time-colon {
  animation: wtcp-blink 1s infinite;
  color: rgba(0, 255, 156, 0.5);
}

@keyframes wtcp-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.wtcp-no-clocks {
    width: 100%;
    text-align: center;
    padding: 20px;
    color: #888;
}

.wtcp-no-clocks a {
    color: #007aff;
    text-decoration: none;
    font-weight: 600;
}

.wtcp-no-clocks a:hover {
    text-decoration: underline;
}

/* ===============================
   WEATHER
   ================================ */
.clock-weather {
  margin-top: 5px;
  font-size: 12px;
  color: #888;
}

.clock-weather i {
  font-size: 18px;
}

/* ===============================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  #wtcp-grid-main.wtcp-grid {
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .wtcp-clock {
    flex: 0 1 140px;
  }
}

@media (max-width: 768px) {
  #wtcp-grid-main.wtcp-grid {
    gap: 10px !important;
    padding: 15px !important;
    flex-wrap: wrap !important;
  }
  .wtcp-clock {
    flex: 0 1 calc(33.33% - 10px);
    min-width: 130px;
  }
}

@media (max-width: 480px) {
  .wtcp-clock {
    flex: 0 1 calc(50% - 10px);
    min-width: 120px;
  }
  .digital-clock {
    font-size: 12px;
  }
  .apple-clock {
    width: 60px;
    height: 60px;
  }
}
