/* ==============================================================
   GATechX — slideshow.css
   Featured slideshow section only
   ============================================================== */


/* ==============================================================
   1. SLIDESHOW TOKENS
   ============================================================== */

:root {
  --void: #000000;
  --deep: #04070c;
  --panel: #080d15;

  --blue: #2e9bff;
  --blue-hot: #7fd0ff;
  --blue-deep: #0b4fa8;

  --white: #ffffff;
  --mist: #c4d2e2;
  --dim: #7a8ca3;
  --edge: rgba(46, 155, 255, 0.22);

  --f-display: "Orbitron", system-ui, sans-serif;
  --f-body: "Rajdhani", system-ui, sans-serif;
  --f-mono: "Space Mono", ui-monospace, monospace;

  --s-minus-1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --s2: clamp(1.7rem, 1.4rem + 1.2vw, 2.6rem);

  --slideshow-shell: 1200px;
  --slideshow-padding: clamp(1.1rem, 4vw, 2.5rem);
}


/* ==============================================================
   2. SECTION FOUNDATION
   ============================================================== */

.category-section--featured,
.category-section--featured *,
.category-section--featured *::before,
.category-section--featured *::after {
  box-sizing: border-box;
}

.category-section--featured {
  position: relative;
  padding-block: clamp(4rem, 10vw, 8rem);
  color: var(--mist);
  font-family: var(--f-body);
  line-height: 1.65;
}

.category-section--featured .shell {
  width: min(
    calc(100% - (var(--slideshow-padding) * 2)),
    var(--slideshow-shell)
  );
  margin-inline: auto;
}

.category-section--featured img {
  display: block;
  max-width: 100%;
}

.category-section--featured a {
  color: inherit;
}

.category-section--featured button {
  font: inherit;
}

.category-section--featured :focus-visible {
  outline: 2px solid var(--blue-hot);
  outline-offset: 3px;
}


/* ==============================================================
   3. SECTION HEADING
   ============================================================== */

.category-section--featured .section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.category-section--featured .section-heading h2 {
  max-width: 20ch;
  margin: 0;
  color: var(--white);
  font-family: var(--f-display);
  font-size: var(--s2);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.category-section--featured .eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}


/* ==============================================================
   4. SLIDER ARROW CONTROLS
   ============================================================== */

.slider-controls {
  display: flex;
  gap: 0.6rem;
}

.slider-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;

  background: rgba(46, 155, 255, 0.06);
  border: 1px solid var(--edge);
  color: var(--mist);

  cursor: pointer;

  transition:
    color 0.25s ease,
    transform 0.2s ease,
    background 0.25s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.slider-button:hover {
  color: var(--white);
  transform: translateY(-2px);
  background: rgba(46, 155, 255, 0.12);
  border-color: var(--blue);
  box-shadow: 0 0 30px -10px var(--blue);
}

.slider-button:active {
  transform: translateY(0);
}

.slider-button svg {
  width: 21px;
  height: 21px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==============================================================
   5. SLIDER CONTAINER
   ============================================================== */

.featured-slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  background:
    linear-gradient(
      160deg,
      rgba(46, 155, 255, 0.09),
      rgba(8, 13, 21, 0.85)
    );

  border: 1px solid var(--edge);
  box-shadow: 0 30px 80px -50px rgba(46, 155, 255, 0.55);
}

.featured-slider__track {
  position: relative;
  min-height: clamp(500px, 62vw, 680px);
  isolation: isolate;
}


/* ==============================================================
   6. INDIVIDUAL SLIDES
   ============================================================== */

.featured-slide {
  position: absolute;
  inset: 0;
  z-index: 0;

  display: grid;
  align-items: end;
  overflow: hidden;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease,
    transform 0.6s ease;
}

.featured-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}


/* ==============================================================
   7. SLIDE IMAGE AND OVERLAY
   ============================================================== */

.featured-slide__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.featured-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;

  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 0.4s ease;
}

.featured-slide.is-active:hover .featured-slide__media img {
  transform: scale(1.05);
  opacity: 1;
}

.featured-slide__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.96),
      rgba(0, 0, 0, 0.8) 45%,
      rgba(0, 0, 0, 0.2)
    ),
    linear-gradient(
      180deg,
      transparent 30%,
      rgba(0, 0, 0, 0.92)
    );
}


/* ==============================================================
   8. SLIDE CONTENT
   ============================================================== */

.featured-slide__content {
  position: relative;
  z-index: 2;
  width: min(760px, 82%);
  padding: clamp(1.75rem, 5vw, 4rem);
}

