/* EduDaily — Calendar CSS */

/* ── Day Strip ─────────────────────────────────────────────────── */
.edu-day-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
}
.edu-day-strip::-webkit-scrollbar { display: none; }

.edu-day-pill {
  align-items: center;
  background: var(--edu-surface);
  border: 2px solid var(--edu-border);
  border-radius: var(--edu-radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-family: var(--edu-font);
  gap: 2px;
  justify-content: center;
  min-height: 52px;
  min-width: 44px;
  padding: 6px 4px;
  scroll-snap-align: start;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.edu-day-pill__num {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.edu-day-pill__name {
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--edu-text-secondary);
}
.edu-day-pill.is-today   { border-color: var(--edu-primary); }
.edu-day-pill.is-active  { background: var(--edu-primary); border-color: var(--edu-primary); color: #fff; }
.edu-day-pill.is-active .edu-day-pill__name { color: rgba(255,255,255,0.75); }

/* Day status dots */
.edu-day-pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--edu-border);
  margin: 1px auto 0;
}
.edu-day-pill.day--done .edu-day-pill__dot     { background: var(--edu-success); }
.edu-day-pill.day--partial .edu-day-pill__dot  { background: var(--edu-warning); }
.edu-day-pill.day--empty .edu-day-pill__dot    { background: var(--edu-border); }
.edu-day-pill.is-active .edu-day-pill__dot     { background: rgba(255,255,255,0.6); }

/* ── Monthly Calendar ──────────────────────────────────────────── */
.edu-cal {
  user-select: none;
}
.edu-cal__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.edu-cal__title {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: capitalize;
  flex: 1;
  text-align: center;
}
.edu-cal__nav {
  align-items: center;
  background: var(--edu-bg);
  border: 1px solid var(--edu-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: 1.25rem;
  height: 40px;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  width: 40px;
}
.edu-cal__nav:hover { background: var(--edu-border); border-color: var(--edu-primary); }
.edu-cal__nav:disabled { opacity: 0.4; cursor: not-allowed; }

.edu-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.edu-cal__dow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 2px;
  text-align: center;
  text-transform: uppercase;
  color: var(--edu-text-secondary);
}
.edu-cal__day {
  aspect-ratio: 1;
  align-items: center;
  background: var(--edu-bg);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: 0.9375rem;
  font-weight: 600;
  justify-content: center;
  position: relative;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.edu-cal__day:hover:not(.is-empty):not(.is-future) {
  background: #EFF6FF;
  border-color: var(--edu-primary);
}
.edu-cal__day:active:not(.is-empty):not(.is-future) { transform: scale(0.95); }
.edu-cal__day.is-empty   { background: transparent; cursor: default; color: transparent; }
.edu-cal__day.is-future  { color: var(--edu-text-secondary); cursor: not-allowed; opacity: 0.4; background: transparent; }
.edu-cal__day.is-today   {
  background: var(--edu-primary);
  color: #fff;
  font-weight: 800;
}
.edu-cal__day.day--done    { background: #D1FAE5; color: #065F46; }
.edu-cal__day.day--partial { background: #FEF3C7; color: #92400E; }
.edu-cal__day.day--empty:not(.is-empty):not(.is-future):not(.is-today) {
  background: var(--edu-bg);
  color: var(--edu-text);
}
.edu-cal__day.is-selected:not(.is-today) {
  border-color: var(--edu-primary);
  background: #EFF6FF;
  color: var(--edu-primary);
}

/* Calendar legend */
.edu-cal__legend {
  align-items: center;
  background: var(--edu-bg);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 0.8125rem;
  color: var(--edu-text-secondary);
}
.edu-cal__legend-item {
  align-items: center;
  display: flex;
  gap: 6px;
}
.edu-cal__legend-dot {
  width: 14px; height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.edu-cal__legend-dot--done    { background: #D1FAE5; }
.edu-cal__legend-dot--partial { background: #FEF3C7; }
.edu-cal__legend-dot--empty   { background: var(--edu-bg); border: 1px solid var(--edu-border); }
