/* Lancamento Pago: estilos especificos da pagina */

/* ── LAYOUT PRINCIPAL ── */
.lp-content-wrap {
  margin-left: var(--sidebar-collapsed-width);
  min-height: 100vh;
}
@media (max-width: 768px) { .lp-content-wrap { margin-left: 0; } }

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px 48px 80px;
}
@media (min-width: 1600px) { .container { padding: 36px 64px 96px; } }
@media (max-width: 768px) { .container { padding: 24px 16px 48px; } }

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-header h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SECTIONS ── */
.section {
  margin-bottom: 52px;
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-title-row h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-count {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--revo-red);
}
.section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── SEARCH INPUT ── */
.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  padding: 7px 12px;
  width: 200px;
  max-width: 100%;
  transition: var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--revo-red);
}
.search-input::placeholder { color: var(--text-muted); }

/* ── FRAMEWORK PILARES ── */
.framework-pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .framework-pilares { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .framework-pilares { grid-template-columns: 1fr; } }

.pilar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: var(--transition);
}
.pilar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-alt);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.pilar-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--revo-red);
  margin-bottom: 12px;
  display: block;
}
.pilar-icon {
  width: 40px;
  height: 40px;
  background: rgba(224,0,0,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pilar-icon i { font-size: 20px; color: var(--revo-red); }
.pilar-nome {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}
.pilar-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── BENCHMARKS ── */
.benchmarks-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.benchmark-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 16px 20px;
  flex: 1;
  min-width: 160px;
  transition: var(--transition);
}
.benchmark-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-alt);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.benchmark-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.benchmark-range {
  font-size: 20px;
  font-weight: 800;
  color: var(--revo-red);
  line-height: 1.1;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.benchmark-unit {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── VIDEOS GRID ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
@media (min-width: 980px) {
  .videos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .videos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1880px) {
  .videos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .videos-grid { grid-template-columns: 1fr; } }

.vid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.vid-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-alt);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.vid-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0a0a0a center/cover no-repeat;
  overflow: hidden;
}
.vid-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
}
.vid-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: var(--transition);
}
.vid-card:hover .vid-play-overlay { opacity: 1; }
.vid-play-overlay i {
  font-size: 38px;
  color: white;
  background: rgba(224,0,0,0.88);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vid-info {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.vid-info h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.vid-canal {
  font-size: 11px;
  color: var(--text-muted);
}
.vid-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.vid-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
body.light-mode .vid-tag { background: rgba(0,0,0,0.05); }
.vid-tag.tag-lp {
  background: rgba(224,0,0,0.10);
  border-color: rgba(224,0,0,0.25);
  color: var(--revo-red);
}
.vid-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── MODAL OVERLAY ── */
.vid-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 3000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.vid-modal-overlay.open { display: flex; }

.vid-modal {
  background: #0a0a0a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  width: 100%;
  max-width: 1200px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
}
body.light-mode .vid-modal { background: var(--bg-card); }

.vid-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
}
.vid-modal-header h4 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
}
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: rgba(224,0,0,0.18);
  border-color: rgba(224,0,0,0.4);
  color: var(--text);
}

.vid-modal-body {
  display: grid;
  grid-template-columns: 420px 1fr;
}
@media (max-width: 900px) { .vid-modal-body { grid-template-columns: 1fr; } }

.vid-modal-left {
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
@media (max-width: 900px) {
  .vid-modal-left {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.modal-video-wrap {
  background: #000;
  aspect-ratio: 16/9;
}
.modal-video-wrap iframe,
.modal-video-player {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.modal-video-frame {
  background: #000;
}
.modal-video-player {
  background: #000;
  object-fit: contain;
}
.modal-video-placeholder {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(224,0,0,0.08));
}
.modal-meta {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-meta-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.modal-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  min-width: 70px;
}
.modal-meta-val {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.4;
}
.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(224,0,0,0.12);
  border: 1px solid rgba(224,0,0,0.3);
  border-radius: var(--radius-sm);
  color: var(--revo-red);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: var(--transition);
  margin-top: 4px;
}
.yt-btn:hover {
  background: rgba(224,0,0,0.22);
  border-color: rgba(224,0,0,0.5);
}
.drive-btn {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  color: var(--text);
}
.drive-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
}

.vid-modal-right {
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  padding: 24px;
}
@media (max-width: 900px) {
  .vid-modal-right { max-height: none; }
}

/* ── MODAL SECTIONS ── */
.modal-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}
.modal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.modal-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--revo-red);
  margin-bottom: 12px;
}

/* Tabela de metricas */
.metric-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.metric-table tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.metric-table tr:last-child { border-bottom: none; }
.metric-table tr:hover { background: var(--bg-card-alt); }
.metric-table td {
  padding: 9px 12px;
  color: var(--text-mid);
  vertical-align: middle;
}
.metric-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 40%;
}
.metric-table td:last-child {
  color: var(--text);
  font-weight: 600;
}

/* Quote card */
.quote-card {
  background: var(--bg-card-alt);
  border-left: 3px solid var(--revo-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.quote-card:hover {
  background: rgba(224,0,0,0.06);
  border-left-color: var(--revo-red);
}
body.light-mode .quote-card { background: rgba(0,0,0,0.04); }
.quote-copy-hint {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition);
  font-style: normal;
}
.quote-card:hover .quote-copy-hint { opacity: 1; }

/* Lista de takeaways / erros */
.takeaway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.takeaway-list li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-card-alt);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--revo-red);
  transition: var(--transition);
}
.takeaway-list li:hover {
  border-color: var(--revo-red);
  background: rgba(224,0,0,0.06);
}
body.light-mode .takeaway-list li { background: rgba(0,0,0,0.04); }

.erro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.erro-list li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-left: 2px solid rgba(255,120,0,0.5);
  background: rgba(255,100,0,0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.45;
}

/* Texto de conteudo generico */
.modal-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Empty / no-results */
.no-results {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
}

/* Status badge */
.status-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card-alt);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
body.light-mode .status-pending { background: rgba(0,0,0,0.05); }

/* ── MOBILE REFINEMENTS ── */
@media (max-width: 600px) {
  .page-header h1 { font-size: 24px; }
  .page-header p { font-size: 13px; }
  .section-title-row h2 { font-size: 17px; }
  .section-title-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .search-input { width: 100%; }
  .pilar-card { padding: 16px; }
  .benchmark-item { min-width: 140px; }
  .vid-card .vid-info { padding: 12px 14px 14px; }
  .vid-card .vid-info h3 { font-size: 13px; }
  .vid-modal-body { grid-template-columns: 1fr; }
  .vid-modal-left { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border-color); }
  .vid-modal-right { max-height: none; }
}
