@import url('variables.css');

/* ============================================================
   BFFI — Link-in-bio page ("Linktree"-style)
   Tokens mirror design.md / index.html. Self-contained, zero-build.
   ============================================================ */


/* Tokens are defined in assets/css/variables.css */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.55;
  background-color: var(--paper);
}

/* Helper Utilities */
.is-hidden {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   LAYOUT / MULTI-SECTION V2 SYSTEM (Scroll Snapping)
   ============================================================ */

.section-v2 {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.section-v2--hero {
  height: calc(100vh - 38px);
  height: calc(100dvh - 38px);
  min-height: 480px;
  padding: 0;
}

@media (min-width: 768px) {
  .section-v2--hero {
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }
}

.hero-poster-artwork {
  position: absolute;
  top: 36px;
  bottom: 0;
  left: 0;
  right: 0;
  background: url('../img/bffi-poster.png') center 20px / contain no-repeat;
  z-index: 1;
}

.logos--top {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 10;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-social-btn {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, color 0.15s ease;
}

.hero-social-btn:hover {
  transform: translateY(-2px);
  color: var(--terracotta);
}

.hero-social-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Sutil dark fade edges so the poster sits beautifully regardless of device aspect ratio */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: radial-gradient(circle, transparent 40%, rgba(20, 16, 12, 0.6) 80%, #14100c 100%); */
  z-index: 2;
  pointer-events: none;
}

/* Floating enter/bounce arrow button on bottom center */
.scroll-arrow-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(51, 41, 31, 0.85);
  border: 1px solid var(--paper);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: background 0.15s, transform 0.15s;
  animation: bounceArrow 2s infinite;
}

.scroll-arrow-btn:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  transform: translateX(-50%) translateY(2px);
  animation-play-state: paused;
}

.scroll-arrow-btn__icon {
  width: 14px;
  height: 14px;
}

@keyframes bounceArrow {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-6px);
  }
}

/* --- Section 2: Links Specific Styles --- */
.section-v2--links {
  background-color: var(--paper);
}

/* --- Section 3: Movies Shows layout --- */
.section-v2--movies {
  /* background-color: var(--paper); */
  padding: 25px 16px;
  display: block;
}

@media (min-width: 768px) {
  .section-v2--movies {
    padding-top: 34px;
  }
}

.movies-container {
  max-width: 1024px;
  margin: 0 auto;
}

.movies-header {
  text-align: center;
  margin-bottom: 48px;
}

.movies-eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: block;
}

.movies-title {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}

.movies-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  color: var(--ink-soft);
  max-width: 29ch;
  margin: 0 auto;
}

.movies-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .movies-grid {
    grid-template-columns: 1fr 1fr;
  }

  .movie-card--offset {
    padding-top: 3rem;
  }
}

.movie-card {
  /* background: rgba(255, 255, 255, 0.75); */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.movie-card__img-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  /* background: var(--sand); */
}

.movie-card__still-placeholder {
  width: 100%;
  height: 100%;
  /* background: var(--slate) url('../img/hero-poster-bg.jpg') center center / cover no-repeat; */
  opacity: 0.85;
}

.movie-card__time {
  position: absolute;
  bottom: 12px;
  left: 12px;
  /* background: var(--ink); */
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 0;
}

.movie-card__content {
  padding: 24px 4px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.movie-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.1;
  transition: transform 0.2s ease-in-out;
}



.movie-card__pt {
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  margin: 0 0 8px;
  font-weight: 400;
}

