/* CourseOS · Schedule Screen
   15-week semester calendar view with class rows,
   color-coded by course, badges for exams and due dates. */

/* Header */
.schedule-header {
  padding: var(--space-md) var(--space-md) var(--space-sm);
}

.schedule-title {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.schedule-subtitle {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Week block */
.week-block {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  margin: 0 var(--space-md) var(--space-sm);
  overflow: hidden;
}

.week-block.current-week {
  border: 2px solid var(--color-red);
  box-shadow: var(--shadow-md);
}

/* Week header */
.week-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: var(--border-width) solid var(--gray-100);
}

.week-block.current-week .week-header {
  background: var(--color-red);
  color: #fff;
}

.week-label {
  font-size: var(--font-sm);
  font-weight: 700;
}

.week-dates {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.week-block.current-week .week-dates {
  color: rgba(255,255,255,0.8);
}

.week-current-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Class row inside a week */
.class-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px var(--space-md);
  border-bottom: var(--border-width) solid var(--gray-100);
  min-height: 44px;
}

.class-row:last-child {
  border-bottom: none;
}

/* Today's class row highlight within current week */
.class-row.today-row {
  background: #FFF7ED;
  position: relative;
}

.class-row.today-row::before {
  content: 'TODAY';
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #9A3412;
  background: #FFEDD5;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Course color dot — hidden, replaced by left border */
.class-dot {
  display: none;
}

/* Day column — prominent day anchor */
.class-day-col {
  width: 42px;
  flex-shrink: 0;
  text-align: center;
}

.class-day-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.class-day-time {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Class info */
.class-info {
  flex: 1;
  min-width: 0;
}

.class-name {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.class-time {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Campus badges */
.campus-badge {
  display: inline-block;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}

.campus-badge.rh {
  background: #DBEAFE;
  color: #1E40AF;
}

.campus-badge.lc {
  background: #FEE2E2;
  color: #991B1B;
}

/* Badges for events in the week */
.week-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.week-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.week-badge.due {
  background: #FEF0F0;
  color: #C0392B;
}

.week-badge.exam {
  background: #FFF0D4;
  color: #7A4800;
}

.week-badge.event {
  background: #E8F8F5;
  color: #1A8A6A;
}

/* No class label */
.no-class-label {
  padding: 8px var(--space-md);
  font-size: var(--font-xs);
  color: var(--text-muted);
  font-style: italic;
}

/* Explicit "no assignments" confirmation */
.no-due-label {
  padding: 6px var(--space-md);
  font-size: 10px;
  font-weight: 600;
  color: #166534;
  background: #F0FDF4;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Past week styling */
.week-block.past-week {
  opacity: 0.55;
}

.week-block.past-week .week-header {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Collapsed past weeks: hide class rows */
.week-block.collapsed .week-body {
  display: none;
}

.week-block.collapsed .no-class-label {
  display: none;
}

/* Chevron hint for collapsed state */
.week-block.past-week .week-label::after {
  content: ' ▸';
  font-size: 10px;
  color: var(--text-muted);
}

.week-block.past-week:not(.collapsed) .week-label::after {
  content: ' ▾';
}
