/* =============================================
   NEXUS STUDY — disciplinas_global.css
   Estilos globais compartilhados por todas
   as disciplinas. NÃO edite cores aqui —
   use os arquivos por disciplina.
   ============================================= */

/* ── TOKENS PADRÃO (sobrescritos por disciplina) ── */
:root {
  --bg:          #070b14;
  --surface:     #0e1420;
  --border:      rgba(255, 255, 255, 0.07);
  --border-glow: rgba(255, 255, 255, 0.14);

  --text-1: #f0ede6;
  --text-2: #a8a49c;
  --text-3: #6e6a62;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 860px;

  --cor-logo:      #22c55e;
  --cor-logo-dark: #16a34a;

  --cor-tema:       #7aa8e8;
  --cor-tema-rgb:   122, 168, 232;
  --cor-tema-2:     #4dd9b4;
  --cor-tema-2-rgb: 77, 217, 180;
}

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

html { scroll-behavior: smooth; }

a { text-decoration: none; color: inherit; }



/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.65);
}

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── BOTÃO VOLTAR ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.38rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-glow);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.back-btn:hover {
  color: var(--cor-tema);
  background: rgba(var(--cor-tema-rgb), 0.07);
  border-color: rgba(var(--cor-tema-rgb), 0.3);
}

/* ── LOGO ── */
.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #4dd9b4, #7aa8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4dd9b4;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

.breadcrumb svg { opacity: 0.4; }

.breadcrumb__item--active {
  color: var(--cor-tema);
  font-weight: 500;
}

/* ── MAIN ── */
.main {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 2.5rem;
  animation: fade-up 0.55s ease both;
  text-align: center;
}

.page-header__eyebrow {
  display: inline-flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cor-tema);
  background: rgba(var(--cor-tema-rgb), 0.08);
  border: 1px solid rgba(var(--cor-tema-rgb), 0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 0.6rem;
  animation: fade-up 0.6s 0.1s ease both;
}

.page-header__title em {
  font-style: italic;
  color: var(--text-1);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.page-header__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  font-weight: 300;
  max-width: 440px;
  line-height: 1.65;
  margin: 0 auto;
}

/* ── GRID DE DISCIPLINAS ── */
.disciplines {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  animation: fade-up 0.6s 0.2s ease both;
}

/* ── CARD — base ── */
.disc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.3s cubic-bezier(.25, .8, .25, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  text-decoration: none;
  min-height: 200px;
}

.disc-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.disc-card__glow { display: none; }

.disc-card__icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.disc-card:hover .disc-card__icon-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.disc-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-right: 3rem;
}

.disc-card__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.disc-card__desc {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.6;
}

.disc-card__cta {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.disc-card__arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.disc-card:hover .disc-card__arrow {
  transform: translateY(-3px);
}

.disc-card__cta-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
}

.disc-card:hover .disc-card__cta-label {
  opacity: 1;
  transform: translateY(0);
}

/* ── TEMAS DOS CARDS ── */

/* ── CARD AVA — cor fixa azul, igual em todas as disciplinas ── */
.disc-card--ava {
  background: linear-gradient(145deg, #0e1420, rgba(122, 168, 232, 0.07));
  border-color: rgba(122, 168, 232, 0.18);
  box-shadow: 0 0 30px rgba(122, 168, 232, 0.05);
}
.disc-card--ava:hover {
  border-color: rgba(122, 168, 232, 0.4);
  box-shadow: 0 12px 40px rgba(122, 168, 232, 0.15);
}
.disc-card--ava .disc-card__icon-wrap {
  background: rgba(122, 168, 232, 0.12);
}
.disc-card--ava .disc-card__title { color: white; }
.disc-card--ava:hover .disc-card__arrow {
  border-color: #7aa8e8;
  color: #7aa8e8;
  background: rgba(122, 168, 232, 0.1);
  box-shadow: 0 0 14px rgba(122, 168, 232, 0.25);
}
.disc-card--ava:hover .disc-card__cta-label { color: #7aa8e8; }

/* Quiz — cor fixa teal, igual em todas as disciplinas */
.disc-card--quiz {
  background: linear-gradient(145deg, #0e1420, rgba(77, 217, 180, 0.07));
  border-color: rgba(77, 217, 180, 0.18);
  box-shadow: 0 0 30px rgba(77, 217, 180, 0.05);
}
.disc-card--quiz:hover {
  border-color: rgba(77, 217, 180, 0.4);
  box-shadow: 0 12px 40px rgba(77, 217, 180, 0.15);
}
.disc-card--quiz .disc-card__icon-wrap {
  background: rgba(77, 217, 180, 0.12);
}
.disc-card--quiz .disc-card__title { color: white; }
.disc-card--quiz:hover .disc-card__arrow {
  border-color: #4dd9b4;
  color: #4dd9b4;
  background: rgba(77, 217, 180, 0.1);
  box-shadow: 0 0 14px rgba(77, 217, 180, 0.25);
}
.disc-card--quiz:hover .disc-card__cta-label { color: #4dd9b4; }

/* ── ENADE — laranja ── */
.disc-card--enade {
  background: linear-gradient(145deg, #0e1420, rgba(249, 115, 22, 0.07));
  border-color: rgba(249, 115, 22, 0.18);
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.05);
}
.disc-card--enade:hover {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.15);
}
.disc-card--enade .disc-card__icon-wrap {
  background: rgba(249, 115, 22, 0.25);
  border-radius: 14px;
}
.disc-card--enade .disc-card__title { color: white; }
.disc-card--enade:hover .disc-card__arrow {
  border-color: #f97316;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.3);
}
.disc-card--enade:hover .disc-card__cta-label { color: #f97316; }

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.75rem 2rem;
  font-size: 0.76rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border);
  margin-top: 2rem;

}

/* ── FIXAÇÃO — roxo/violeta ── */
.disc-card--fixacao {
  background: linear-gradient(145deg, #0e1420, rgba(168, 85, 247, 0.07));
  border-color: rgba(168, 85, 247, 0.18);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.05);
}
.disc-card--fixacao:hover {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}
.disc-card--fixacao .disc-card__icon-wrap {
  background: rgba(168, 85, 247, 0.15);
  border-radius: 14px;
}
.disc-card--fixacao .disc-card__title { color: white; }
.disc-card--fixacao:hover .disc-card__arrow {
  border-color: #a855f7;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.3);
}
.disc-card--fixacao:hover .disc-card__cta-label { color: #a855f7; }

/* ── ANIMAÇÕES ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.disciplines .disc-card:nth-child(1) { animation: fade-up 0.5s 0.25s ease both; }
.disciplines .disc-card:nth-child(2) { animation: fade-up 0.5s 0.33s ease both; }
.disciplines .disc-card:nth-child(3) { animation: fade-up 0.5s 0.41s ease both; }
.disciplines .disc-card:nth-child(4) { animation: fade-up 0.5s 0.49s ease both; }

/* ── RESPONSIVIDADE ── */
@media (max-width: 680px) {
  .header { padding: 0.9rem 1.25rem; }
  .breadcrumb { display: none; }
  .main { padding: 2rem 1.25rem 2rem; }
  .page-header__title { font-size: 2rem; }
  .disciplines { grid-template-columns: 1fr; gap: 1rem; }
  .disc-card { padding: 1.4rem; }
  .disc-card__title { font-size: 1.3rem; }
  .disc-card__desc { display: none; }
  .disc-card__cta-label { display: none; }
}

@media (max-width: 380px) {
  .page-header__title { font-size: 1.75rem; }
  .logo-title { font-size: 1rem; }
}

