/* ============================================================
   CALENDÁRIO DE CONTEÚDO — TLRocket Digital
   Identidade idêntica ao site principal (tlrocketdigital.com.br)
   ============================================================ */

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

:root {
  --gold:        #c9a227;
  --gold-light:  #e2b93b;
  --gold-dark:   #a07c10;
  --black:       #080808;
  --dark:        #0f0f0f;
  --dark2:       #161616;
  --dark3:       #1e1e1e;
  --white:       #ffffff;
  --gray:        #999999;
  --font-h:      'Montserrat', sans-serif;
  --font-b:      'Inter', sans-serif;

  --reels:       #f97316;
  --carrossel:   #a78bfa;
  --story:       #ec4899;
  --feed:        #60a5fa;
  --done:        #22c55e;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-b);
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(201,162,39,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,.038) 1px, transparent 1px);
  background-size: 60px 60px;
  color: #ccc;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

a { text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ── Reveal animations ───────────────────────────────── */
.r  { opacity: 0; transform: translateY(30px); transition: .65s ease; }
.r.on { opacity: 1; transform: none; }

/* ── Elementos reutilizáveis do site ─────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-h); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(201,162,39,.3); padding: 5px 14px; border-radius: 2px;
  margin-bottom: 18px;
}
.sec-title {
  font-family: var(--font-h); font-size: clamp(30px,4.5vw,52px);
  font-weight: 900; text-transform: uppercase; letter-spacing: -1px; line-height: 1.05;
  color: var(--white);
}
.gold { color: var(--gold) !important; }
.gline {
  display: block; width: 56px; height: 3px; margin: 18px 0 30px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Botão primário — gold com texto preto (idêntico ao site) */
.btn-g {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: var(--black);
  font-family: var(--font-h); font-weight: 800; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 30px; border-radius: 2px; border: none; cursor: pointer;
  transition: .3s;
}
.btn-g:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(201,162,39,.35); }

/* Botão outline — borda branca (idêntico ao site) */
.btn-o {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--white);
  font-family: var(--font-h); font-weight: 700; font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 15px 30px; border-radius: 2px;
  border: 1px solid rgba(255,255,255,.2); cursor: pointer; transition: .3s;
}
.btn-o:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ══════════════════════════════════════
   NAV — idêntico ao site principal
══════════════════════════════════════ */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 14px 0; transition: .4s;
}
nav.s {
  background: rgba(8,8,8,.97); padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,.7);
  border-bottom: 1px solid rgba(201,162,39,.12);
}
.nav-i { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo span {
  font-family: var(--font-h); font-weight: 900; font-size: 20px;
  color: var(--white); letter-spacing: .5px;
}
.nav-logo span em { color: var(--gold); font-style: normal; }
.nav-logo small { font-size: 11px; color: var(--gray); font-weight: 400; margin-left: -2px; }

.nav-right { display: flex; align-items: center; gap: 20px; }

/* bloco agência × cliente */
.nav-client-block {
  display: flex; align-items: center; gap: 16px;
  flex: 1; justify-content: center;
}
.nav-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.12);
}
.nav-client-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-client-text {
  display: flex; flex-direction: column; gap: 1px;
}
.nav-client-name {
  font-family: var(--font-h); font-size: 13px; font-weight: 900;
  color: var(--white); letter-spacing: .5px;
}
.nav-client-sub {
  font-size: 9px; color: var(--gray); letter-spacing: .1em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  padding: clamp(100px, 14vw, 140px) 0 clamp(60px, 8vw, 80px);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* Texto ghost atrás do hero */
.hero-ghost {
  position: absolute; bottom: -20px; right: -20px;
  font-family: var(--font-h); font-size: clamp(80px, 15vw, 200px);
  font-weight: 900; color: rgba(201,162,39,.025);
  text-transform: uppercase; line-height: 1;
  pointer-events: none; user-select: none; letter-spacing: -4px;
  white-space: nowrap; overflow: hidden;
  max-width: 70vw;
}

.hero-stats {
  display: flex; gap: 44px; margin-top: 48px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap;
}
.sn { font-family: var(--font-h); font-size: 36px; font-weight: 900; color: var(--gold); line-height: 1; }
.sl { font-size: 10px; color: var(--gray); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 5px; }

.progress-stat { display: flex; flex-direction: column; justify-content: flex-end; }
.progress-bar-wrap {
  width: 120px; height: 4px; background: rgba(255,255,255,.08);
  border-radius: 999px; margin-top: 10px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 999px; width: 0%; transition: width 1s ease;
}

/* ══════════════════════════════════════
   FILTROS — estilo aba premium
══════════════════════════════════════ */
.filtros-section {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: sticky; top: 0; z-index: 100;
  padding: 0 28px;
}
.filtros-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.filtros { display: flex; }
.filtro {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px;
  background: none; border: none;
  font-family: var(--font-h); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); cursor: pointer;
  border-bottom: 2px solid transparent; transition: .25s;
  position: relative;
}
.filtro em {
  font-style: normal; font-size: 9px;
  background: rgba(255,255,255,.06); border-radius: 999px;
  padding: 1px 6px; color: var(--gray);
}
.filtro:hover { color: var(--white); }
.filtro.active { color: var(--gold); border-bottom-color: var(--gold); }
.filtro.active em { background: rgba(201,162,39,.15); color: var(--gold); }

