/* Period Tracker */
.pt-wrap { max-width: 900px; display: flex; flex-direction: column; gap: 16px; }

.pt-inputs { padding: 22px; }
.pt-inputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 20px; margin-bottom: 16px; }
.pt-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Input + unit row and section headings (classes shared with tdee-calculator markup) */
.tdee-input-unit { display: flex; align-items: center; gap: 10px; }
.tdee-input-unit input { flex: 1; }
.tdee-unit { color: var(--muted); font-size: .9rem; font-weight: 600; }
.tdee-section-title { font-size: 1rem; font-weight: 700; margin: 0 0 16px; }

/* Today card */
.pt-today {
  padding: 24px; text-align: center;
  background: linear-gradient(135deg, rgba(255,107,170,.08), rgba(160,100,255,.08));
  border: 1px solid rgba(255,107,170,.2);
}
.pt-today-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.pt-today-status { font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.pt-today-detail { font-size: .95rem; color: var(--muted); }

/* Date cards */
.pt-dates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-date-card { padding: 18px; text-align: center; }
.pt-date-ico { font-size: 1.6rem; margin-bottom: 8px; }
.pt-date-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.pt-date-val { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.pt-date-in { font-size: .8rem; color: var(--muted-2); margin-top: 4px; }

.pt-date--period { border-top: 3px solid #ff6baa; }
.pt-date--fertile { border-top: 3px solid #a78bfa; }
.pt-date--ovulation { border-top: 3px solid #ffd06b; }

/* Calendar */
.pt-cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.pt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.pt-dot--period { background: #ff6baa; }
.pt-dot--fertile { background: #a78bfa; }
.pt-dot--ovulation { background: #ffd06b; border: 2px solid #fff; }
.pt-dot--today { background: #5cd6c0; }

.pt-cal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.pt-month { }
.pt-month-name { font-size: .85rem; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.pt-month-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.pt-day-header { font-size: .65rem; font-weight: 700; color: var(--muted-2); text-align: center; padding-bottom: 4px; }
.pt-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; border-radius: 4px; cursor: default;
  color: var(--muted); position: relative;
}
.pt-day--empty { background: none; }
.pt-day--normal { background: var(--bg-soft); }
.pt-day--period { background: rgba(255,107,170,.25); color: #ff6baa; font-weight: 700; }
.pt-day--fertile { background: rgba(167,139,250,.18); color: #c4b5fd; }
.pt-day--ovulation { background: rgba(255,208,107,.25); color: #ffd06b; font-weight: 700; }
.pt-day--today { outline: 2px solid #5cd6c0; color: #5cd6c0; font-weight: 700; }
.pt-day--period.pt-day--today { background: rgba(255,107,170,.35); }

/* History */
.pt-history { display: flex; flex-direction: column; gap: 8px; }
.pt-history-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg-soft);
  font-size: .88rem;
}
.pt-history-date { font-weight: 600; color: var(--text); }
.pt-history-cycle { color: var(--muted); font-size: .8rem; }
.pt-history-del { background: none; border: none; color: var(--muted-2); cursor: pointer; font-size: 1rem; padding: 0 4px; }
.pt-history-del:hover { color: #ff6b8a; }

@media (max-width: 700px) {
  .pt-inputs-grid { grid-template-columns: 1fr 1fr; }
  .pt-dates-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .pt-inputs-grid { grid-template-columns: 1fr; }
  .pt-cal-grid { grid-template-columns: 1fr; }
}
