/* ============================================
   TAMMKREIZ AGENDA PAGE STYLES
   Design moderne et élégant - Mobile First
   ============================================ */

/* ============================================
   CAROUSEL CONTROLS
   ============================================ */
.custom-carousel,
.tk-carousel {
  position: relative;
  padding: 0 var(--tk-space-10);
}

.custom-carousel .carousel-control-prev,
.custom-carousel .carousel-control-next,
.tk-carousel .carousel-control-prev,
.tk-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  background: var(--tk-white);
  border-radius: var(--tk-radius-full);
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  box-shadow: var(--tk-shadow-md);
  transition: all var(--tk-transition-base);
  border: 2px solid var(--tk-gray-100);
}

.custom-carousel .carousel-control-prev,
.tk-carousel .carousel-control-prev {
  left: 0;
}

.custom-carousel .carousel-control-next,
.tk-carousel .carousel-control-next {
  right: 0;
}

.custom-carousel .carousel-control-prev:hover,
.custom-carousel .carousel-control-next:hover,
.tk-carousel .carousel-control-prev:hover,
.tk-carousel .carousel-control-next:hover {
  background: linear-gradient(135deg, var(--tk-orange) 0%, var(--tk-orange-dark) 100%);
  border-color: var(--tk-orange);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--tk-shadow-colored-orange);
}

.custom-carousel .carousel-control-prev-icon,
.custom-carousel .carousel-control-next-icon,
.tk-carousel .carousel-control-prev-icon,
.tk-carousel .carousel-control-next-icon {
  filter: invert(40%);
  width: 20px;
  height: 20px;
}

.custom-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.custom-carousel .carousel-control-next:hover .carousel-control-next-icon,
.tk-carousel .carousel-control-prev:hover .carousel-control-prev-icon,
.tk-carousel .carousel-control-next:hover .carousel-control-next-icon {
  filter: invert(100%);
}

/* Carousel Indicators */
.custom-carousel .carousel-indicators,
.tk-carousel .carousel-indicators {
  bottom: -50px;
  margin-bottom: 0;
}

.custom-carousel .carousel-indicators button,
.tk-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: var(--tk-radius-full);
  background-color: var(--tk-gray-300);
  border: none;
  margin: 0 6px;
  transition: all var(--tk-transition-fast);
  opacity: 1;
}

.custom-carousel .carousel-indicators button.active,
.tk-carousel .carousel-indicators button.active {
  background: linear-gradient(90deg, var(--tk-orange) 0%, var(--tk-yellow) 100%);
  width: 32px;
  border-radius: var(--tk-radius-pill);
}

/* ============================================
   CAROUSEL SECTION HEADERS
   ============================================ */
.carousel-section {
  margin-bottom: var(--tk-space-16);
}

.carousel-section-header {
  margin-bottom: var(--tk-space-8);
  text-align: center;
}

.carousel-section-title {
  font-family: var(--tk-font-heading);
  font-size: var(--tk-font-size-3xl);
  font-weight: var(--tk-font-weight-light);
  color: var(--tk-gray-400);
  margin-bottom: var(--tk-space-2);
  position: relative;
  display: inline-block;
}

.carousel-section-title span {
  font-weight: var(--tk-font-weight-bold);
}

.carousel-section-title-orange span {
  color: var(--tk-orange);
}

.carousel-section-title-blue span {
  color: var(--tk-blue);
}

.carousel-section-title-green span {
  color: var(--tk-green);
}

.carousel-section-subtitle {
  color: var(--tk-gray-500);
  font-size: var(--tk-font-size-base);
  font-weight: var(--tk-font-weight-normal);
}

/* Decorative line under title */
.carousel-section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--tk-orange) 0%, var(--tk-yellow) 100%);
  border-radius: var(--tk-radius-full);
}

/* ============================================
   EVENT CARDS GRID
   ============================================ */
.events-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--tk-space-6);
  padding: var(--tk-space-2);
}

/* ============================================
   LOADING & ERROR STATES
   ============================================ */
.agenda-loading,
.agenda-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: var(--tk-space-4);
}

.agenda-loading {
  color: var(--tk-blue);
}

.agenda-loading::before {
  content: '';
  width: 48px;
  height: 48px;
  border: 4px solid var(--tk-gray-200);
  border-top-color: var(--tk-orange);
  border-radius: var(--tk-radius-full);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.agenda-error {
  color: var(--tk-danger);
}

.agenda-error::before {
  content: '⚠️';
  font-size: var(--tk-font-size-4xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Large screens */
@media (min-width: 1200px) {
  .events-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 991.98px) {
  .custom-carousel,
  .tk-carousel {
    padding: 0 var(--tk-space-6);
  }

  .custom-carousel .carousel-control-prev,
  .custom-carousel .carousel-control-next,
  .tk-carousel .carousel-control-prev,
  .tk-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
  }

  .carousel-section-title {
    font-size: var(--tk-font-size-2xl);
  }

  .events-row {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--tk-space-4);
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .custom-carousel,
  .tk-carousel {
    padding: 0;
  }

  .custom-carousel .carousel-control-prev,
  .custom-carousel .carousel-control-next,
  .tk-carousel .carousel-control-prev,
  .tk-carousel .carousel-control-next {
    display: none;
  }

  .carousel-section {
    margin-bottom: var(--tk-space-10);
  }

  .carousel-section-title {
    font-size: var(--tk-font-size-xl);
  }

  .carousel-section-subtitle {
    font-size: var(--tk-font-size-sm);
  }

  .events-row {
    grid-template-columns: 1fr;
    gap: var(--tk-space-4);
    padding: 0;
  }

  .custom-carousel .carousel-indicators,
  .tk-carousel .carousel-indicators {
    bottom: -30px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .carousel-section-title {
    font-size: var(--tk-font-size-lg);
  }

  .carousel-section-title::after {
    width: 40px;
    height: 3px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .custom-carousel .carousel-control-prev,
  .custom-carousel .carousel-control-next,
  .tk-carousel .carousel-control-prev,
  .tk-carousel .carousel-control-next,
  .agenda-loading::before {
    transition: none;
    animation: none;
  }
}

/* Focus states */
.custom-carousel .carousel-control-prev:focus-visible,
.custom-carousel .carousel-control-next:focus-visible,
.tk-carousel .carousel-control-prev:focus-visible,
.tk-carousel .carousel-control-next:focus-visible {
  outline: 3px solid var(--tk-orange);
  outline-offset: 2px;
}