.filtro[data-tipo="reels"].active    { color: var(--reels);    border-bottom-color: var(--reels); }
.filtro[data-tipo="carrossel"].active{ color: var(--carrossel); border-bottom-color: var(--carrossel); }
.filtro[data-tipo="story"].active    { color: var(--story);    border-bottom-color: var(--story); }
.filtro[data-tipo="feed"].active     { color: var(--feed);     border-bottom-color: var(--feed); }

.legend-wrap {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; color: var(--gray); flex-shrink: 0;
}
.legend-wrap span { display: flex; align-items: center; gap: 5px; }
.ldot {
  width: 7px; height: 7px; border-radius: 50%;
}

/* ══════════════════════════════════════
   CALENDÁRIO
══════════════════════════════════════ */
.cal-section { padding: 60px 0 100px; overflow: hidden; }

.cal-header-row {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px; margin-bottom: 6px;
}
.cal-header-row span {
  text-align: center;
  font-family: var(--font-h); font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; color: var(--gray);
  padding: 10px 0; overflow: hidden;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

/* ── Célula do dia ───────────────────────────────── */
.cal-day {
  background: rgba(22,22,22,.95);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 6px;
  padding: 8px 6px 6px;
  min-height: clamp(80px, 11vw, 120px);
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .25s;
  overflow: hidden;
  min-width: 0;
}
.cal-day--empty {
  background: transparent; border-color: transparent;
}
.cal-day--today {
  border-color: rgba(201,162,39,.4);
  background: rgba(201,162,39,.03);
}
.cal-day:not(.cal-day--empty):hover { border-color: rgba(255,255,255,.12); }

.day-num {
  font-family: var(--font-h); font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.25); text-align: right; margin-bottom: 2px;
  line-height: 1;
}
.cal-day--today .day-num { color: var(--gold); }

/* ── Chip do post ────────────────────────────────── */
.cal-chip {
  display: flex; align-items: center; gap: 4px;
  width: 100%; padding: 4px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 2px solid;
  cursor: pointer; text-align: left;
  font-family: var(--font-b); font-size: clamp(9px, 0.9vw, 11px); font-weight: 500;
  line-height: 1.3; color: #bbb;
  transition: .2s; position: relative;
  min-width: 0; overflow: hidden;
}
.cal-chip:hover { background: rgba(255,255,255,.07); color: var(--white); transform: translateX(2px); }
.cal-chip.selected { background: rgba(201,162,39,.08); border-color: var(--gold) !important; color: var(--white); }
.cal-chip.done { opacity: .35; }
.cal-chip.done .chip-label { text-decoration: line-through; }
.cal-chip.oculto { display: none; }

