/* Google Fonts (Nunito - Tipografia amigável e acolhedora) & Material Symbols */
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

/* Reset & Variáveis de Cores (Fundo suave em degradê e cards destacados) */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #e0e7ff;
  --primary-border: #c7d2fe;
  --success: #16a34a;
  --success-hover: #15803d;
  --success-light: #dcfce7;
  --success-border: #bbf7d0;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --bg-gradient: linear-gradient(180deg, #eef2ff 0%, #f1f5f9 100%);
  --card-bg: #ffffff;
  --card-header-bg: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #cbd5e1;
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 16px -2px rgba(30, 41, 59, 0.08), 0 4px 6px -2px rgba(30, 41, 59, 0.04);
  --shadow-lg: 0 20px 30px -6px rgba(30, 41, 59, 0.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

body {
  font-family: var(--font-family);
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
  width: 100%;
}

/* Container de tela quase cheia (Modo Imersivo de Exercícios) */
.container-exercise,
body:has(.workspace-area) .container {
  max-width: 95vw;
  max-width: clamp(1200px, 95vw, 1680px);
  width: 100%;
  padding: 14px 20px 20px;
}

/* Helper de Ícones do Google */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* ==========================================================================
   ESTRUTURA DE ANÚNCIOS LATERAIS (GOOGLE ADSENSE DESKTOP)
   ========================================================================== */
.page-ad-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  position: relative;
}

.side-ad-banner {
  width: 160px;
  min-height: 600px;
  position: sticky;
  top: 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-ad-left {
  margin-right: -10px;
}

.side-ad-right {
  margin-left: -10px;
}

.ad-placeholder {
  width: 100%;
  height: 600px;
  background: rgba(255, 255, 255, 0.4);
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  user-select: none;
}

/* Ocultar banners laterais em telas menores para garantir UX perfeita e sem rolagem horizontal */
@media (max-width: 1540px) {
  .side-ad-banner {
    display: none !important;
  }
}

