/* ==========================================================================
   Santos Film Fest 2026 — Daniel Cordeiro Poster Showcase
   Design System & Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* Color Tokens */
  --bg-light: #ffffff;
  --text-header-title: #111113;
  --text-header-body: #686868; /* Requested #686868 */
  
  --bg-dark: #09090b;
  --text-light-heading: #ffffff;
  --text-light-body: #A6A6A6;   /* Requested #A6A6A6 */
  
  --accent-vote: #f4f4f5;
  --accent-vote-text: #09090b;
  
  /* Typography */
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Creato Display', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Spacing & Transitions */
  --container-max-w: 680px;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light-body);
  line-height: 1.6;
}

.container {
  max-width: var(--container-max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   1. LIGHT HEADER SECTION
   ========================================================================== */

.header-section {
  background-color: var(--bg-light);
  color: var(--text-header-title);
  padding: 48px 0 36px 0;
  border-bottom: 1px solid #e4e4e7;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  position: relative;
}

.header-content {
  flex: 1;
}

.header-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--text-header-title);
  line-height: 1.05;
}

.header-text {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--text-header-body); /* #686868 */
  line-height: 1.65;
  font-weight: 400;
  margin-bottom: 28px;
}

.header-text p {
  margin-bottom: 14px;
  color: var(--text-header-body); /* #686868 */
}

.header-text strong {
  color: #1a1a1e;
  font-weight: 600;
}

.header-thanks {
  margin-top: 18px;
  font-weight: 400;
  color: var(--text-header-body); /* #686868 */
}

/* Author Badge */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d4d4d8;
}

.author-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #18181b;
}

/* Festival Logo Top Right */
.header-logo-wrapper {
  flex-shrink: 0;
  width: 150px;
  text-align: right;
}

.festival-logo-link {
  display: inline-block;
  transition: var(--transition-smooth);
}

.festival-logo-link:hover {
  transform: translateY(-2px) scale(1.03);
  opacity: 0.88;
}

.festival-logo {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
}

/* ==========================================================================
   2. MAIN CAROUSEL SECTION (Full Width, No Overlay)
   ========================================================================== */

.main-dark-section {
  background-color: var(--bg-dark);
  padding: 40px 0 80px 0;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.poster-stage {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 3.1;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background-color: #000;
}

.poster-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.98);
}

.poster-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.poster-image-card {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-image-card:hover .poster-img {
  transform: scale(1.015);
}

/* ==========================================================================
   3. CONTROLS BAR (Row Layout for Desktop & Mobile)
   ========================================================================== */

.carousel-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  background: transparent;
  border: none;
  margin-bottom: 48px;
}

.thumbnails-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.thumb-btn {
  width: 48px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #000;
  padding: 0;
  cursor: pointer;
  opacity: 0.35;
  transition: var(--transition-smooth);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-btn:hover {
  opacity: 0.8;
}

.thumb-btn.active {
  opacity: 1;
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.controls-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  text-align: right;
}

.poster-title {
  font-family: var(--font-sans);
  font-size: 13px; /* Requested 13px */
  font-weight: 400;
  color: #dedede;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* Votar CTA Button */
.vote-action {
  display: flex;
  justify-content: flex-end;
}

.btn-vote {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: var(--accent-vote);
  color: var(--accent-vote-text);
  text-decoration: none;
  padding: 8px 30px;
  border-radius: 40px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.12);
}

.btn-vote-text {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-vote-arrow {
  transition: transform 0.25s ease;
  stroke: #000000;
}

.btn-vote:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-vote:hover .btn-vote-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   4. CONCEPT & PROCESS SECTION
   ========================================================================== */

.concept-section {
  position: relative;
  min-height: 400px;
}

.concept-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.concept-pane.active {
  display: block;
  opacity: 1;
}

.section-heading {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-light-heading);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.sub-heading {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light-heading);
  margin-bottom: 8px;
}

.mt-large {
  margin-top: 40px;
}

.lead-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-light-body); /* #A6A6A6 */
  margin-bottom: 28px;
  font-weight: 400;
}

.body-text {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-light-body); /* #A6A6A6 */
  font-weight: 400;
}

.concept-block {
  margin-bottom: 32px;
}

.element-item {
  margin-bottom: 28px;
}

.element-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light-heading);
  margin-bottom: 8px;
}

/* ==========================================================================
   5. LIGHTBOX MODAL
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1010;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.lightbox-caption {
  margin-top: 16px;
  font-size: 1rem;
  color: #e4e4e7;
  font-weight: 500;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 640px) {
  .header-section {
    padding: 32px 0 28px 0;
  }

  .header-container {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }

  .header-logo-wrapper {
    width: 130px;
    align-self: flex-end;
  }

  .header-title {
    font-size: 2.6rem;
  }

  .carousel-wrapper {
    margin-bottom: 16px;
  }

  /* Row layout preserved on mobile as requested */
  .carousel-controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
  }

  .controls-right-group {
    align-items: flex-end;
    text-align: right;
    width: auto;
  }

  .poster-title {
    font-size: 12px;
  }

  .btn-vote {
    padding: 6px 20px;
    gap: 8px;
  }

  .btn-vote-text {
    font-size: 1.45rem;
  }

  .btn-vote-arrow {
    width: 18px;
    height: 18px;
  }

  .thumb-btn {
    width: 42px;
    height: 60px;
  }

  .section-heading {
    font-size: 1.5rem;
  }
}
