/* Frosted card and event styles */

.event-item {
  display: grid;
  grid-template-columns: 3fr 2fr 3fr;
  grid-gap: 1rem;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  justify-items: start;
}

/* Center the middle (date) column both vertically and horizontally */
.event-item {
  justify-items: start;
}
.event-item > :nth-child(2) {
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Ensure first and third columns align correctly */
.event-item > :first-child {
  justify-self: start;
}
.event-item > :last-child {
  justify-self: end;
}

.event-item,
.event-item * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.event-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(255, 255, 255, 0.15);
}
/* Center content in three columns for event-item */
.event-date-month {
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.event-date-day {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-info {
  flex: 1;
  margin-right: 1rem;
}
.event-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-location {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}

.add-calendar-button {
  padding: 0.6rem 1.2rem;
  border: 2px solid #5ac8fa;
  border-radius: 50px;
  background: transparent;
  color: #5ac8fa;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.add-calendar-button:hover {
  background: rgba(90, 200, 250, 0.1);
}

/* Force event title to white */
.event-item .event-title,
.event-item h3 {
  color: #fff !important;
}


.event-date-block {
  grid-column: 2;
  justify-self: center;  /* horizontal */
  align-self: center;    /* vertical */
}
.event-date-block {
  justify-self: center;
  align-self: center;
}