/* ═══════════════════════════════════════
   AlarmO'Clock — Time Calculator Styles
   ═══════════════════════════════════════ */

/* ── NAV CLOCK — always visible on inner pages ── */
.nav-clock { opacity: 1; transform: translateY(0); }

/* ── CARD ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(100,60,180,0.08);
  position: relative;
  z-index: 1;
}
.card-body { padding: 28px 32px; }
.card-divider { height: 1px; background: rgba(255,255,255,0.5); margin: 24px 0; }

/* ── TABS (reuse timer style) ── */
.timer-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.timer-tab {
  flex: 1; padding: 10px 0; border-radius: 10px;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.timer-tab:hover { color: var(--text); border-color: var(--accent); }
.timer-tab.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── CALC CARD ── */
.calc-card { margin-bottom: 0; }

/* ── CALC MAIN ROW ── */
.calc-main-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-group { display: flex; flex-direction: column; flex: 1; min-width: 140px; }

/* ── OP STACK ── */
.calc-op-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  padding-bottom: 2px;
}
.calc-op-btn {
  width: 20px; height: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.4);
  font-family: 'Montserrat', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.calc-op-btn:hover  { border-color: var(--accent); color: var(--text); }
.calc-op-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ── CALC BTN ALIGNED TO BOTTOM ── */
.calc-btn-set { align-self: flex-end; flex-shrink: 0; }

/* ── INPUT BOX ── */
.calc-input-box {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.5);
}
.calc-time-input {
  flex: 1;
  border: none;
  background: none;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  outline: none;
  letter-spacing: 0.05em;
  cursor: pointer;
  width: 100%;
}

/* ── INPUT ROW (kept for diff tab) ── */
.calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── DURATION INPUTS (reuse timer style) ── */
.duration-setter { display: flex; align-items: center; gap: 8px; margin: 0 auto; }
.duration-field  { display: flex; align-items: center; gap: 6px; }
.duration-input {
  width: 64px; padding: 10px;
  border: 0; background: none;
  font-family: 'DM Mono', monospace; font-size: 28px; font-weight: 500;
  color: var(--text); text-align: center; -moz-appearance: textfield;
}
.duration-input::-webkit-outer-spin-button,
.duration-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.duration-input:focus { outline: none; }
.duration-label { font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600; color: var(--muted); }
.duration-sep   { font-family: 'DM Mono', monospace; font-size: 22px; color: var(--muted); margin: 0 2px; }

/* ── BTN SET ── */
.btn-set {
  height: 52px; padding: 0 24px; border-radius: 12px; border: none;
  background: var(--accent); color: white;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.btn-set:hover { background: #6a4dab; transform: translateY(-1px); }

/* ── RESULT BLOCK ── */
.calc-result {
  margin-bottom: 24px;
  padding: 28px 24px;
  border-radius: 14px;
  background: rgba(124,92,191,0.08);
  border: 1px solid rgba(124,92,191,0.2);
  text-align: center;
}
.calc-result-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.calc-result-time {
  font-family: 'Montserrat', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.calc-result-note {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  min-height: 18px;
}

/* ── TIME BETWEEN ── */
.calc-two-times {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.calc-time-group { flex: 1; }
.calc-arrow {
  flex-shrink: 0;
  color: var(--muted);
  padding-bottom: 14px;
}

/* ── HOW TO ── */
.how-bare { margin-bottom: 40px; }
.how-steps { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.how-step  { display: flex; gap: 16px; align-items: flex-start; }
.step-num  {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: white;
  font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-text { font-family: 'DM Mono', monospace; font-size: 13px; color: var(--muted); line-height: 1.6; padding-top: 6px; }

/* ── RESPONSIVE ── */
@media (min-width: 769px) {
  .calc-main-row { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .calc-group { min-width: 140px; }
  .calc-op-stack { flex-direction: column; width: auto; }
  .calc-btn-set { width: auto; }
  .calc-two-times { flex-direction: row; gap: 16px; }
  .calc-arrow { padding-bottom: 0; transform: none; align-self: center; }
  .calc-result-time { font-size: 42px; }
}



  .calc-op-btn { width: 28px; height: 28px; font-size: 20px; }

  /* 5. Time between — smaller fields and arrow gap */
  .calc-row { gap: 4px; }
  .calc-row .calc-time-input { font-size: 20px; letter-spacing: 0; }
  .calc-row .calc-input-box  { padding: 0 6px; }
  .calc-arrow { font-size: 12px; flex-shrink: 0; }

  /* Calculate button full width */
  .btn-set      { width: 100%; }
  .calc-btn-set { width: 100%; align-self: stretch; }
}

  /* Calculate button full width */
  .btn-set { width: 100%; }
  .calc-btn-set { width: 100%; align-self: stretch; }

  /* Time Between — smaller inputs and tighter arrow */
  .calc-row {
    gap: 4px;
    align-items: center;
  }
  .calc-row .calc-group { flex: 1; min-width: 0; }
  .calc-row .calc-input-box { padding: 0 6px; }
  .calc-row .calc-time-input { font-size: 20px; letter-spacing: 0; }
  .calc-row-arrow { font-size: 14px; flex-shrink: 0; }
}

@media (max-width: 768px) {
  /* 4. +/- centered in a row */
  .calc-op-stack {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 4px 0;
  }

  /* Full-width calculate button */
  .btn-set { width: 100%; }
  .calc-btn-set { width: 100%; align-self: stretch; }

  /* 5. Time Between — smaller inputs and arrow gap */
  .calc-row { gap: 4px; }
  .calc-row .calc-group { flex: 1; min-width: 0; }
  .calc-row .calc-input-box { padding: 0 6px; }
  .calc-row .calc-time-input { font-size: 20px; letter-spacing: 0; }
  .calc-arrow { font-size: 14px; flex-shrink: 0; }
}

@media (max-width: 768px) {
  /* 4. Center the +/- stack */
  .calc-main-row {
    align-items: center;
  }
  .calc-op-stack {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  /* 5. Time Between — smaller inputs and arrow */
  .calc-row {
    gap: 4px;
    align-items: center;
  }
  .calc-row .calc-input-box {
    padding: 0 6px;
    height: 44px;
  }
  .calc-row .calc-time-input {
    font-size: 20px;
    letter-spacing: 0;
  }
  .calc-row .calc-arrow {
    font-size: 13px;
    flex-shrink: 0;
    color: var(--muted);
  }

  /* Calculate button full width */
  .btn-set { width: 100%; }
  .calc-btn-set { width: 100%; }
}
