/**
 * Case Studies Carousel - Dark Theme
 * Simplified cards matching site aesthetic
 */

/* Section Reset */
.results-section {
  padding: 80px 0 !important;
  background: #000000 !important;
}

/* Header Content */
.results-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 64px;
}

.results-header-content .section-title {
  margin-bottom: 12px;
  color: #E7EAE7 !important;
}

.results-header-content .section-subtitle {
  color: #B0B0B0 !important;
}

/* Navigation Arrows - Top Right */
.carousel-nav-controls {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.carousel-nav-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0A0A0A;
  border: 1px solid #1A1A1A;
  color: #E7EAE7;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav-arrow:hover {
  background: #6B8E23;
  border-color: #6B8E23;
  color: #000;
  transform: scale(1.05);
}

.carousel-nav-arrow:active {
  transform: scale(0.95);
}

.carousel-nav-arrow svg {
  width: 24px;
  height: 24px;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  margin: 0 -20px;
}

/* Carousel Track Wrapper - Shows peek of next card */
.carousel-track-wrapper {
  overflow: visible;
  padding: 0 20px;
}

.carousel-track {
  display: flex;
  gap: 32px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y pinch-zoom;
}

.carousel-slide {
  flex: 0 0 auto;
  min-width: 0;
}

/* Carousel Card - Compact Square Design */
.carousel-card {
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(5, 5, 5, 0.98) 100%);
  border: 1px solid rgba(107, 142, 35, 0.2);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  overflow: hidden;
  width: 650px;
  min-height: 500px;
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(107, 142, 35, 0.2),
              0 4px 12px rgba(0, 0, 0, 0.4);
  border-color: rgba(107, 142, 35, 0.4);
}

/* Content Column */
.case-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}

/* Industry Tag */
.case-industry {
  font-size: 12px;
  font-weight: 600;
  color: #6B8E23;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(107, 142, 35, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid rgba(107, 142, 35, 0.2);
  width: fit-content;
}

/* Metric at Bottom */
.case-right {
  margin-top: auto;
  padding-top: 32px;
  border-top: 2px solid rgba(107, 142, 35, 0.2);
}

.case-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.case-label {
  font-size: 13px;
  font-weight: 700;
  color: #6B8E23;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-label::before {
  content: '';
  width: 3px;
  height: 14px;
  background: #6B8E23;
  border-radius: 2px;
}

.case-text {
  font-size: 15px;
  line-height: 1.6;
  color: #B0B0B0;
  margin: 0;
}

/* Big Metric - Hero Element at Bottom */
.case-metric {
  font-size: 52px;
  font-weight: 700;
  color: #6B8E23;
  line-height: 1.2;
  background: linear-gradient(135deg, #6B8E23 0%, #556B2F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Progress Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1A1A1A;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: #3A3A3A;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #6B8E23;
  width: 32px;
  border-radius: 6px;
}

/* Tablet Styles */
@media (max-width: 1024px) {
  .results-section {
    padding: 64px 0 !important;
  }

  .results-header-content {
    margin-bottom: 48px;
  }

  .carousel-card {
    width: 550px;
    min-height: 480px;
    padding: 36px;
    gap: 28px;
  }

  .case-left {
    gap: 24px;
  }

  .case-right {
    padding-top: 28px;
  }

  .case-metric {
    font-size: 46px;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .results-section {
    padding: 48px 0 !important;
  }

  .results-header-content {
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
  }

  .carousel-nav-controls {
    width: 100%;
    justify-content: center;
  }

  .carousel-container {
    margin: 0 -16px;
  }

  .carousel-track-wrapper {
    padding: 0 16px;
  }

  .carousel-track {
    gap: 24px;
  }

  .carousel-card {
    width: 90vw;
    max-width: 420px;
    min-height: 450px;
    padding: 36px 32px;
    gap: 24px;
  }

  .case-left {
    gap: 20px;
  }

  .case-industry {
    font-size: 11px;
    padding: 6px 12px;
  }

  .case-section {
    gap: 8px;
  }

  .case-label {
    font-size: 12px;
  }

  .case-label::before {
    height: 12px;
  }

  .case-text {
    font-size: 14px;
  }

  .case-right {
    padding-top: 24px;
  }

  .case-metric {
    font-size: 36px;
  }

  .carousel-dots {
    margin-top: 32px;
  }
}

/* Very small mobile */
@media (max-width: 480px) {
  .carousel-card {
    width: 85vw;
    max-width: 360px;
    padding: 28px 24px;
    min-height: 420px;
  }

  .case-metric {
    font-size: 32px;
  }
}

/* Performance optimizations */
.carousel-slide {
  will-change: transform;
}

.carousel-track {
  will-change: transform;
}
