.main {
  padding: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.5) 0%, transparent 30%);
}

[data-theme='dark'] .main {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.3) 0%, transparent 30%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: 2px;
  opacity: 0.8;
}

.title {
  font-size: 3rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: var(--ifm-heading-color);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.subtitle {
  font-size: 1.1875rem;
  color: var(--ifm-color-emphasis-600);
  margin: 0;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
  font-weight: 400;
}

/* Section Headers */
.sectionHeader {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 3rem;
}

.sectionTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ifm-heading-color);
  margin: 0;
  letter-spacing: -0.01em;
}

.sectionLine {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--ifm-color-emphasis-200) 0%, transparent 100%);
}

/* Events Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Empty State */
.empty {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.6) 100%);
  border-radius: 16px;
  position: relative;
}

.empty::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(148, 163, 184, 0.05) 100%);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

[data-theme='dark'] .empty {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.7) 100%);
}

.empty p {
  color: var(--ifm-color-emphasis-600);
  margin: 0 0 1.25rem 0;
  font-size: 1.0625rem;
}

.resetButton {
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease;
  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resetButton:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.resetButton:active {
  transform: translateY(0);
}

/* CTA Section */
.cta {
  margin-top: 5rem;
  padding: 3.5rem;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0edff 50%, #f5f9ff 100%);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.25) 0%,
    rgba(99, 102, 241, 0.1) 50%,
    rgba(37, 99, 235, 0.15) 100%
  );
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

[data-theme='dark'] .cta {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.15) 0%,
    rgba(30, 41, 59, 0.8) 50%,
    rgba(15, 23, 42, 0.9) 100%
  );
}

[data-theme='dark'] .cta::before {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

[data-theme='dark'] .cta::after {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.4) 0%,
    rgba(99, 102, 241, 0.15) 50%,
    rgba(37, 99, 235, 0.25) 100%
  );
}

.ctaContent {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ctaTitle {
  font-size: 1.75rem;
  font-weight: 750;
  margin: 0 0 0.875rem 0;
  color: var(--ifm-heading-color);
  letter-spacing: -0.02em;
}

.ctaDescription {
  font-size: 1.0625rem;
  color: var(--ifm-color-emphasis-700);
  margin: 0 0 1.75rem 0;
  line-height: 1.65;
}

[data-theme='dark'] .ctaDescription {
  color: var(--ifm-color-emphasis-600);
}

.ctaButton {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease;
}

.ctaButton:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: white;
  text-decoration: none;
}

.ctaButton:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 996px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 2.5rem 1rem 4rem;
  }

  .header {
    margin-bottom: 2.5rem;
  }

  .header::after {
    bottom: -1.25rem;
    width: 50px;
  }

  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cta {
    margin-top: 3.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 16px;
  }

  .cta::after {
    border-radius: 16px;
  }

  .ctaTitle {
    font-size: 1.375rem;
  }

  .ctaDescription {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .ctaButton {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .sectionHeader {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .sectionTitle {
    font-size: 1.125rem;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .container {
    padding: 2rem 1rem 3.5rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .empty {
    padding: 3.5rem 1.5rem;
  }

  .cta {
    padding: 2rem 1.25rem;
  }

  .ctaTitle {
    font-size: 1.25rem;
  }
}

/* Touch device optimization */
@media (hover: none) {
  .resetButton:hover {
    transform: none;
    box-shadow:
      0 2px 8px rgba(37, 99, 235, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .resetButton:active {
    transform: scale(0.98);
  }

  .ctaButton:hover {
    transform: none;
    box-shadow:
      0 4px 14px rgba(37, 99, 235, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .ctaButton:active {
    transform: scale(0.98);
  }
}
