:root {
  --primary: #8E2C8D;
  --primary-dark: #6b1f6a;
  --bg: #f8f9fa;
  --text: #1a1a1a;
  --muted: #6b7280;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  min-height: 100vh;
}

/* ── Logo ── */
.logo { margin-bottom: 24px; }
.logo img { height: 42px; object-fit: contain; display: block; }

/* ── Ad slot (FIXED HEIGHT → sem CLS) ── */
.prop-slot-wrapper {
  width: 100%; max-width: 540px;
  min-height: 116px; /* label 26px + ad 90px */
  margin-bottom: 20px;
  display: flex; flex-direction: column;
}
.prop-label { font-size: 10px; color: var(--muted); text-align: center; margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.prop-placeholder { height: 90px; background: #f4f4f4; border: 1px dashed #ddd; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }

/* ── Contador / Status ── */
.status {
  background: #fdf5ff; color: var(--primary);
  padding: 16px; border-radius: 12px;
  width: 100%; max-width: 540px;
  text-align: center; margin-bottom: 24px;
  font-weight: 500; font-size: 14px;
  border: 1px solid rgba(142,44,141,0.12);
}
.progress { height: 4px; background: rgba(142,44,141,.15); margin-top: 12px; border-radius: 4px; overflow: hidden; }
#bar { height: 100%; width: 0%; background: var(--primary); transition: width 1s linear; }

/* ── Card de destino ── */
.card {
  background: #fff; width: 100%; max-width: 540px;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  margin-bottom: 24px; border: 1px solid rgba(0,0,0,0.05);
}
.preview img { width: 100%; height: 210px; object-fit: cover; display: block; border-bottom: 1px solid #f0f0f0; background: #f4f4f4; }
.content { padding: 20px; }
.title { font-weight: 700; font-size: 17px; margin-bottom: 6px; color: var(--text); line-height: 1.3; }
.url { font-size: 12px; color: var(--muted); margin-bottom: 10px; word-break: break-all; }
.desc { font-size: 14px; color: #444; margin-bottom: 16px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Botões ── */
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: 10px; text-decoration: none;
  font-weight: 700; font-size: 14px; transition: opacity .2s, transform .2s;
  border: 0; cursor: pointer;
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ── Produto afiliado ── */
.prop-card {
  background: var(--primary); padding: 12px;
  margin: 0 0 20px; border-radius: 14px;
  display: flex; align-items: center; gap: 16px;
  width: 100%; max-width: 540px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(142,44,141,.2);
  transition: transform .2s;
}
.prop-card:hover { transform: translateY(-2px); }
.prop-card img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background:#fff; padding:2px; }
.prop-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.prop-tag { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.prop-title { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-right: 8px; }
.prop-arrow { flex-shrink: 0; opacity: .8; }

/* ── Footer ── */
.footer { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.8; }
.footer a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hub-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e8e8ef; }

/* ── Hub: wrapper ── */
.hub-wrapper { width: 100%; max-width: 860px; }
.hub-hero { text-align: center; padding: 40px 20px; }
.hub-hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; color: var(--text); }
.hub-hero p { font-size: 16px; color: var(--muted); max-width: 560px; margin: 0 auto 20px; line-height: 1.7; }

/* ── Hub: seções ── */
.hub-section { margin-bottom: 40px; }
.hub-section-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.hub-section-desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }

/* ── Hub: grid de links ── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.hub-link-card {
  background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none;
  border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.hub-link-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.08); }
.hub-link-img img { width: 100%; height: 150px; object-fit: cover; display: block; }
.hub-link-body { padding: 14px; flex: 1; }
.hub-link-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-link-domain { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.hub-link-clicks { font-size: 11px; color: var(--primary); font-weight: 700; }

/* ── Hub: about / CTA ── */
.hub-about p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 14px; }
.hub-cta-row { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Hub: card fallback ── */
.hub-card {
  background: #fff; border: 1px solid rgba(0,0,0,0.05);
  padding: 40px 30px; border-radius: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.03);
  width: 100%; max-width: 500px; margin: 0 auto;
  text-align: center;
}
.hub-card h1 { font-size: 26px; color: var(--text); margin-bottom: 12px; font-weight: 800; }
.hub-card p { font-size: 15px; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

/* ── Legal pages ── */
.legal-page { max-width: 760px; width: 100%; padding: 40px 20px; }
.legal-page h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.legal-page h2 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; color: var(--text); }
.legal-page p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 12px; }
.legal-page ul { margin: 8px 0 12px 24px; }
.legal-page li { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 4px; }
.legal-page em { color: var(--muted); }

/*
view hub
*/
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.hub-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.item-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.item-details { padding: 15px; }
.category-label { font-size: 11px; font-weight: bold; color: #007bff; text-transform: uppercase; }
/*
view hub
*/

/*
view preview
*/
/* Layout de Preview */
.preview-page-container {
    max-width: 1100px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 300px; /* Conteúdo principal e Sidebar fixa */
    gap: 40px;
    padding: 0 20px;
}

.preview-breadcrumb { font-size: 13px; margin-bottom: 20px; color: #666; }
.preview-breadcrumb span { margin: 0 8px; color: #ccc; }

.article-header h1 { font-size: 32px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; color: #111; }
.article-meta { font-size: 14px; color: #888; margin-bottom: 30px; }

.article-featured-image img { width: 55%; border-radius: 12px; margin-bottom: 30px; }

.article-body { font-size: 18px; line-height: 1.7; color: #333; margin-bottom: 50px; }

.article-footer-cta { background: #f9f9f9; padding: 40px; border-radius: 12px; text-align: center; border: 1px solid #eee; }
.article-footer-cta p { margin-bottom: 20px; font-weight: 500; }

.btn-continue { 
    background: #007bff; color: #fff; padding: 15px 40px; border-radius: 30px; 
    text-decoration: none; font-weight: 600; display: inline-block; transition: 0.3s;
}
.btn-continue:hover { background: #0056b3; transform: translateY(-2px); }

/* Sidebar */
.ad-slot-wrapper small { display: block; text-align: center; color: #999; margin-bottom: 10px; text-transform: uppercase; font-size: 10px; }
.ad-placeholder-box { background: #fafafa; border: 1px dashed #ddd; height: 600px; display: flex; align-items: center; justify-content: center; color: #bbb; text-align: center; padding: 20px; }

/* Responsivo */
@media (max-width: 900px) {
    .preview-page-container { grid-template-columns: 1fr; }
    .preview-sidebar { display: none; } /* Oculta sidebar no mobile se preferir focar no texto */
}
/*
view preview
*/

@media (max-width: 600px) {
  .hub-grid { grid-template-columns: 1fr; }
  .hub-hero h1 { font-size: 24px; }
  .legal-page { padding: 24px 16px; }
}
