/* Cira Redações — IPTV site
   HTML/CSS puro, mobile-first. */

:root {
  --bg: #0b0f1a;
  --bg-alt: #131829;
  --surface: #1a2038;
  --border: #2a3354;
  --text: #e7ecf7;
  --text-dim: #a7b0c8;
  --primary: #25d366;
  --primary-hover: #1ebe5c;
  --accent: #ffcc00;
  --danger: #ff5b5b;
  --radius: 10px;
  --container: 1100px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .4em; }
strong { color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 16px;
}
.logo {
  font-weight: 900; font-size: 1.25rem; color: #fff;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo .dot { width: 10px; height: 10px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 12px var(--primary); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--accent); text-decoration: none; }
.btn-wa-header { display: none; }
@media (min-width: 720px) {
  .btn-wa-header { display: inline-flex; }
}

/* BREADCRUMB */
.breadcrumb { font-size: .9rem; color: var(--text-dim); padding: 14px 0; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* HERO */
.hero {
  background: radial-gradient(1200px 600px at 20% -10%, rgba(37, 211, 102, 0.25), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(255, 204, 0, 0.12), transparent 60%),
              var(--bg);
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero .container { max-width: 900px; }
.hero .eyebrow {
  display: inline-block; background: rgba(37, 211, 102, 0.15);
  color: var(--primary); padding: 6px 12px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 28px; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .trust { margin-top: 22px; color: var(--text-dim); font-size: .9rem; }
.hero .trust strong { color: #fff; }

/* CTA BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--radius);
  font-weight: 800; font-size: 1rem; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #082014; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); }
.btn-lg { padding: 18px 30px; font-size: 1.1rem; }
.wa-icon::before { content: "✓"; }

/* MAIN CONTENT */
main { padding: 32px 0 64px; }
article { max-width: 800px; margin: 0 auto; }
article p, article li { color: var(--text); }
article ul li::marker { color: var(--primary); }

.intro {
  font-size: 1.08rem; color: var(--text);
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 18px 22px; border-radius: var(--radius);
  margin-bottom: 28px;
}

/* CARDS */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin: 24px 0;
}
@media (min-width: 720px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { margin-top: 0; font-size: 1.05rem; color: #fff; }
.card p { margin-bottom: 0; color: var(--text-dim); }

/* TABLE */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table {
  width: 100%; border-collapse: collapse; min-width: 480px;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
th, td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border); font-size: .95rem;
}
th { background: var(--bg-alt); color: #fff; font-weight: 700; }
td { color: var(--text); }
tr:last-child td { border-bottom: 0; }

/* FAQ — uses <details> for zero-JS accordion */
.faq { margin-top: 24px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: #fff;
  list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 1.4rem; color: var(--primary);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 18px; color: var(--text-dim); }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA SECTION */
.cta-block {
  margin: 36px 0;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(255, 204, 0, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
}
.cta-block h3 { margin-top: 0; color: #fff; font-size: 1.4rem; }
.cta-block p { color: var(--text-dim); }

/* STEPS (HowTo) */
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li {
  position: relative; padding: 16px 18px 16px 60px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 32px; height: 32px; background: var(--primary); color: #082014;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 900;
}
.steps li strong { display: block; color: #fff; margin-bottom: 4px; }

/* BLOG INDEX */
.post-list { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 720px) {
  .post-list { grid-template-columns: 1fr 1fr; }
}
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column;
}
.post-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.post-card h3 a { color: #fff; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { color: var(--text-dim); margin-bottom: 12px; flex-grow: 1; }
.post-card .meta { font-size: .85rem; color: var(--text-dim); }
.post-card .meta time { color: var(--primary); }

/* FOOTER */
.site-footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 32px 0 24px; color: var(--text-dim); font-size: .9rem;
}
.site-footer .container {
  display: grid; gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer .container { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent); }
.site-footer .legal {
  grid-column: 1 / -1; border-top: 1px solid var(--border);
  padding-top: 18px; margin-top: 8px; text-align: center; font-size: .85rem;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--primary); color: #082014;
  padding: 14px 20px; border-radius: 999px;
  font-weight: 800; box-shadow: var(--shadow); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
}
.wa-float:hover { text-decoration: none; background: var(--primary-hover); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-dim); }
.tag {
  display: inline-block; background: rgba(255, 204, 0, 0.12);
  color: var(--accent); padding: 4px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; margin-right: 6px;
}

/* Image figures (Image SEO) */
.post-hero, .step-image {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(37,211,102,0.18), rgba(255,204,0,0.08));
  border: 1px solid var(--border);
  position: relative;
}
.post-hero {
  aspect-ratio: 1200 / 630;
  max-height: 380px;
}
.step-image {
  aspect-ratio: 16 / 9;
  max-height: 300px;
  margin-bottom: 18px;
}
.post-hero picture, .step-image picture,
.post-hero img, .step-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero figcaption, .step-image figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(11,15,26,0.75), transparent);
  color: #fff;
  font-size: .85rem;
}

.logo img {
  width: 28px; height: 28px; border-radius: 6px;
}

/* Author box (E-E-A-T) */
.author-box {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin: 28px 0;
}
.author-box .avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #082014; font-weight: 900; font-size: 1.3rem; flex-shrink: 0;
}
.author-box .info p { margin: 0; font-size: .9rem; color: var(--text-dim); }
.author-box .info strong { display: block; color: #fff; font-size: 1rem; }