.featured-slide .tag {
  display: inline-block;
  margin: 0 0 0.8rem;
  padding: 0.25rem 0.7rem;

  background: var(--blue);
  color: #001428;

  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.featured-slide h3 {
  max-width: 16ch;
  margin: 0.9rem 0 0;

  color: var(--white);
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.featured-slide h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.featured-slide h3 a:hover {
  color: var(--blue-hot);
}

.featured-slide__content > p:not(.tag):not(.byline) {
  max-width: 55ch;
  margin: 1.2rem 0 0;
  color: var(--mist);
}


/* ==============================================================
   9. SLIDE META AND ARTICLE LINK
   ============================================================== */

.featured-slide__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;

  margin-top: 2rem;
  padding-top: 1.25rem;

  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.featured-slide .byline {
  margin: 0;
  color: var(--dim);
  font-family: var(--f-mono);
  font-size: var(--s-minus-1);
  letter-spacing: 0.05em;
}

.featured-slide__link {
  color: var(--blue);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;

  transition: color 0.25s ease;
}

.featured-slide__link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

.featured-slide__link:hover {
  color: var(--blue-hot);
}

.featured-slide__link:hover span {
  transform: translateX(0.4rem);
}


/* ==============================================================
   10. SLIDER FOOTER
   ============================================================== */

.featured-slider__footer {
  position: relative;
  z-index: 3;

  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1rem;

  padding: 0 1.4rem;

  background: rgba(4, 7, 12, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}


/* ==============================================================
   11. SLIDER PROGRESS
   ============================================================== */

.slider-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.slider-progress span {
  display: block;
  width: 0;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--blue-deep),
      var(--blue-hot)
    );

  box-shadow: 0 0 8px var(--blue);
}

.slider-progress span.is-running {
  animation: slideshow-progress 7s linear forwards;
}

@keyframes slideshow-progress {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}


/* ==============================================================
   12. SLIDER DOTS
   ============================================================== */

.slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;

  background: rgba(255, 255, 255, 0.22);
  border: 0;
  border-radius: 50%;

  cursor: pointer;

  transition:
    width 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.slider-dots button:hover {
  background: rgba(127, 208, 255, 0.65);
}

.slider-dots button.is-active {
  width: 26px;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
}


/* ==============================================================
   13. SLIDER COUNTER
   ============================================================== */

.slider-counter {
  display: flex;
  gap: 0.35rem;
  margin: 0;

  color: var(--dim);
  font-family: var(--f-mono);
  font-size: 0.7rem;
}

.slider-counter span:first-child {
  color: var(--white);
}


/* ==============================================================
   14. REVEAL ANIMATION
   Keep this only if slideshow.js controls .reveal elements
   ============================================================== */

.category-section--featured .reveal {
  opacity: 0;
  transform: translateY(34px);

  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);

  transition-delay: calc(var(--i, 0) * 90ms);
}

.category-section--featured .reveal.is-in {
  opacity: 1;
  transform: none;
}


/* ==============================================================
   15. TABLET
   ============================================================== */

@media (max-width: 800px) {
  .featured-slider__track {
    min-height: 620px;
  }

  .featured-slide__content {
    width: min(100%, 680px);
  }

  .featured-slide__overlay {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.92),
        rgba(0, 0, 0, 0.5)
      ),
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 10%,
        rgba(0, 0, 0, 0.96) 85%
      );
  }
}


/* ==============================================================
   16. MOBILE
   ============================================================== */

@media (max-width: 650px) {
  .category-section--featured {
    padding-block: 4rem;
  }

  .category-section--featured .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .slider-controls {
    align-self: flex-end;
  }

  .featured-slider__track {
    min-height: 590px;
  }

  .featured-slide__content {
    width: 100%;
    padding: 1.5rem;
  }

  .featured-slide h3 {
    max-width: 100%;
    font-size: clamp(1.65rem, 8vw, 2.5rem);
  }

  .featured-slide__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-slider__footer {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-block: 0.9rem;
  }

  .slider-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .slider-dots {
    grid-column: 1;
    grid-row: 1;
  }

  .slider-counter {
    grid-column: 2;
    grid-row: 1;
  }
}


/* ==============================================================
   17. SMALL MOBILE
   ============================================================== */

@media (max-width: 420px) {
  .category-section--featured .shell {
    width: min(
      calc(100% - 1.5rem),
      var(--slideshow-shell)
    );
  }

  .featured-slider__track {
    min-height: 620px;
  }

  .featured-slide__content {
    padding: 1.25rem;
  }

  .featured-slide .byline {
    font-size: 0.72rem;
  }
}


/* ==============================================================
   18. REDUCED MOTION
   ============================================================== */

@media (prefers-reduced-motion: reduce) {
  .category-section--featured *,
  .category-section--featured *::before,
  .category-section--featured *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .category-section--featured .reveal {
    opacity: 1;
    transform: none;
  }

  .featured-slide__media img {
    transform: none !important;
  }
}