.movie-card__director-label {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

.movie-card__metadata-specs {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.movie-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease-in-out;
}

/* Darken the image on movie card hover */
.movie-card:hover .movie-card__img {
  filter: brightness(0.75);
}

.movie-card__synopsis {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
  flex-grow: 1;
}

/* Movie Card Action Button */
.movie-card__btn {
  display: inline-block;
  text-align: center;
  border: 1px solid var(--color-ink);
  background: var(--color-paper);
  color: var(--color-text-dark);
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.movie-card__btn:hover {
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  color: var(--color-white);
}

/* Movie Card Disabled Button Modifier */
.movie-card__btn--disabled {
  color: var(--color-ink-soft);
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   POSTER DETAIL SPEC COLUMNS (Brutalist style)
   ============================================================ */

.movie-card__details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding-top: 16px;
  /* border-top: 1px solid var(--hairline); */
}

.movie-details-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.movie-details-col__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.movie-details-col__val {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}


/* ============================================================
   LAYOUT / MOBILE WALLPAPER
   The wallpaper is fixed, covering the viewport so it remains
   static while the sheet raises up. Parallax handles subtle movement.
   ============================================================ */

.wallpaper {
  display: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 50px 30px 44px;
}

@media (max-width: 640px) {
  .wrap {
    max-width: none;
    padding: 40px 20px 44px;
  }
}



/* ============================================================
   HEADER SECTION
   ============================================================ */

.top {
  text-align: center;
  margin-bottom: clamp(24px, 6vw, 38px);
}

.presents {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 1rem;
  color: var(--ink);
  display: block;
}

.avatar {
  width: 250px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.brand {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.tagline {
  font-size: 14px;
  color: var(--ink);
  margin: 0 auto;
  max-width: 34ch;
}

.dates {
  display: inline-block;
  /* margin-top: 14px; */

}

/* ============================================================
   SIGNATURE & MOTIF STYLES
   ============================================================ */

.spark {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  color: var(--terracotta);
}

/* ============================================================
   LINK BUTTONS
   ============================================================ */

.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  /* background: var(--color-white); */
  color: var(--color-text-dark);
  border: 2px solid var(--color-border-dark);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.link:hover,
.link:focus-visible {
  background: var(--color-btn-hover-bg);
  color: var(--color-btn-hover-text);
  transform: translateY(-2px);
  outline: none;
}

.link--primary {
  border-color: var(--color-terracotta);
}

.link--primary:hover,
.link--primary:focus-visible {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 5px 0 rgba(189, 82, 49, 0.4);
}

.link__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
}

.link__icon svg {
  width: 22px;
  height: 22px;
}

.link__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link__label {
  line-height: 1.25;
}

.link__sub {
  font-weight: 400;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

.link:hover .link__sub,
.link:focus-visible .link__sub {
  color: var(--color-paper);
  opacity: 0.85;
}

.link--primary:hover .link__sub,
.link--primary:focus-visible .link__sub {
  color: var(--color-white);
}

.link__chev {
  flex: 0 0 auto;
  opacity: 0.4;
  transition: opacity 0.12s, transform 0.12s;
}

.link:hover .link__chev {
  opacity: 0.9;
  transform: translateX(3px);
}

/* ============================================================
   SHARE / SYSTEM ACTION BUTTONS
   ============================================================ */

.actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.share-btn:hover {
  color: var(--terracotta);
}

/* ============================================================
   FOOTER & CREDITS
   ============================================================ */

.footer {
  text-align: center;
  margin-top: 34px;
  font-size: 12px;
  color: var(--ink-soft);
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.credits {
  margin-top: 20px;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.credit-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.credit-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.credit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.credit-logo {
  width: auto;
  height: 55px;
  object-fit: contain;
}

.credit-logo--sm {
  height: 66px;
}

.team {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.team span {
  color: var(--ink);
  font-weight: 600;
}

.credit-dates,
.dates {
  font-weight: 400;
  font-size: 14px;
  color: var(--ink);
  /* color: #98351f; */
}

.credit-dates {
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-dark);
  margin-top: 4px;
}

/* ============================================================
   SOCIAL MEDIA ICONS
   ============================================================ */

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  margin-top: 25px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  transition: transform 0.12s ease, color 0.12s ease;
}

.social:hover,
.social:focus-visible {
  color: var(--color-terracotta);
  transform: translateY(-2px);
  outline: none;
}

.social svg {
  width: 25px;
  height: 25px;
  display: block;
}

/* ============================================================
   DYNAMICAL MODAL / QR POPUP
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(51, 41, 31, 0.55);
  backdrop-filter: blur(2px);
}

.modal.open {
  display: flex;
}

.modal__card {
  background: var(--color-paper);
  border: 2px solid var(--color-border-dark);
  border-radius: 8px;
  padding: 26px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.modal__card h2 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 24px;
  margin: 0 0 4px;
}

.modal__card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 18px;
  word-break: break-all;
}

.qr-box {
  width: 220px;
  height: 220px;
  margin: 0 auto 18px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: 10px;
  border-radius: 6px;
}

.qr-box img,
.qr-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.modal__close {
  margin-top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  border: 2px solid var(--color-btn-border);
  background: transparent;
  color: var(--color-text-dark);
  padding: 12px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--color-btn-hover-bg);
  color: var(--color-btn-hover-text);
}

/* ============================================================
   PARTNERS SECTION (White background, 5 Columns Grid)
   ============================================================ */

.partners-section {
  background-color: #ffffff;
  color: #000000;
  padding: 50px 24px 60px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--font-ui);
}

.partners-section__wrap {
  max-width: 1260px;
  margin: 0 auto;
}

.partners-section__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 36px 0;
  font-family: var(--font-ui);
}

.partners-section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 24px;
  align-items: end;
  justify-items: start;
}

@media (max-width: 849px) {
  .partners-section__item:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 850px) {
  .partners-section {
    padding: 60px 40px 80px;
  }

  .partners-section__grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 48px 36px;
  }
}

.partners-section__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  width: 100%;
}

.partners-section__category {
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 14px;
  display: block;
  line-height: 1.2;
  white-space: nowrap;
}

.partners-section__item img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  /* filter: grayscale(100%); */
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
  display: block;
}

/* ============================================================
   SITE FOOTER (Dark Theme, 4 Columns Layout)
   ============================================================ */

.site-footer {
  background-color: #000000;
  color: #ffffff;
  width: 100%;
  padding: 50px 24px 60px;
  font-family: var(--font-ui);
}

.site-footer__wrap {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Left side container (Solax + Festival info) */
.site-footer__left-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__brand {
  flex-shrink: 0;
}

.site-footer__logo {
  width: 110px;
  height: auto;
  filter: brightness(0) invert(1);
  display: block;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  font-family: var(--font-ui);
}

.site-footer__subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 24px 0;
  line-height: 1.3;
}

.site-footer__contact {
  font-size: 13px;
  line-height: 1.45;
  color: #ffffff;
}

.site-footer__contact p {
  margin: 0 0 2px 0;
}

.site-footer__contact a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

.site-footer__contact a:hover {
  opacity: 0.85;
}

/* Right side container (Venues + Socials) */
.site-footer__right-group {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.site-footer__venues {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer__venue-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px 0;
  font-family: var(--font-ui);
}

.site-footer__venue-address {
  font-size: 13px;
  line-height: 1.45;
  color: #ffffff;
  margin: 0;
  max-width: 260px;
}

/* Social Buttons */
.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__social-btn {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-footer__social-btn:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.site-footer__social-btn svg {
  width: 26px;
  height: 26px;
}

/* Desktop layout breakpoint */
@media (min-width: 900px) {
  .site-footer {
    padding: 60px 40px 70px;
  }

  .site-footer__wrap {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
  }

  .site-footer__left-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .site-footer__logo {
    width: 115px;
    margin-top: 4px;
  }

  .site-footer__right-group {
    align-items: flex-start;
  }

  .site-footer__venues {
    flex-direction: row;
    gap: 40px;
  }
}