.cal-chip--reels     { border-left-color: var(--reels); }
.cal-chip--carrossel { border-left-color: var(--carrossel); }
.cal-chip--story     { border-left-color: var(--story); }
.cal-chip--feed      { border-left-color: var(--feed); }

.chip-tipo {
  font-size: 8px; font-weight: 800; font-family: var(--font-h);
  letter-spacing: .08em; text-transform: uppercase; flex-shrink: 0;
}
.cal-chip--reels     .chip-tipo { color: var(--reels); }
.cal-chip--carrossel .chip-tipo { color: var(--carrossel); }
.cal-chip--story     .chip-tipo { color: var(--story); }
.cal-chip--feed      .chip-tipo { color: var(--feed); }

.chip-label {
  overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; flex: 1; min-width: 0;
}

/* ══════════════════════════════════════
   MODAL
══════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  width: 100%; max-width: 700px; max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 120px rgba(0,0,0,.9);
  transform: translateY(20px); transition: transform .3s;
}
.modal-backdrop.open .modal { transform: translateY(0); }

/* barra dourada no topo do modal — igual aos sol-card hover */
.modal::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

/* Cabeçalho do modal */
.modal-head {
  padding: 32px 36px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.modal-meta { display: flex; flex-direction: column; gap: 8px; }
.modal-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-h); font-size: 9px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px; border: 1px solid;
}
.modal-badge--reels     { color: var(--reels);     border-color: rgba(249,115,22,.3);  background: rgba(249,115,22,.08); }
.modal-badge--carrossel { color: var(--carrossel); border-color: rgba(167,139,250,.3); background: rgba(167,139,250,.08); }
.modal-badge--story     { color: var(--story);     border-color: rgba(236,72,153,.3);  background: rgba(236,72,153,.08); }
.modal-badge--feed      { color: var(--feed);      border-color: rgba(96,165,250,.3);  background: rgba(96,165,250,.08); }

.modal-data { font-size: 11px; color: var(--gray); font-weight: 500; letter-spacing: .5px; }
.modal-close {
  background: none; border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; width: 36px; height: 36px; cursor: pointer;
  color: var(--gray); font-size: 14px; display: flex;
  align-items: center; justify-content: center;
  transition: .25s; flex-shrink: 0;
}
.modal-close:hover { border-color: var(--white); color: var(--white); }

/* Corpo do modal */
.modal-body { padding: 32px 36px; }

.modal-title {
  font-family: var(--font-h); font-size: clamp(22px,4vw,32px);
  font-weight: 900; text-transform: uppercase; letter-spacing: -1px;
  color: var(--white); line-height: 1.05; margin-bottom: 4px;
}
.modal-desc {
  font-size: 14px; color: var(--gray); line-height: 1.8; margin-top: 14px;
}

/* Seções do modal */
.modal-section { margin-top: 28px; }
.modal-section-label {
  font-family: var(--font-h); font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .25em;
  color: var(--gold); margin-bottom: 14px; display: block;
}
.modal-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.modal-list li {
  display: flex; gap: 12px;
  font-size: 13px; color: #ccc; line-height: 1.6;
  padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.04);
}
.modal-list li:last-child { border-bottom: none; padding-bottom: 0; }
.modal-list li::before {
  content: '›'; color: var(--gold); font-size: 16px; line-height: 1.3; flex-shrink: 0;
}

/* Script blocks */
.script-blocks { display: flex; flex-direction: column; gap: 10px; }
.script-block {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.05);
  border-left: 2px solid var(--gold);
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
}
.script-block__time {
  font-family: var(--font-h); font-size: 8px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .2em;
  color: var(--gold); margin-bottom: 6px; display: block;
}
.script-block__text {
  font-size: 13px; color: #ccc; line-height: 1.7; font-style: italic;
}

