/* === CALENDAR PAGE STYLES === */

/* Ornate border frame */
.calendar-frame {
  background-image: linear-gradient(to right, rgba(65, 56, 44, 1) 0%, rgba(65, 56, 44, 1) 100%);
  border-radius: 4px;
  overflow: visible;
}

.outer-border {
  border: 2px solid #6b5e4b;
  padding: 6px;
}

.mid-border {
  border: 1px solid #4a3f30;
  padding: 4px;
}

.inner-border {
  border: 1px solid #6b5e4b;
  padding: 30px 24px;
  position: relative;
  min-height: 200px;
}

/* Corner decorations */
.corner-decoration {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: cover;
  z-index: 2;
}

.corner-left-top {
  top: -4px;
  left: -4px;
}

.corner-right-top {
  top: -4px;
  right: -4px;
  transform: scaleX(-1);
}

.corner-right-bottom {
  bottom: -4px;
  right: -4px;
  transform: scale(-1, -1);
}

.corner-left-bottom {
  bottom: -4px;
  left: -4px;
  transform: scaleY(-1);
}

/* Calendar title */
.calendar-title {
  font-family: 'CentauryDisplay', serif;
  font-weight: normal;
  font-style: normal;
  font-size: 2.1rem;
  color: #d4c4a0;
  text-align: center;
  margin: 0 0 20px 0;
  letter-spacing: 0.03em;
}

/* Date filter controls */
.date-filters {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-family: var(--current-font);
  font-size: 1rem;
  color: #7a8c5e;
  text-transform: lowercase;
}

.date-picker {
  font-family: var(--current-font);
  font-size: 0.95rem;
  color: #e8dcc8;
  background-color: rgba(42, 35, 24, 0.6);
  border: 1px solid #4a3f30;
  border-radius: 6px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.3s ease;
  color-scheme: dark;
}

.date-picker:hover,
.date-picker:focus {
  border-color: #7a8c5e;
}

/* Events list */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Single event */
.event-item {
  padding: 16px 12px;
  border-bottom: 1px solid rgba(74, 63, 48, 0.5);
  transition: background-color 0.2s ease;
}

.event-item:last-child {
  border-bottom: none;
}

.event-item:hover {
  background-color: rgba(42, 35, 24, 0.4);
}

.event-date-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 8px;
}

.event-title {
  font-family: var(--current-font);
  font-size: 1.15rem;
  color: #d4c4a0;
  font-weight: 600;
}

.event-date {
  font-family: var(--current-font);
  font-size: 0.9rem;
  color: #7a8c5e;
  white-space: nowrap;
}

.event-description {
  font-family: var(--current-font);
  font-size: 0.95rem;
  color: #b0a48e;
  line-height: 1.5;
  margin-top: 4px;
}

.event-location {
  font-family: var(--current-font);
  font-size: 0.85rem;
  color: #6b5e4b;
  margin-top: 4px;
  font-style: italic;
}

.event-rsvp {
  margin-top: 6px;
}

.event-rsvp a {
  font-family: var(--current-font);
  font-size: 0.9rem;
  color: #7a8c5e;
  text-decoration: none;
  border: 1px solid #7a8c5e;
  border-radius: 4px;
  padding: 2px 8px;
  display: inline-block;
  background-color: rgba(122, 140, 94, 0.08);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.event-rsvp a:hover {
  background-color: #7a8c5e;
  color: #2a2318;
}

/* No events message */
.no-events {
  text-align: center;
  font-family: var(--current-font);
  font-size: 1rem;
  color: #6b5e4b;
  padding: 30px 0;
  font-style: italic;
}

/* Separator between months */
.month-separator {
  font-family: 'CentauryDisplay', serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.4rem;
  color: #7a8c5e;
  padding: 12px 12px 4px 12px;
  letter-spacing: 0.05em;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .inner-border {
    padding: 20px 14px;
  }

  .calendar-title {
    font-size: 1.8rem;
  }

  .date-filters {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .event-date-line {
    flex-direction: column;
    gap: 2px;
  }

  .corner-decoration {
    width: 28px;
    height: 28px;
  }
}
