/* Calendar Hero - Consistent with other pages */
.calendar-hero {
  background: linear-gradient(135deg, var(--forest-deep, #1a3a2f) 0%, var(--forest-medium, #2d5a47) 60%, var(--forest-light, #4a7c6b) 100%);
  position: relative;
  overflow: hidden;
}

.calendar-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(ellipse at 20% 80%, rgba(196, 165, 116, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(123, 163, 196, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.calendar-hero .hero-body {
  padding: 4rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.calendar-hero-label {
  color: var(--earth-light, #c4a574);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.calendar-hero-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  color: white;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.calendar-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  animation: fadeInUp 0.6s ease-out 0.15s backwards;
}

.calendar-hero-icons {
  margin-top: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.calendar-hero-icons .icon {
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0.75rem;
  font-size: 1.5rem;
}

.calendar-hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  color: var(--background, #faf8f5);
}

.calendar-hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Calendar Main Section */
.calendar-main {
  background: var(--background, #faf8f5);
  padding-top: 2rem;
}

/* Main Layout */
.calendar-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.calendar-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .calendar-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .wheel-side {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Wheel Side */
.wheel-side {
  position: sticky;
  top: 2rem;
}

.wheel-container {
  display: flex;
  justify-content: center;
}

.wheel-instructions {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  margin-top: 2rem;
}

/* The Wheel */
.year-wheel {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  position: relative;
  background: #f5f5f5;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.12),
    inset 0 0 0 3px rgba(255,255,255,0.6);
}

/* Season Segments */
.wheel-segment {
  position: absolute;
  width: 50%;
  height: 50%;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.wheel-segment:hover {
  z-index: 10;
  transform: scale(1.06);
}

.wheel-segment.active {
  z-index: 10;
  transform: scale(1.1);
}

.wheel-segment.active::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 3px solid white;
  border-radius: inherit;
  box-shadow: 0 0 16px rgba(0,0,0,0.25);
}

.winter-segment {
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #74b9d1 0%, #a8d5e5 100%);
  border-radius: 0 100% 0 0;
  transform-origin: bottom left;
}

.spring-segment {
  bottom: 0;
  right: 0;
  background: linear-gradient(225deg, #9ccc65 0%, #c8e6c9 100%);
  border-radius: 0 0 100% 0;
  transform-origin: top left;
}

.summer-segment {
  bottom: 0;
  left: 0;
  background: linear-gradient(315deg, #ffd54f 0%, #fff3cd 100%);
  border-radius: 0 0 0 100%;
  transform-origin: top right;
}

.autumn-segment {
  top: 0;
  left: 0;
  background: linear-gradient(45deg, #ffb74d 0%, #ffe0b2 100%);
  border-radius: 100% 0 0 0;
  transform-origin: bottom right;
}

.segment-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
  transition: transform 0.3s ease;
}

.wheel-segment:hover .segment-icon {
  transform: scale(1.15);
}

.segment-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-top: 0.2rem;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

/* Center Hub */
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 24px rgba(0,0,0,0.12),
    inset 0 0 0 2px rgba(0,0,0,0.04);
  z-index: 50;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wheel-center:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.18),
    inset 0 0 0 2px rgba(0,0,0,0.04);
}

.wheel-center.active {
  box-shadow:
    0 0 0 4px #5e81ac,
    0 8px 32px rgba(0,0,0,0.18);
}

.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem;
}

.center-icon {
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.wheel-center:hover .center-icon {
  transform: scale(1.1);
}

.center-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 0.15rem;
}

.center-hint {
  font-size: 0.6rem;
  color: #999;
  margin-top: 0.1rem;
}

.center-months {
  font-size: 0.6rem;
  color: #666;
  margin-top: 0.1rem;
}

/* Cards Side */
.cards-side {
  min-height: 400px;
}

.cards-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
}

.cards-header-icon {
  font-size: 2.5rem;
  background: #f8f9fa;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cards-header-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #2c3e50;
}

.cards-header-months {
  color: #666;
  font-size: 0.9rem;
}

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 1200px) {
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Activity Card */
.activity-card {
  background: #fafafa;
  border-radius: 14px;
  padding: 1.25rem;
  border-left: 5px solid var(--card-color, #5e81ac);
  transition: all 0.25s ease;
  animation: cardFadeIn 0.35s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

.activity-card:nth-child(1) { animation-delay: 0s; }
.activity-card:nth-child(2) { animation-delay: 0.05s; }
.activity-card:nth-child(3) { animation-delay: 0.1s; }
.activity-card:nth-child(4) { animation-delay: 0.15s; }
.activity-card:nth-child(5) { animation-delay: 0.2s; }
.activity-card:nth-child(6) { animation-delay: 0.25s; }
.activity-card:nth-child(7) { animation-delay: 0.3s; }
.activity-card:nth-child(8) { animation-delay: 0.35s; }

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activity-card:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.activity-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.activity-card-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.activity-card-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.activity-card-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.activity-card-location {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
}

/* Month Pills */
.activity-card-months {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.month-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  background: var(--card-color, #5e81ac);
  color: #333;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Clickable Activity Cards */
.activity-card.is-clickable {
  cursor: pointer;
  position: relative;
}

.activity-card.is-clickable:hover {
  background: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  transform: translateY(-5px);
  border-left-width: 6px;
}

.activity-card.is-clickable::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent var(--card-color, #5e81ac) transparent transparent;
  border-radius: 0 14px 0 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.activity-card.is-clickable:hover::after {
  opacity: 1;
}

.card-read-more {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--forest-medium, #2d5a47);
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
}

.activity-card.is-clickable:hover .card-read-more {
  opacity: 1;
  transform: translateY(0);
}

/* Activity Modal */
.activity-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.activity-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 700px;
  max-height: 85vh;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.activity-modal.is-active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #555;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.15);
  color: #222;
  transform: scale(1.1);
}

.modal-content {
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 1.5rem;
  background: linear-gradient(135deg, var(--forest-deep, #1a3a2f) 0%, var(--forest-medium, #2d5a47) 100%);
  color: white;
}

.modal-icon {
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.15);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-display, 'Playfair Display', Georgia, serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
  padding-right: 2rem;
  color: white;
}

.modal-body {
  padding: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.modal-body p {
  margin-bottom: 1rem;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Article images in modal */
.modal-body .article-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-body .article-images img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Legacy image styles from old articles */
.modal-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.modal-body .content-image-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-body .content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Modal responsive */
@media screen and (max-width: 600px) {
  .activity-modal {
    padding: 0;
  }

  .modal-container {
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .modal-title {
    font-size: 1.4rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .calendar-hero .hero-body {
    padding: 3rem 1.5rem 4rem;
  }

  .calendar-hero-title {
    font-size: 2rem;
  }

  .calendar-hero-subtitle {
    font-size: 1.1rem;
  }

  .calendar-content {
    padding: 1.25rem;
  }

  .year-wheel {
    width: 280px;
    height: 280px;
  }

  .wheel-center {
    width: 100px;
    height: 100px;
  }

  .segment-icon {
    font-size: 1.8rem;
  }

  .segment-label {
    font-size: 0.75rem;
  }

  .activity-grid {
    grid-template-columns: 1fr;
  }

  .wheel-side {
    position: static;
  }
}

