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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

.calendar-container {
  width: 100%;
  height: 100vh;
  margin: 0;
  background: white;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Calendar Section */
.calendar-section {
  background: #f8f9fa;
  padding: 2rem;
  border-right: 1px solid #e0e0e0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.calendar-header h2 {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.nav-buttons {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.nav-btn:hover {
  color: #e7004a;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Calendar Grid — dotted dividers instead of gaps ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  flex-shrink: 0;
}

.day-header {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.10);
}

#calendar-days {
  display: contents;
}

/* ===== Base day cell (future dates) ===== */
.calendar-day {
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  background: white;
  color: #000; /* future dates: black */
  font-family: "Inter Tight", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
  transition: background-color 0.2s;
}

.calendar-day:hover {
  background-color: #F4BBCB;
  color: #E70042;
}

/* ===== Past dates — unclickable ===== */
.calendar-day.past {
  cursor: default;
  pointer-events: none;
  color: #CED2D9;
  background-color: transparent;
  font-family: "Inter Tight", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  border-radius: 50%;
}

/* ===== Today ===== */
.calendar-day.today {
  background-color: #fff;
  color: #E70042;
  font-weight: 500;
  border-radius: 50%;
}

.calendar-day.selected {
  background-color: #E70042;
  color: #FFF;
  font-weight: 500;
  border-radius: 50%;
}


/* Remove Powered By */
.powered-by {
  display: none;
}

/* Events Section */
.events-section {
  padding: 2rem;
  overflow-y: auto;
}

.events-header {
  margin-bottom: 2rem;
}

.events-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

/* Event Cards */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.no-events {
  color: #9ca3af;
  text-align: center;
  padding: 3rem;
  font-size: 16px;
}

.event-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #eceef1;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
  transition: all 0.2s;
}

.event-card:hover {
  box-shadow: 0 8px 16px -4px rgb(0 0 0 / 0.12);
  transform: translateY(-2px);
}


.event-image {
  width: 100%;
  height: 180px;
  aspect-ratio: landscape;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}


.event-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}


.event-time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 1rem;
}

.event-time::before {
  content: "🕐";
}

.event-description {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.event-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}


.event-btn {
  flex: 0 0 auto;
  width: auto;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.event-btn:hover,
.event-btn:focus,
.event-btn:visited {
  text-decoration: none;
}

.event-btn-primary {
  background-color: #111827;
  color: white;
  border: 2px solid #111827;
}

.event-btn-primary:hover {
  background-color: #e7004a;
  border-color: #e7004a;
  box-shadow: 0 4px 10px -2px rgb(231 0 74 / 0.35);
  transform: translateY(-1px);
}

.event-btn-secondary {
  background-color: transparent;
  color: #e7004a;
  border: 2px solid #e7004a;
}

.event-btn-secondary:hover {
  background-color: #fef2f2;
  box-shadow: 0 4px 10px -2px rgb(231 0 74 / 0.2);
  transform: translateY(-1px);
}

.free-badge {
  margin-left: auto;
  background-color: #4caf50;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
} 

/* Event Detail View */
.event-detail {
  animation: fadeIn 0.3s ease-in;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #e7004a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 12px 0;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.back-button:hover {
  color: #b8325d;
}

.event-detail-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}

.event-detail-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.3;
}

.event-detail-info {
  background: #f9fafb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  color: #374151;
  min-width: 80px;
}

.free-badge-large {
  background-color: #4caf50;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
}

.event-detail-description {
  margin-bottom: 32px;
}

.event-detail-description h3 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.event-detail-description p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  white-space: pre-wrap;
}

.event-detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.event-btn-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 8px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 968px) {
  .calendar-section {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
  }
}

@media (max-width: 768px) {
  .calendar-section {
    padding: 1rem;
  }

  .events-section {
    padding: 1rem;
  }

  .calendar-header h2 {
    font-size: 12px;
  }

  .events-header h2 {
    font-size: 20px;
  }

  .calendar-day {
    font-size: 13px;
  }

  .event-card h3 {
    font-size: 18px;
  }

  .event-detail-image {
    height: 200px;
  }

  .event-detail-title {
    font-size: 20px;
  }

  .event-detail-actions {
    flex-direction: column;
  }

    /* Only force full width for the detail page buttons */
  .event-detail-actions .event-btn {
    width: 100%;
    text-align: center;
  }

  /* Card buttons: stack vertically so they never overflow */
  .event-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .event-buttons .event-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .calendar-section,
  .events-section {
    padding: 1rem;
  }
}

.calendar-day.empty{
  background-color: transparent;
  cursor:default;
}

@media (max-width: 480px) {
  .calendar-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .calendar-section {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    overflow: visible;
  }

  .calendar-header {
    margin-bottom: 16px;
  }

  .events-section {
    min-height: 0;
  }
}