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

body {
  font-family: 'Source Serif 4', ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
  background: #fafafa;
  color: #404040;
  -webkit-font-smoothing: antialiased;
}

.cal {
  max-width: 540px;
  margin: 0 auto;
  padding: 20px 16px 12px;
}

.cal-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #404040;
}

.cal-title {
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #404040;
}

.cal-week {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #737373;
  font-weight: 500;
}

.day {
  margin-bottom: 2px;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: default;
}

.day-name {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #404040;
  min-width: 44px;
}

.day-date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #737373;
  font-weight: 500;
}

.day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f7931a;
  flex-shrink: 0;
}

.day-dot.empty {
  background: #d4d4d8;
}

.day-count {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #737373;
  margin-left: auto;
}

.events {
  padding: 0 0 8px 54px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 8px 12px;
  background: #f4f4f5;
  border-radius: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
  position: relative;
}

.event:hover {
  background: #e4e4e7;
  transform: translateX(3px);
}

.event-time {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #f7931a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.event-title {
  font-family: 'Source Serif 4', ui-serif, Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 2px;
  color: #404040;
}

.event-venue {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  color: #737373;
  font-weight: 400;
}

.event-tag {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 4px;
}

.tag-filozofija { background: #e8dff5; color: #6b3fa0; }
.tag-znanost   { background: #dceefb; color: #1a6fb5; }
.tag-tech      { background: #d9f5e3; color: #1a7a3a; }
.tag-drustvo   { background: #fde8d8; color: #b35a1f; }
.tag-matematika { background: #fef3cd; color: #856404; }

.cal-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #d4d4d8;
  text-align: center;
}

.cal-footer a {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #f7931a;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.15s;
}

.cal-footer a:hover {
  background-color: rgba(247, 147, 26, 0.12);
}

.cal-footer .sub-note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #737373;
  margin-top: 4px;
}

.today .day-name {
  color: #f7931a;
}

.today .day-header {
  position: relative;
}

.today .day-header::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: #f7931a;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .cal { padding: 16px 12px 8px; }
  .cal-title { font-size: 19px; }
  .events { padding-left: 44px; }
  .event-title { font-size: 13px; }
}
