@import url('shared.css');

/* =====================
   MAIN CONTENT
   ===================== */

.content {
  margin-top: 150px; margin-left: 5%; margin-right: 5%; margin-bottom: 60px;
  color: var(--text-body); transition: color 0.3s ease;
}

.pagetitle {
  font-size: 70px; text-align: center; margin: 0 0 30px;
  color: var(--text-primary); font-weight: 600; transition: color 0.3s ease;
}

/* =====================
   CALENDAR NAV
   ===================== */

.cal-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 30px; margin-bottom: 20px;
}

.month-btn {
  font-size: 28px; width: 50px; height: 50px;
  border-radius: 10px; border: 2px solid black;
  background-color: var(--accent-light);
  cursor: pointer; transition: background-color 0.2s ease;
}

.month-btn:hover { background-color: var(--accent); color: white; }

.month-label {
  font-size: 32px; font-weight: 600; margin: 0;
  min-width: 260px; text-align: center;
  color: var(--text-primary); transition: color 0.3s ease;
}

/* =====================
   CALENDAR GRID
   ===================== */

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border: 2px solid black;
  border-radius: 12px;
  overflow: hidden;
}

.day-header {
  background-color: var(--accent-dark);
  color: white; text-align: center;
  padding: 10px 0; font-size: 16px; font-weight: 600;
}

.cal-cell {
  min-height: 100px;
  border: 1px solid var(--card-border);
  padding: 6px;
  background-color: var(--card-bg);
  vertical-align: top; position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cal-cell.empty { background-color: var(--bg); }

.cal-cell.today {
  background-color: rgba(0, 132, 255, 0.12);
  border: 2px solid var(--accent);
}

.day-num {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary); display: block; margin-bottom: 4px;
}

.event-pill {
  background-color: var(--accent);
  color: white; font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 20px; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: default;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
  .content { margin-top: 120px; margin-left: 2%; margin-right: 2%; }
  .pagetitle { font-size: 40px; }
  .cal-nav { gap: 16px; }
  .month-label { font-size: 20px; min-width: 160px; }
  .month-btn { width: 36px; height: 36px; font-size: 18px; }
  .cal-cell { min-height: 64px; padding: 3px; }
  .day-num { font-size: 11px; }
  .day-header { font-size: 12px; padding: 6px 0; }
  .event-pill {
    font-size: 10px;
    padding: 2px 5px;
    white-space: normal;
    line-height: 1.3;
  }
}
