/* TimezoneBudy — Time Difference Calculator page styles
   Reuses existing color/spacing patterns from converter.css / location.css
   (--card, --border, --accent, --muted, --text) rather than introducing a
   new palette. */

.tdc-card { margin-bottom: 32px; }

.tdc-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 20px;
}

.tdc-selector-col { display: flex; flex-direction: column; gap: 8px; }

.tdc-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.tdc-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-bottom: 1px;
}
.tdc-swap-btn:hover { background: rgba(255,255,255,0.1); transform: rotate(180deg); }

.tdc-selected-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  width: fit-content;
}
.tdc-chip-clear {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  font-size: 16px;
  margin-left: 4px;
  padding: 0 2px;
}
.tdc-chip-clear:hover { opacity: 1; }

.tdc-calc-btn {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: var(--accent, #58a6ff);
  color: #04101f;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}
.tdc-calc-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tdc-calc-btn:not(:disabled):hover { opacity: 0.9; }

.tdc-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
}

.tdc-result-times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tdc-result-loc { text-align: center; flex: 1; min-width: 140px; }
.tdc-result-loc-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; opacity: 0.85; }
.tdc-result-loc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--accent, #58a6ff);
}
.tdc-result-loc-date { font-size: 13px; opacity: 0.6; margin-top: 4px; }

.tdc-result-arrow { font-size: 22px; opacity: 0.5; flex-shrink: 0; }

.tdc-result-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.tdc-result-diff { font-size: 16px; font-weight: 600; }

.tdc-result-day-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.tdc-day-today { background: rgba(88,166,255,0.15); color: #58a6ff; }
.tdc-day-tomorrow { background: rgba(63,185,80,0.15); color: #3fb950; }
.tdc-day-yesterday { background: rgba(248,81,73,0.15); color: #f85149; }

/* SEO chip grids (Popular Comparisons, Country vs Country) */
.tdc-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.tdc-chip-card {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tdc-chip-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

/* Country vs World Cities tabs + table */
.tdc-world-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tdc-world-tab {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.tdc-world-tab.active { background: var(--accent, #58a6ff); color: #04101f; border-color: transparent; }
.tdc-world-tab:not(.active):hover { background: rgba(255,255,255,0.06); }

.tdc-table-wrap { overflow-x: auto; }
.tdc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  overflow: hidden;
}
.tdc-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.tdc-table td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tdc-table tr:nth-child(even) { background: rgba(255,255,255,0.02); }

/* FAQ list (plain stacked, no card boxes — matches location pages pattern) */
.tdc-faq-item { margin-bottom: 22px; }
.tdc-faq-item h3 { margin: 0 0 6px 0; font-size: 16px; font-weight: 600; }
.tdc-faq-item p { margin: 0; opacity: 0.82; line-height: 1.6; }

/* Mobile responsiveness */
@media (max-width: 640px) {
  .tdc-selectors {
    grid-template-columns: 1fr;
  }
  .tdc-swap-btn {
    margin: 4px auto;
    transform: rotate(90deg);
  }
  .tdc-swap-btn:hover { transform: rotate(270deg); }
  .tdc-result-times { flex-direction: column; }
  .tdc-result-arrow { transform: rotate(90deg); }
}
