/* ============================================================
   horlogeparlante.ch — components.css
   ============================================================ */

/* ---------- City card ---------- */
.city-card {
  background: var(--dark-2);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.city-card:hover { background: var(--dark-3); }

.city-card--active { background: var(--dark-3); }
.city-card--active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
}

.city-card__speak {
  position: absolute; top: 0.8rem; right: 0.8rem;
  padding: 0.3rem;
  color: var(--muted-2);
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}
.city-card:hover .city-card__speak { opacity: 1; }
.city-card__speak:hover { color: var(--gold); }

.city-card__region {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.2rem;
}

.city-card__name {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
}

.city-card__time {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--light);
  letter-spacing: -0.02em;
  line-height: 1;
}

.city-card__offset {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ---------- Toast notification ---------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark-3);
  border: 1px solid #333;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- No-speech warning ---------- */
.no-speech-banner {
  background: #1A1200;
  border: 1px solid #3A2800;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.no-speech-banner svg { flex-shrink: 0; }

/* ---------- About page ---------- */
.about-section {
  padding: 3rem 0 4rem;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
}

.about-content h2 {
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin: 2rem 0 0.8rem;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.about-content code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--dark-3);
  padding: 0.15em 0.4em;
  border-radius: 2px;
  color: var(--gold-light);
}

.about-content pre {
  background: var(--dark-2);
  border: 1px solid #222;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.about-content pre code {
  background: none;
  padding: 0;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.7;
}

.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.api-table th {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #222;
}

.api-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #1A1A1A;
  color: var(--text-dim);
  vertical-align: top;
}

.api-table td code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-light);
  background: var(--dark-3);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

.about-contact {
  position: relative;
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--dark-2);
  border: 1px solid #222;
  border-radius: var(--radius);
}

.about-contact h2 {
  margin-top: 0;
}

.hp-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.about-contact-form {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.about-contact-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-contact-opt {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  font-size: 0.9em;
}

.about-contact-req {
  color: var(--gold-dim);
}

.about-contact-input,
.about-contact-textarea {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--text);
  background: var(--dark-3);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.about-contact-input:focus,
.about-contact-textarea:focus {
  outline: none;
  border-color: var(--gold-dim);
}

.about-contact-textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.about-contact-submit {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark-1);
  background: var(--gold);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.about-contact-submit:hover {
  background: var(--gold-light);
  color: var(--dark-2);
}

.about-contact-flash {
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-contact-flash--ok {
  background: rgba(120, 160, 90, 0.12);
  border: 1px solid rgba(120, 160, 90, 0.35);
  color: #b8d4a0;
}

.about-contact-flash--err {
  background: rgba(180, 90, 90, 0.1);
  border: 1px solid rgba(180, 90, 90, 0.35);
  color: #d4a0a0;
}
