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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #e2e8f0;
  padding: 2rem 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.header h1 img {
  width: 2.5rem;
  height: 2.5rem;
}

.header p {
  font-size: 1.25rem;
  color: #cbd5e1;
}

.intro-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-items: center;
}

@media (min-width: 768px) {
  .intro-section {
    grid-template-columns: 1fr 1fr;
  }
}

.intro-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.intro-text h2 {
  font-size: 2.5rem;
  color: #a855f7;
  margin-bottom: 1rem;
}

.intro-text p {
  margin-bottom: 1rem;
}

.intro-image {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.intro-full {
  grid-column: 1 / -1;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e2e8f0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1rem;
}

.intro-full h2 {
  font-size: 2.0rem;
  color: #a855f7;
  margin-bottom: 1rem;
  text-align: center;
}


/*    .intro-full {
  grid-column: 1 / -1;
  font-size: 1.125rem;
  line-height: 1.8;
  color: #e2e8f0;
  margin-bottom: 1rem;
}
*/
.calendars-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .calendars-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .calendars-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calendar {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.calendar-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.calendar-header h2 {
  font-size: 1.75rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.calendar-header .year {
  font-size: 1rem;
  color: #cbd5e1;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.weekday {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #a855f7;
  padding: 0.5rem 0;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.2s;
  position: relative;
}

.day.empty {
  visibility: hidden;
}

.day.inactive {
  color: #475569;
  cursor: default;
}

.day.active {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #e9d5ff;
  cursor: pointer;
}

.day.active:hover {
  background: rgba(168, 85, 247, 0.4);
  border-color: #a855f7;
  transform: scale(1.1);
  box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.5);
}

.day a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-box {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
}

.legend-box.active {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.legend-box.inactive {
  background: transparent;
  border: 1px solid #475569;
}

@media (max-width: 639px) {
  .header h1 {
    font-size: 2rem;
  }

  .header p {
    font-size: 1rem;
  }

  .calendar {
    padding: 1rem;
  }

  .calendar-header h2 {
    font-size: 1.5rem;
  }

  .day {
    font-size: 0.85rem;
  }
}

/* Make links inside intro-text match surrounding text (no underline) */
.intro-text a {
  text-decoration: none;
  color: inherit;
  position: relative;
  display: inline-block;
}

.intro-text a::after {
  content: attr(data-hover);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0.25rem);
  bottom: 100%;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.85rem;
  color: #e2e8f0;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}

.intro-text a:hover::after,
.intro-text a:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-0.25rem);
}

.intro-text a:focus {
  outline: none;
}
