/* ESTILOS DE PÁGINAS DA DRAMALANDIA */

/* 1. Hero Spotlight (Destaque Principal) */
.hero-spotlight {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero), var(--grad-hero-side);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 4rem 0 3rem 0;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 0.85rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-synopsis {
  font-size: 1.05rem;
  color: #d1d5e5;
  line-height: 1.6;
  margin-bottom: 1.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.hero-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  background: rgba(16, 17, 26, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 184, 0, 0.35);
  margin-bottom: 1.5rem;
}

.hero-price-tag .label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-price-tag .amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--color-gold);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 2. Página de Detalhes do Drama */
.drama-detail-hero {
  position: relative;
  min-height: 55vh;
  background-size: cover;
  background-position: center 20%;
  display: flex;
  align-items: flex-end;
}

.drama-detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.2) 0%, rgba(10,10,15,0.9) 80%, #0a0a0f 100%);
}

.drama-detail-container {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-top: -120px;
  margin-bottom: 3.5rem;
}

.drama-detail-poster-col {
  flex: 0 0 280px;
}

.detail-poster-card {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(138, 43, 226, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.detail-poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drama-detail-info-col {
  flex: 1;
}

.detail-badges {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.detail-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.detail-subtitle {
  font-size: 1.15rem;
  color: var(--color-cyan);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.detail-meta-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.detail-meta-bar span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-synopsis-box {
  margin-bottom: 2rem;
}

.detail-synopsis-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.detail-synopsis-box p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Caixa de Compra / Acesso */
.detail-purchase-box {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.detail-purchase-box.unlocked {
  border-color: rgba(0, 230, 118, 0.4);
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(16, 17, 26, 0.95) 100%);
}

.detail-purchase-info h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.detail-purchase-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--color-gold);
}

/* 3. Player Modal & Container */
.player-modal-container {
  max-width: 1000px !important;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.player-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.player-frame-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.player-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* 4. Checkout Modal PIX */
.checkout-modal-content {
  padding: 2rem;
  text-align: center;
}

.checkout-header {
  margin-bottom: 1.5rem;
}

.checkout-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(0, 230, 118, 0.12);
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.checkout-item-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  text-align: left;
}

.checkout-thumb {
  width: 50px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.checkout-drama-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-white);
  line-height: 1.2;
}

.checkout-drama-price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--color-gold);
  font-size: 1.15rem;
}

/* QR Code Container */
.pix-qr-container {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pix-copia-cola-box {
  margin-bottom: 1.5rem;
}

.pix-code-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-family: monospace;
  margin-bottom: 0.75rem;
  word-break: break-all;
  text-align: center;
  user-select: all;
}

.checkout-status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-warning);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-warning);
  box-shadow: 0 0 10px var(--color-warning);
  animation: pulse 1.2s infinite;
}

.test-simulator-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* Checkout Success Screen */
.checkout-success-view {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.success-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-success);
  color: #0a0a0f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem auto;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.5);
  animation: modalScale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 5. Grids de Conteúdo (Catálogo, Meus Conteúdos, Busca) */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 6. Empty States */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 2rem 0;
}

.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1.5rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

/* 7. Telas de Autenticação */
.auth-wrapper {
  min-height: calc(100vh - var(--header-height) - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.7);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--trans-fast);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.2);
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--color-primary);
  font-weight: 600;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}