/* Slides blocks */
.slide-list { display: flex; flex-direction: column; }
.slide-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.slide-item:last-child { border-bottom: none; }
.slide-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 9px; font-weight: 800; color: var(--gold);
}
.slide-text { font-size: 13px; color: #ccc; line-height: 1.7; padding-top: 2px; }
.slide-text strong { color: var(--gold-light); font-weight: 700; }

/* Legenda box */
.legenda-box {
  background: var(--dark3);
  border: 1px solid rgba(255,255,255,.05);
  border-left: 2px solid var(--done);
  border-radius: 0 6px 6px 0;
  padding: 16px 18px;
  font-size: 13px; color: #ccc; line-height: 1.85;
  white-space: pre-line;
}

/* Rodapé do modal */
.modal-foot {
  padding: 24px 36px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; gap: 12px; align-items: center;
}
.btn-check-done {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,197,94,.1); color: var(--done);
  border: 1px solid rgba(34,197,94,.3); border-radius: 2px;
  font-family: var(--font-h); font-weight: 800; font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 22px; cursor: pointer; transition: .25s;
}
.btn-check-done:hover { background: rgba(34,197,94,.2); }
.btn-check-done.done { background: var(--done); color: #000; border-color: var(--done); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--dark); padding: 24px 0;
  border-top: 1px solid rgba(201,162,39,.12);
  text-align: center; font-size: 12px; color: #444;
}
.footer a { color: var(--gold); }
.footer a:hover { color: var(--gold-light); }

/* ══════════════════════════════════════
   RESPONSIVO
══════════════════════════════════════ */

/* Telas até 1100px: reduz chip e células */
@media (max-width: 1100px) {
  .chip-tipo { display: none; }
  .cal-chip { padding: 4px 5px; border-left-width: 3px; }
  .chip-label { font-size: 9px; }
  .cal-day { padding: 6px 5px 4px; gap: 3px; }
  .day-num { font-size: 10px; }
}

/* Telas até 860px: título pequeno mas visível */
@media (max-width: 860px) {
  .chip-label {
    font-size: 7px;
    white-space: normal;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .cal-chip {
    padding: 3px 4px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-left-width: 2px;
    gap: 1px;
  }
  .cal-day { min-height: 82px; padding: 6px 4px 4px; }
  .hero-stats { gap: 20px; }
  .hero-stats .sn { font-size: 26px; }
  .nav-client { display: none; }
  .legend-wrap { display: none; }
  .filtros { overflow-x: auto; }
}

/* Telas até 640px: layout compacto */
@media (max-width: 640px) {
  .cal-section { padding: 30px 0 60px; }
  .container { padding: 0 16px; }
  nav { padding: 10px 0; }
  nav .container, nav .nav-i { padding: 0 16px; }
  .btn-g { padding: 11px 16px; font-size: 10px; letter-spacing: 1px; }
  .hero { padding: 90px 0 50px; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stats > div { min-width: calc(33% - 10px); }
  .sn { font-size: 22px; }
  .sl { font-size: 9px; }
  .gline { margin: 14px 0 20px; }
  .sec-title { font-size: 26px; letter-spacing: -0.5px; }
  .filtros-section { padding: 0 16px; }
  .filtro { padding: 12px 12px; font-size: 9px; letter-spacing: 1px; }
  .cal-header-row span { font-size: 8px; letter-spacing: .1em; padding: 6px 0; }
  .cal-header-row, .cal-grid { gap: 3px; }
  .cal-day { min-height: 74px; padding: 5px 3px 3px; gap: 2px; }
  .day-num { font-size: 9px; }
  .cal-chip { padding: 2px 3px; border-left-width: 2px; }
  .chip-label { font-size: 6.5px; -webkit-line-clamp: 2; }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .modal-title { font-size: 20px; }
  .btn-check-done, .btn-o { padding: 11px 14px; font-size: 9px; }
  .modal-foot { flex-wrap: wrap; }
  .progress-bar-wrap { width: 80px; }
}
