:root {
  --green-950: #203a31;
  --green-900: #28473b;
  --green-800: #365b4c;
  --green-700: #477362;
  --green-600: #668b7c;
  --green-500: #82a395;
  --green-400: #9db7ac;
  --green-300: #bdd0c7;
  --green-200: #dce8e2;
  --green-100: #edf4f0;
  --green-50: #f6f9f7;

  --text: #29332f;
  --text-soft: #66736d;
  --border: #e2e9e5;
  --white: #ffffff;

  --sidebar-width: 282px;
  --topbar-height: 84px;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;

  --shadow:
    0 2px 5px rgba(31, 52, 44, 0.025),
    0 12px 32px rgba(31, 52, 44, 0.05);
}


/* =========================
   BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--green-50);

  -webkit-font-smoothing: antialiased;
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}


/* =========================
   TOPBAR
========================= */

.topbar {
  min-height: var(--topbar-height);

  display: flex;
  align-items: center;

  padding: 0 40px;

  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  width: calc(var(--sidebar-width) - 40px);

  display: flex;
  align-items: center;
  gap: 11px;

  color: var(--green-900);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 38px;

  border-radius: 50%;

  background: var(--green-100);
  color: var(--green-700);

  font-size: 17px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-logo strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-logo span {
  font-size: 9px;
  color: var(--green-600);
}

.course-info {
  display: flex;
  flex-direction: column;
  gap: 3px;

  padding-left: 40px;
}

.course-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
  font-weight: 700;
}

.course-info strong {
  font-size: 14px;
  color: var(--green-900);
}

.mobile-weekbar {
  display: none;
}


/* =========================
   LAYOUT
========================= */

.course-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);

  min-height: calc(100vh - var(--topbar-height));
}


/* =========================
   SIDEBAR
========================= */

.course-sidebar {
  padding: 38px 22px;

  background: var(--white);
  border-right: 1px solid var(--border);

  position: sticky;
  top: var(--topbar-height);

  height: calc(100vh - var(--topbar-height));

  overflow-y: auto;
}

.sidebar-heading {
  padding: 0 14px 10px;
}

.sidebar-heading h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.sidebar-heading span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-600);
}

.sidebar-heading h2 {
  margin: 5px 0 0;

  font-size: 17px;
  font-weight: 600;

  color: var(--green-900);
}

.weeks-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.week-link {
  width: 100%;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 11px 12px;

  border: 0;
  border-radius: 11px;

  background: transparent;
  color: var(--text-soft);

  text-align: left;
  cursor: pointer;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.week-link:hover {
  background: var(--green-50);
  color: var(--green-900);
}

.week-link:active {
  transform: scale(0.99);
}

.week-number {
  flex: 0 0 34px;

  width: 34px;
  height: 34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--green-100);
  color: var(--green-700);

  font-size: 12px;
  font-weight: 700;
}

.week-link small,
.week-link strong {
  display: block;
}

.week-link small {
  margin-bottom: 2px;

  font-size: 10px;
}

.week-link strong {
  font-size: 13px;
  font-weight: 500;
}

.week-link.active {
  background: var(--green-100);
  color: var(--green-900);
}

.week-link.active .week-number {
  background: var(--green-700);
  color: white;
}

.week-link.active strong {
  font-weight: 600;
}


/* =========================
   CONTEÚDO
========================= */

.course-content {
  width: min(940px, calc(100% - 80px));

  margin: 0 auto;

  padding: 68px 0 100px;
}


/* =========================
   HEADER DA SEMANA
========================= */

.week-header {
  margin-bottom: 52px;
}

.week-kicker {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 14px;

  color: var(--green-700);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.week-progress {
  padding-left: 12px;

  border-left: 1px solid var(--green-300);

  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0;
}

.week-header h1 {
  margin: 0 0 18px;

  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.04em;

  color: var(--green-900);
}

.week-header p {
  max-width: 760px;

  margin: 0;

  font-size: 16px;
  line-height: 1.8;

  color: var(--text-soft);
}


/* =========================
   RECURSOS
========================= */

.resources {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resources-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 2px;
}

.section-kicker {
  display: block;

  margin-bottom: 5px;

  color: var(--green-600);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.resources-heading h2 {
  margin: 0;

  font-size: 17px;
  color: var(--green-900);
}

.resource-count {
  color: var(--text-soft);
  font-size: 11px;
}

.resources-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resource-card {
  padding: 27px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  animation: resourceEnter 0.28s ease both;
}

@keyframes resourceEnter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.resource-heading {
  display: flex;
  gap: 15px;
  align-items: center;
}

.resource-icon {
  flex: 0 0 42px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: var(--green-100);
  color: var(--green-700);

  font-size: 15px;
}

.resource-type {
  display: block;

  margin-bottom: 4px;

  color: var(--green-600);

  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resource-heading h3 {
  margin: 0;

  font-size: 17px;
  font-weight: 600;

  color: var(--green-900);
}

.resource-description {
  margin: 19px 0 0;

  color: var(--text-soft);

  font-size: 13px;
  line-height: 1.75;
}


/* =========================
   VÍDEO
========================= */

.video-placeholder {
  aspect-ratio: 16 / 9;

  margin-top: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  overflow: hidden;

  border-radius: 12px;

  background:
    radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.09), transparent 35%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
}

.video-placeholder::after {
  content: "Vídeo demonstrativo";

  position: absolute;
  right: 14px;
  bottom: 12px;

  color: rgba(255, 255, 255, 0.62);

  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-play {
  width: 64px;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 4px;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.95);
  color: var(--green-800);

  font-size: 18px;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.video-play:hover {
  transform: scale(1.06);
  background: white;
}


/* =========================
   ÁUDIO DUMMY
========================= */

.audio-player {
  margin-top: 22px;

  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;

  padding: 12px 14px;

  border: 1px solid var(--green-200);
  border-radius: 12px;

  background: var(--green-50);
}

.audio-play {
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding-left: 2px;

  border: 0;
  border-radius: 50%;

  background: var(--green-700);
  color: white;

  cursor: pointer;
}

.audio-track {
  height: 4px;

  overflow: hidden;

  border-radius: 999px;
  background: var(--green-200);
}

.audio-progress {
  width: 28%;
  height: 100%;

  border-radius: inherit;
  background: var(--green-600);
}

.audio-time {
  color: var(--text-soft);

  font-size: 10px;
  white-space: nowrap;
}


/* =========================
   DOCUMENTOS
========================= */

.resource-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 21px;

  padding: 10px 13px;

  border: 1px solid var(--green-200);
  border-radius: 9px;

  background: var(--green-50);

  color: var(--green-700);

  text-decoration: none;

  font-size: 12px;
  font-weight: 600;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.resource-button:hover {
  background: var(--green-100);
  border-color: var(--green-300);
}

.resource-button i {
  font-size: 10px;
}


/* =========================
   EXERCÍCIO
========================= */

.exercise-note {
  margin-top: 20px;

  padding: 15px 17px;

  border-left: 3px solid var(--green-500);
  border-radius: 0 9px 9px 0;

  background: var(--green-50);

  color: var(--text-soft);

  font-size: 12px;
  line-height: 1.7;
}


/* =========================
   NAVEGAÇÃO
========================= */

.week-navigation {
  margin-top: 46px;
  padding-top: 30px;

  display: flex;
  justify-content: space-between;
  gap: 20px;

  border-top: 1px solid var(--border);
}

.week-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-width: 160px;

  padding: 11px 15px;

  border: 1px solid var(--green-200);
  border-radius: 11px;

  background: var(--white);
  color: var(--green-800);

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.week-nav-button:hover:not(:disabled) {
  background: var(--green-100);
  border-color: var(--green-300);
}

.week-nav-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.week-nav-button span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;

  line-height: 1.1;
}

.week-nav-button small {
  margin: 0;
  line-height: 1.2;

  color: var(--text-soft);
  font-size: 9px;
}

.week-nav-button strong {
  margin: 0;
  line-height: 1.2;

  font-size: 11px;
  font-weight: 600;
}

.week-nav-button.next {
  margin-left: auto;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  :root {
    --sidebar-width: 232px;
  }

  .topbar {
    padding: 0 25px;
  }

  .brand {
    width: calc(var(--sidebar-width) - 25px);
  }

  .brand-copy span {
    display: none;
  }

  .course-info {
    padding-left: 25px;
  }

  .course-sidebar {
    padding: 30px 14px;
  }

  .course-content {
    width: calc(100% - 50px);
    padding-top: 55px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

  :root {
    --topbar-height: 70px;
  }

  .topbar {
    min-height: var(--topbar-height);

    padding: 12px 18px;

    justify-content: space-between;
  }

  .brand {
    width: auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;

    flex-basis: 34px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .course-info {
    max-width: 48%;
    padding-left: 10px;

    text-align: right;
  }

  .course-info strong {
    display: block;

    overflow: hidden;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .course-label {
    font-size: 8px;
  }

  .mobile-weekbar {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 18px;

    position: sticky;
    top: var(--topbar-height);
    z-index: 90;

    background: rgba(246, 249, 247, 0.96);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);
  }

  .mobile-weekbar label {
    color: var(--green-700);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-weekbar select {
    flex: 1;

    padding: 9px 12px;

    border: 1px solid var(--green-200);
    border-radius: 9px;

    background: white;
    color: var(--green-900);

    font-size: 12px;
    font-weight: 600;
  }

  .course-layout {
    display: block;
  }

  .course-sidebar {
    display: none;
  }

  .course-content {
    width: calc(100% - 34px);

    padding: 42px 0 70px;
  }

  .week-header {
    margin-bottom: 38px;
  }

  .week-header h1 {
    font-size: 34px;
  }

  .week-header p {
    font-size: 14px;
  }

  .resource-card {
    padding: 20px;
  }

  .resource-heading h3 {
    font-size: 15px;
  }

  .video-play {
    width: 54px;
    height: 54px;
  }

  .audio-player {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .audio-time {
    grid-column: 2;
  }

  .week-nav-button {
    min-width: auto;
  }


}
