/* /static/css/components/calendar.css */

.day-nav-calendar {
  margin-top: 14px;
  border: 1px solid var(--rule, #D7CCC8);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
  width: 100%;
}

.landing-calendar {
  margin-top: 14px;
  border: 1px solid var(--rule, #D7CCC8);
  border-radius: 10px;
  padding: 14px;
  text-align: left;
}

/* Calendar header */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-month-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #2A1F18);
}
.cal-nav {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-soft, #4A3B30);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.cal-nav:hover { color: var(--burnt-orange, #D95D39); }

/* Calendar grid — 7 columns */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint, #8D6E63);
  text-align: center;
  padding: 4px 0;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
}
.cal-empty { background: transparent; }
.cal-disabled {
  color: var(--ink-faint, #8D6E63);
  cursor: default;
}
.cal-active {
  font-weight: 700;
  color: var(--burnt-orange, #D95D39);
  background: color-mix(in srgb, var(--burnt-orange, #D95D39) 10%, transparent);
}
.cal-active:hover {
  background: color-mix(in srgb, var(--burnt-orange, #D95D39) 20%, transparent);
}
.cal-today.cal-active {
  background: var(--burnt-orange, #D95D39);
  color: #fff;
}
.cal-today.cal-active:hover {
  background: color-mix(in srgb, var(--burnt-orange, #D95D39) 85%, #000);
}
.cal-today.cal-disabled {
  background: var(--rule, #D7CCC8);
  color: var(--ink, #2A1F18);
}

/* Unplayed: published quiz not yet completed */
.cal-unplayed {
  font-weight: 700;
  color: #1a5c35;
  background: var(--color-success-light);
  text-decoration: none;
}
.cal-unplayed:hover { background: #bce0cc; }
.cal-today.cal-unplayed { background: var(--color-success); color: #fff; }
.cal-today.cal-unplayed:hover { background: #218838; }

/* Completed: user has finished this quiz */
.cal-completed {
  font-weight: 700;
  color: #fff;
  background: #2a8f96;
  text-decoration: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.cal-completed:hover { background: #236d73; }
.cal-today.cal-completed { background: #1c6e74; }
.cal-date-num { font-size: 12px; line-height: 1.2; }
.cal-score { font-size: 9px; font-weight: 700; line-height: 1; letter-spacing: 0.03em; opacity: 0.9; }

/* No quiz: past date without a published quiz */
.cal-no-quiz {
  color: var(--ink-faint, #8D6E63);
  cursor: default;
  position: relative;
}
.cal-no-quiz::after {
  content: '';
  position: absolute;
  left: 30%;
  right: 30%;
  top: 50%;
  height: 2px;
  background: #cc4444;
  transform: translateY(-50%);
}
