/* ==========================================================================
   TV RECORD EUROPA - ADVERTORIAL VSL STYLESHEET
   ========================================================================== */

:root {
  --record-blue: #4766AC;
  --record-blue-dark: #38538f;
  --tag-blue: #60709d;
  --related-blue: #60709d;
  --cta-red: #cc0000;
  --cta-red-hover: #a30000;
  --text-dark: #1a1a1a;
  --text-body: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --bg-page: #121212;
  --bg-card: #ffffff;
  --bg-secondary: #f6f7f9;
  --font-primary: "Fira Sans Condensed", "Arial Narrow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Fira Sans", "Fira Sans Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

/* Mobile Simulator Container (440px max width) */
.page-wrapper {
  max-width: 440px;
  margin: 0 auto;
  background-color: var(--bg-card);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
  overflow-x: hidden;
  padding-bottom: 24px;
}

/* ==========================================================================
   1. NAVBAR MENOR RECORD EUROPA
   ========================================================================== */
.record-navbar {
  background-color: var(--record-blue);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.nav-btn {
  background: none;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.nav-btn:active {
  opacity: 0.75;
}

.logo-record-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
}

.logo-record {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   2. BREADCRUMB BAR (Noticias › Portugal › Urgente › Saude)
   ========================================================================== */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 9px 12px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background-color: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.breadcrumb-item.current {
  color: var(--record-blue);
  font-weight: 700;
}

.breadcrumb-separator {
  color: #b0b0b0;
  font-size: 11px;
}

/* ==========================================================================
   3. ARTICLE CONTAINER & HEADER
   ========================================================================== */
.article-container {
  padding: 10px 12px 0 12px;
}

/* Tags badges */
.tags-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.tag-badge {
  background-color: #60709d;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 2px;
  letter-spacing: 0.2px;
  display: inline-block;
  line-height: 1.2;
}

/* Headline */
.article-headline {
  font-family: var(--font-primary);
  font-size: 19.5px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.headline-alert-red {
  color: var(--cta-red);
}

/* Byline (Por Nuno - Dia - Hora) */
.article-byline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.byline-author {
  font-weight: 700;
  color: #333333;
}

.byline-separator {
  color: #999999;
}

/* ==========================================================================
   4. VSL PLAYER SECTION
   ========================================================================== */
.vsl-section {
  width: 100%;
  margin: 4px 0 14px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vsl-player-wrapper {
  width: 100%;
  max-width: 380px;
  background-color: #000000;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin: 0 auto;
  aspect-ratio: 9 / 16;
}

.vsl-player-wrapper div[data-videofy-id],
.vsl-player-wrapper iframe,
.vsl-player-wrapper video {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* OVERLAY DO BOTÃO DIRETO NO VÍDEO (AO CHEGAR NO TIMESTAMP DO CTA) */
.video-end-cta-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 16px;
  text-align: center;
  box-sizing: border-box;
  animation: overlayFadeIn 0.4s ease-in-out forwards;
}

.video-end-cta-overlay.active {
  display: flex !important;
}

@keyframes overlayFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.video-cta-content {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-cta-urgency {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
  margin-bottom: 18px;
}

.btn-video-overlay-cta {
  display: block;
  width: 100%;
  background-color: var(--cta-red);
  color: #ffffff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
  padding: 20px 14px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.3;
  box-shadow: 0 4px 20px rgba(204, 0, 0, 0.55);
  box-sizing: border-box;
  border: none;
  animation: pulseCta 1.6s infinite ease-in-out;
}

@keyframes pulseCta {
  0% { transform: scale(1); box-shadow: 0 4px 20px rgba(204, 0, 0, 0.55); }
  50% { transform: scale(1.035); box-shadow: 0 6px 28px rgba(204, 0, 0, 0.85); }
  100% { transform: scale(1); box-shadow: 0 4px 20px rgba(204, 0, 0, 0.55); }
}

/* CTA abaixo do vídeo */
.cta-container {
  display: none; /* Só aparece quando o vídeo chega no timestamp do CTA (ver app.js CONFIG.CTA_TRIGGER_SECONDS) */
  width: 100%;
  margin: 12px 0 4px 0;
  text-align: center;
  padding: 4px 4px 0;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease-in forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-urgency-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--cta-red);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
  display: block;
}

.btn-checkout-cta {
  display: block;
  width: 100%;
  background-color: var(--cta-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  padding: 17px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(204, 0, 0, 0.5);
  transition: background-color 0.2s ease, transform 0.1s ease;
  animation: pulseCta 1.6s infinite ease-in-out;
  box-sizing: border-box;
}

.btn-checkout-cta:hover {
  background-color: var(--cta-red-hover);
}

.btn-checkout-cta:active {
  transform: scale(0.99);
}

/* ==========================================================================
   5. ARTICLE BODY TEXT
   ========================================================================== */
.article-text {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-body);
  margin-top: 10px;
}

.article-text p.article-lead {
  font-size: 15.5px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 12px;
  line-height: 1.45;
}

.article-text p.article-body-paragraph {
  font-size: 15.5px;
  font-weight: 400;
  color: #2b2b2b;
  margin-bottom: 12px;
}

.article-highlight-link {
  color: var(--record-blue);
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   6. COMENTÁRIOS (PROVA SOCIAL)
   ========================================================================== */
.comments-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid #e2e4e8;
  padding: 14px 12px;
  margin-top: 16px;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 2px solid #dde0e5;
  padding-bottom: 6px;
}

.comments-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #111111;
}

.comments-filter {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.comment-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #e6e8ec;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ddd;
}

.comment-user-info {
  display: flex;
  flex-direction: column;
}

.comment-author-name {
  font-size: 12px;
  font-weight: 700;
  color: #222222;
}

.comment-location {
  font-size: 9.5px;
  color: var(--record-blue);
  font-weight: 600;
}

.comment-time {
  font-size: 9px;
  color: #8c96a3;
}

.comment-body {
  font-size: 12.5px;
  line-height: 1.4;
  color: #333333;
  margin-bottom: 6px;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10.5px;
  color: #65676b;
  font-weight: 600;
}

.btn-like {
  background: none;
  border: none;
  color: #65676b;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
}

.btn-like.liked {
  color: #1877f2;
}

.comment-reply-btn {
  cursor: pointer;
  color: #65676b;
}

.reply-indent {
  margin-left: 10px;
  margin-top: 8px;
  margin-bottom: 0;
  border-left: 2px solid #dce0e6;
  padding-left: 8px;
}

/* ==========================================================================
   7. ARTIGOS RELACIONADOS (ESTILO OFICIAL RECORD EUROPA)
   ========================================================================== */
.related-articles-section {
  padding: 16px 12px 12px 12px;
  background-color: #ffffff;
  border-top: 1px solid #e2e4e8;
}

/* Header de Artigos Relacionados com Linha */
.related-section-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.related-badge-title {
  background-color: #60709d;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.related-header-line {
  flex: 1;
  height: 2px;
  background-color: #60709d;
}

/* Lista de Cards de Artigos */
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-article-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.related-thumb-container {
  width: 108px;
  height: 68px;
  min-width: 108px;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  background-color: #e5e5e5;
}

.related-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-category-tag {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background-color: #60709d;
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 2px;
  line-height: 1.2;
}

.related-article-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-article-title {
  font-family: var(--font-primary);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.22;
  color: #1a1a1a;
}

/* Paginação < > */
.related-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

.btn-pagination-nav {
  width: 26px;
  height: 26px;
  border: 1px solid #d5d7dc;
  background-color: #ffffff;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
}

.btn-pagination-nav:active {
  background-color: #f0f0f0;
}
