/* ============================================================
   PORTAL DO CLIENTE — Estilos específicos (Telas 1, 2, 3)
============================================================ */

/* ===== TELA 1 — HOME STREAMING ===== */

/* Top bar transparente */
.client-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  z-index: 100;
  transition: background 0.4s var(--ease-smooth), backdrop-filter 0.4s;
}

.client-topbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.client-topbar .brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--gold-primary);
}

.client-topbar nav {
  display: flex;
  gap: 32px;
}

.client-topbar nav a {
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.client-topbar nav a:hover {
  color: var(--gold-primary);
}

/* Hero cinemático */
.hero-cinema {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 48px 96px;
}

.hero-cinema__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-cinema__bg img,
.hero-cinema__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-out forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-cinema__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.1) 30%, rgba(10,10,15,0.7) 80%, var(--bg-deep) 100%),
    linear-gradient(90deg, rgba(10,10,15,0.6) 0%, transparent 50%);
  z-index: 1;
}

.hero-cinema__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  animation: fadeUp 1.2s var(--ease-cinema) 0.3s backwards;
}

.hero-cinema__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.hero-cinema__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.hero-cinema__meta {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-cinema__meta .dot {
  width: 4px; height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
}

.hero-cinema__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: pulse 2s infinite;
  text-align: center;
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--gold-primary);
  margin: 12px auto 0;
}

/* Carrossel de capítulos */
.chapters-section {
  padding: 96px 48px;
  background: var(--bg-deep);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}

.section-title .accent {
  color: var(--gold-primary);
}

.chapters-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.chapter-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.4s var(--ease-cinema);
}

.chapter-card:hover {
  transform: scale(1.04);
}

.chapter-card__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--bg-elevated);
}

.chapter-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-cinema);
}

.chapter-card:hover .chapter-card__thumb img {
  transform: scale(1.1);
}

.chapter-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6));
  opacity: 0;
  transition: opacity 0.3s;
}

.chapter-card:hover .chapter-card__play {
  opacity: 1;
}

.chapter-card__play-btn {
  width: 64px; height: 64px;
  background: rgba(212, 175, 55, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1A1500;
  font-size: 1.5rem;
}

.chapter-card__info {
  padding: 16px 4px 0;
}

.chapter-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.chapter-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Bloco História */
.story-section {
  padding: 96px 48px;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-surface));
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.story-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%; height: 100%; object-fit: cover;
}

.story-text h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.story-text h2 .accent {
  color: var(--gold-primary);
}

.story-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.story-signature {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
  margin-top: 32px;
}

/* Bloco Compartilhar */
.share-section {
  padding: 96px 48px 120px;
  background: var(--bg-surface);
  text-align: center;
}

.share-section h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.share-section .subtitle {
  color: var(--text-muted);
  margin-bottom: 48px;
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.share-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.3s var(--ease-cinema);
  color: var(--text-primary);
}

.share-btn:hover {
  background: var(--gold-primary);
  color: #1A1500;
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold-primary);
}

.share-btn span.label {
  display: none;
}

.qr-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.qr-card .qr-code {
  width: 140px; height: 140px;
  background:
    repeating-conic-gradient(#000 0 25%, #fff 0 50%) 0/8px 8px;
  margin: 0 auto 12px;
  border-radius: 4px;
}

.qr-card .qr-label {
  color: #1A1500;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Footer cliente */
.client-footer {
  padding: 32px 48px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.client-footer .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.client-footer p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== TELA 2 — LOGIN ===== */

.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.login-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(32px) brightness(0.35);
  transform: scale(1.15);
}

.login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: rgba(28, 28, 38, 0.6);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg), 0 0 64px rgba(212, 175, 55, 0.1);
  animation: fadeUp 0.8s var(--ease-cinema);
}

.login-card__logo {
  width: 56px; height: 56px;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-primary);
  margin: 0 auto 24px;
}

.login-card__title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 8px;
}

.login-card__subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}

.login-input-group {
  position: relative;
  margin-bottom: 24px;
}

.login-input-group .icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.login-input-group .icon-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}

.login-input-group .input {
  padding-left: 48px;
  padding-right: 48px;
  height: 52px;
}

.login-btn {
  width: 100%;
  height: 52px;
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.login-forgot {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.login-forgot a {
  color: var(--gold-primary);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s;
}

.login-forgot a:hover {
  text-decoration-color: var(--gold-primary);
}

.login-footer {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  z-index: 2;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.3em;
  font-size: 0.9375rem;
}

/* ===== TELA 3 — GALERIA ===== */

.gallery-page {
  min-height: 100vh;
  background: var(--bg-deep);
  padding-bottom: 96px;
}

.gallery-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 24px 48px;
}

.gallery-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.gallery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.gallery-breadcrumb a {
  color: var(--text-secondary);
}

.gallery-breadcrumb a:hover { color: var(--gold-primary); }

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
}

.gallery-counter {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.gallery-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-view-toggle {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 2px;
}

.gallery-view-toggle button {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.gallery-view-toggle button.active {
  background: var(--gold-primary);
  color: #1A1500;
  font-weight: 600;
}

/* Masonry grid */
.masonry {
  padding: 32px 48px;
  column-count: 4;
  column-gap: 16px;
}

@media (max-width: 1200px) { .masonry { column-count: 3; } }
@media (max-width: 768px) { .masonry { column-count: 2; padding: 16px 24px; } }
@media (max-width: 480px) { .masonry { column-count: 1; } }

.media-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-elevated);
  animation: fadeUp 0.6s var(--ease-cinema) backwards;
}

.media-card img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-cinema);
}

.media-card:hover img {
  transform: scale(1.05);
}

.media-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8));
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
}

.media-card:hover .media-card__overlay {
  opacity: 1;
}

.media-card__actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.media-card__action {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.media-card__action:hover {
  background: var(--gold-primary);
  color: #1A1500;
}

.media-card__badge {
  align-self: flex-start;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.video-indicator {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
}

/* FAB */
.fab-download {
  position: fixed;
  bottom: 80px;
  right: 32px;
  z-index: 100;
  padding: 16px 24px;
  border-radius: var(--radius-full);
  background: var(--gold-primary);
  color: #1A1500;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg), 0 0 32px rgba(212,175,55,0.4);
  transition: all 0.3s var(--ease-cinema);
}

.fab-download:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--gold-soft);
}

/* Lightbox (preview) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.lightbox__nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.lightbox__nav.prev { left: 24px; }
.lightbox__nav.next { right: 24px; }

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__counter {
  position: absolute;
  top: 24px; left: 24px;
  color: white;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
