/* ============================================================
   Portal do Aluno — Smart Art 7F (Vitrine Fase 0.5)
   Paleta oficial: #1B3A4B petróleo · #C9A84C dourado
   #F5F0E8 off-white · #A0522D terracota · #2C2C2C carvão
   Playfair Display (títulos) + Inter (corpo)
   ============================================================ */
:root {
  --petroleo: #1B3A4B;
  --petroleo-2: #16303e;
  --dourado: #C9A84C;
  --offwhite: #F5F0E8;
  --terracota: #A0522D;
  --carvao: #2C2C2C;
  --branco: #FFFFFF;
  --cinza: #6b7280;
  --linha: #e6e0d5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--offwhite);
  color: var(--carvao);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; color: var(--petroleo); line-height: 1.2; }
a { color: inherit; }

/* ---------- LOGIN ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--petroleo), var(--petroleo-2));
  padding: 24px;
}
.login-card {
  background: var(--branco); width: 100%; max-width: 400px; border-radius: 18px;
  padding: 40px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); text-align: center;
}
.login-logo { font-family: "Playfair Display", serif; font-size: 1.7rem; font-weight: 800; color: var(--petroleo); letter-spacing: .02em; }
.login-logo span { color: var(--dourado); }
.login-sub { color: var(--cinza); font-size: .92rem; margin: 6px 0 26px; }
.campo { text-align: left; margin-bottom: 16px; }
.campo label { display: block; font-size: .82rem; font-weight: 600; color: var(--petroleo); margin-bottom: 6px; }
.campo input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linha); border-radius: 10px;
  font-size: .95rem; background: #faf7f1; font-family: inherit;
}
.campo input:focus { outline: 2px solid var(--dourado); border-color: transparent; }
.btn {
  display: inline-block; width: 100%; padding: 14px; border: none; border-radius: 10px;
  background: var(--dourado); color: var(--petroleo); font-weight: 800; font-size: 1rem;
  cursor: pointer; font-family: inherit; letter-spacing: .02em; transition: filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--cinza); font-weight: 600; font-size: .88rem; margin-top: 14px; text-decoration: underline; }
.login-nota { margin-top: 22px; font-size: .78rem; color: var(--cinza); }

/* ---------- TOPO DO PORTAL ---------- */
.topbar {
  background: var(--petroleo); color: var(--offwhite); position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 40px);
}
.topbar .logo { font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.25rem; }
.topbar .logo span { color: var(--dourado); }
.topbar .user { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.topbar .avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--dourado); color: var(--petroleo);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.topbar .sair { color: var(--offwhite); opacity: .8; text-decoration: none; font-size: .85rem; }
.topbar .sair:hover { opacity: 1; }

/* ---------- HERO / PLAYER ---------- */
.palco { background: var(--petroleo-2); color: var(--offwhite); padding: clamp(24px, 4vw, 40px) clamp(16px, 4vw, 40px); }
.palco-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; }
.player {
  position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.player iframe, .player video { width: 100%; height: 100%; border: 0; display: block; }
.player .placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 20px;
  background: radial-gradient(circle at 50% 40%, #23485c, #10222c);
}
.player .placeholder .play {
  width: 66px; height: 66px; border-radius: 50%; background: var(--dourado); color: var(--petroleo);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.player .placeholder p { color: #cbd5e1; font-size: .9rem; max-width: 300px; }
.palco-info .etiqueta { color: var(--dourado); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.palco-info h1 { color: var(--offwhite); font-size: clamp(1.5rem, 3vw, 2rem); margin: 8px 0 12px; }
.palco-info p { color: #cbd5e1; font-size: .95rem; }
.palco-info .marca-dagua { margin-top: 14px; font-size: .75rem; color: #7c93a1; }

/* ---------- PROGRESSO GERAL ---------- */
.faixa-progresso { max-width: 1100px; margin: 26px auto 0; padding: 0 clamp(16px, 4vw, 40px); }
.faixa-progresso .rotulo { display: flex; justify-content: space-between; font-size: .85rem; color: var(--cinza); margin-bottom: 8px; }
.barra { height: 10px; background: var(--linha); border-radius: 999px; overflow: hidden; }
.barra > span { display: block; height: 100%; background: var(--dourado); border-radius: 999px; }

/* ---------- GRADE DOS 7 FUNDAMENTOS ---------- */
.trilha { max-width: 1100px; margin: 0 auto; padding: clamp(28px, 5vw, 48px) clamp(16px, 4vw, 40px); }
.trilha h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.trilha .intro { color: var(--cinza); margin: 6px 0 24px; }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.mod {
  background: var(--branco); border: 1px solid var(--linha); border-radius: 14px; overflow: hidden;
  cursor: pointer; transition: transform .15s, box-shadow .15s; text-align: left; display: flex; flex-direction: column;
}
.mod:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(27,58,75,0.14); }
.mod .capa {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; position: relative;
  color: #fff; font-family: "Playfair Display", serif;
}
.mod .capa .num { font-size: 2.4rem; font-weight: 800; opacity: .95; }
.mod .capa .cadeado { position: absolute; top: 10px; right: 12px; font-size: 1rem; opacity: .9; }
.mod .corpo { padding: 14px 16px 18px; }
.mod .fund { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--terracota); }
.mod h3 { font-size: 1.1rem; margin: 3px 0 8px; font-family: "Playfair Display", serif; }
.mod .aulas { font-size: .82rem; color: var(--cinza); margin-bottom: 12px; }
.mod .mini-barra { height: 6px; background: var(--linha); border-radius: 999px; overflow: hidden; }
.mod .mini-barra > span { display: block; height: 100%; background: var(--dourado); }
.mod.bloq { opacity: .82; }
.mod.bloq:hover { transform: none; box-shadow: none; }

/* ---------- RODAPÉ ---------- */
.rodape { background: var(--petroleo); color: #9fb3bf; text-align: center; padding: 26px 16px; font-size: .82rem; }
.rodape span { color: var(--dourado); }

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .palco-grid { grid-template-columns: 1fr; }
  .palco-info { order: -1; }
}
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }
