/* Shell do Terra — HTML estático que hospeda o bundle do bolão.
 * Independente do projeto React: replica o visual das peças do Terra
 * (navbar, ad, breadcrumb, header de canal, footer) com tokens próprios.
 *
 * Compartilhado por sample/widget.html e sample/full.html. */

:root {
  --brand-primary: #f85700;
  --brand-dark: #211f1f;

  --bg-surface: #ffffff;
  --bg-100: #f5f5f5;
  --bg-200: #f0efef;

  --text-primary: #211f1f;
  --text-secondary: #444141;
  --text-muted: #9a9999;

  --border: #f0efef;

  --esportes-primary-bg: #4f9c1f;
  --esportes-secondary-bg: #dafac7;
  --esportes-tertiary-bg: #5acd26;
  --esportes-primary-text: #307010;
  --esportes-secondary-text: #dafac7;

  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: inherit;
}

.terra-page {
  min-height: 100vh;
  background: var(--bg-100);
  color: var(--text-primary);
}

/* ---------- Navbar ---------- */

.terra-navbar {
  background: var(--brand-primary);
  color: #fff;
  border-bottom: 4px solid rgba(0, 0, 0, 0.18);
}

.terra-navbar__ranges {
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.terra-navbar__left,
.terra-navbar__right {
  display: flex;
  align-items: center;
}

.terra-navbar__left {
  gap: 16px;
}

.terra-navbar__right {
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.terra-navbar__menu-btn,
.terra-navbar__icon-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.terra-navbar__menu-btn {
  padding: 4px;
  display: grid;
  place-items: center;
}

.terra-navbar__logo {
  display: flex;
  align-items: center;
  color: #fff;
}

.terra-navbar__logo img {
  display: block;
  height: 22px;
  width: auto;
}

.terra-navbar__sva ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.terra-navbar__sva ul::-webkit-scrollbar {
  display: none;
}

.terra-navbar__sva a {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  opacity: 0.92;
  transition: opacity 120ms ease;
}

.terra-navbar__sva a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terra-navbar__user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.terra-navbar__icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 120ms ease;
}

.terra-navbar__icon-btn:hover {
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 900px) {
  .terra-navbar__sva {
    display: none;
  }
}

/* ---------- Ad banner ---------- */

.terra-ad-banner {
  background: var(--bg-100);
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

.terra-ad-banner__inner {
  width: 100%;
  max-width: 970px;
  height: 250px;
  background: var(--bg-200);
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--text-muted);
}

.terra-ad-banner__label {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.terra-ad-banner__placeholder {
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Breadcrumb ---------- */

.terra-breadcrumb {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.terra-breadcrumb__container {
  max-width: 1272px;
  margin: 0 auto;
  padding: 8px 16px;
}

.terra-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.terra-breadcrumb__item a {
  color: var(--text-secondary);
}

.terra-breadcrumb__item a:hover {
  color: var(--brand-primary);
}

.terra-breadcrumb__item:last-child {
  color: var(--text-primary);
  font-weight: 600;
}

.terra-breadcrumb__sep {
  color: var(--text-muted);
  font-size: 11px;
}

/* ---------- Channel header ---------- */

.terra-channel {
  padding: 16px 0 8px;
}

.terra-channel__container {
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 16px;
}

.terra-channel__title-wrap {
  background: var(--esportes-primary-bg);
  border-radius: 8px;
  padding: 16px 24px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terra-channel__title-link {
  color: var(--esportes-secondary-text);
  display: inline-flex;
}

.terra-channel__title-link h1 {
  margin: 0;
  font-size: 0;
}

.terra-channel__title {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1;
  color: var(--esportes-secondary-text);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.terra-channel__border {
  background: var(--esportes-tertiary-bg);
  width: 100%;
  height: 16px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  margin-top: -6px;
}

.terra-channel__menu {
  margin-top: 16px;
}

.terra-channel__menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.terra-channel__menu-item {
  background: var(--esportes-secondary-bg);
  border-radius: 20px;
  margin-right: 8px;
  margin-bottom: 6px;
  color: var(--esportes-primary-text);
}

.terra-channel__menu-item a {
  display: inline-block;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: inherit;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 200ms ease;
}

.terra-channel__menu-item a h2 {
  margin: 0;
  font: inherit;
  color: inherit;
}

.terra-channel__menu-item a:hover {
  border-color: currentColor;
}

.terra-channel__menu-item--active {
  background: var(--esportes-primary-bg);
  color: var(--esportes-secondary-text);
}

.terra-channel__menu-item--active a {
  border-color: currentColor;
}

/* ---------- Main / slots ---------- */

.terra-page__main {
  padding: 24px 0 48px;
}

.terra-page__container {
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Slot do widget embedável (306px) */
.terra-page__widget-area {
  width: 306px;
}

/* Demo dos 4 tamanhos do widget (size 1|2|3|4). */
.widget-sizes-demo {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 8px 0;
}

.widget-sizes-demo__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.widget-sizes-demo__label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.widget-sizes-demo__slot {
  max-width: 100%;
}

/* Slot full — ocupa toda a largura, o próprio bundle cuida do container interno */
.terra-page__full-slot {
  width: 100%;
}

/* ---------- Footer ---------- */

.terra-page__footer {
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 24px 0;
  font-size: 12px;
}

.terra-page__footer-inner {
  max-width: 1272px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}
