* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface2: #334155;
  --text: #f1f5f9;
  --text2: #94a3b8;
  --accent-school: #38bdf8;
  --accent-public: #fbbf24;
  --accent-hela: #a78bfa;
  --border: #334155;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  padding: 24px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

header h1 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

header .sub {
  font-size: 0.8rem;
  color: var(--text2);
}

header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  background: var(--surface2);
  color: var(--text);
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background .2s;
}

.btn:hover { background: #475569; }

/* Hero */
#hero {
  padding: 32px 0;
}

.hero-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--border);
}

.hero-content.school { border-color: var(--accent-school); }
.hero-content.public { border-color: var(--accent-public); }

.hero-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  background: var(--surface2);
  color: var(--text2);
}

.hero-content.school .hero-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-school);
}

.hero-content.public .hero-badge {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-public);
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-dates {
  color: var(--text2);
  font-size: 1rem;
  margin-bottom: 8px;
}

.hero-status {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--surface2);
}

/* Controls */
.controls {
  display: flex;
  gap: 8px;
  padding: 8px 0 16px;
  flex-wrap: wrap;
}

.filter-btn, .view-btn {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all .2s;
}

.filter-btn.active, .view-btn.active {
  background: var(--accent-school);
  color: #0f172a;
  border-color: var(--accent-school);
  font-weight: 600;
}

.spacer { flex: 1; }

/* List view */
.month-header {
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 0 8px;
  color: var(--accent-school);
}

.holiday-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s;
}

.holiday-item:hover {
  border-color: var(--surface2);
}

.holiday-item.past {
  opacity: 0.5;
}

.holiday-item[data-type="school"] {
  border-left: 3px solid var(--accent-school);
}

.holiday-item[data-type="public"] {
  border-left: 3px solid var(--accent-public);
}

.holiday-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.holiday-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.holiday-date {
  font-size: 0.8rem;
  color: var(--text2);
}

.holiday-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.holiday-tag {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.holiday-tag.school {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-school);
}

.holiday-tag.public {
  background: rgba(251, 191, 36, 0.15);
  color: var(--accent-public);
}

.holiday-duration {
  font-size: 0.8rem;
  color: var(--text2);
  white-space: nowrap;
}

/* Calendar view */
.calendar-month {
  margin-bottom: 24px;
}

.calendar-month h3 {
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  color: var(--accent-school);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-header {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text2);
  padding: 6px 0;
  font-weight: 500;
}

.cal-day {
  background: var(--surface);
  border-radius: 4px;
  min-height: 70px;
  padding: 4px;
  font-size: 0.75rem;
  border: 1px solid transparent;
  position: relative;
}

.cal-day.empty {
  background: transparent;
  border: none;
}

.cal-day.today {
  border-color: var(--accent-school);
}

.cal-day-num {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
}

.cal-day.today .cal-day-num {
  color: var(--accent-school);
}

.cal-events {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-event {
  font-size: 0.6rem;
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-event.school { background: rgba(56, 189, 248, 0.2); color: var(--accent-school); }
.cal-event.public { background: rgba(251, 191, 36, 0.2); color: var(--accent-public); }

footer {
  padding: 24px 0;
  text-align: center;
  color: var(--text2);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

footer a { color: var(--accent-school); }

@media (max-width: 640px) {
  .hero-content h1 { font-size: 1.4rem; }
  .hero-content { padding: 20px; }
  .holiday-right { flex-direction: column; align-items: flex-end; gap: 4px; }
  .cal-day { min-height: 50px; }
}
