/* ==========================================================================
   Técnica Pomodoro — layout específico
   ========================================================================== */

.brand span {
  font-family: var(--font-heading);
}

.pomodoro-hero {
  padding-block: 2.25rem 1.25rem;
  text-align: center;
}
.pomodoro-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.01em;
}
.pomodoro-hero p {
  margin-top: 0.5rem;
  color: var(--color-muted-foreground);
  max-width: 52ch;
  margin-inline: auto;
  font-size: 0.95rem;
}

/* ---------- Palco colorido (muda de cor conforme o modo) ---------- */

.pomo-stage {
  position: relative;
  border-radius: var(--radius-2xl);
  padding: 3.5rem 1.5rem 2.75rem;
  margin-bottom: 1.25rem;
  text-align: center;
  color: #fff;
  background: #c1584f;
  transition: background-color 0.4s ease;
  box-shadow: var(--shadow-md);
}

.pomo-config-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 0.15s ease;
}
.pomo-config-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.pomo-config-btn__icon {
  display: inline-flex;
  align-items: center;
}
@media (max-width: 480px) {
  .pomo-config-btn__texto {
    display: none;
  }
  .pomo-config-btn {
    padding: 0.5rem;
  }
}

.pomo-tabs {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.pomo-tab {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pomo-tab:hover {
  background: rgba(255, 255, 255, 0.22);
}
.pomo-tab--ativa {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
}

.pomo-digits {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3.6rem, 15vw, 6.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.75rem;
  font-variant-numeric: tabular-nums;
}

.pomo-btn-principal {
  display: inline-block;
  background: #fff;
  color: #c1584f;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.85rem 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
  transition: transform 0.1s ease;
}
.pomo-btn-principal:hover {
  transform: translateY(-1px);
}
.pomo-btn-principal:active {
  transform: translateY(1px);
}

.pomo-reset-link {
  display: block;
  margin: 0.9rem auto 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pomo-reset-link:hover {
  color: #fff;
}

/* ---------- Info abaixo do palco: pontos + contador do dia ---------- */

.pomo-info {
  text-align: center;
  margin-bottom: 1.75rem;
}
.pomo-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.pomo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
}
.pomo-dot--cheio {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.pomo-contador {
  font-size: 0.85rem;
  color: var(--color-muted-foreground);
}

/* ---------- Modal de configurações ---------- */

.pomo-scroll-lock {
  overflow: hidden;
}

.pomo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 60;
}
.pomo-modal-overlay--aberto {
  display: flex;
}

.pomo-modal {
  background: #fdfdfc;
  color: #1f1f1f;
  width: min(420px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.pomo-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.pomo-modal__header h2 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}
.pomo-modal__fechar {
  font-size: 1.4rem;
  line-height: 1;
  color: #888;
  padding: 0.2rem 0.4rem;
}
.pomo-modal__fechar:hover {
  color: #1f1f1f;
}

.pomo-modal__subtitulo {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 0.6rem;
}

.pomo-modal__campos3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.35rem;
}
.pomo-modal__campo {
  min-width: 0;
}
.pomo-modal__campo label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #7a7a7a;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pomo-modal__input {
  min-width: 0;
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: var(--radius-md);
  padding: 0.5rem 0.6rem;
  font-size: 0.95rem;
  color: #1f1f1f;
  background: #fff;
}
.pomo-modal__input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.pomo-modal__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
  border-top: 1px solid #ececec;
  font-size: 0.85rem;
}
.pomo-modal__linha span {
  max-width: 24ch;
}
.pomo-modal > .pomo-modal__campo {
  margin-top: 0.9rem;
}

.pomo-testar-som {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary, #c1584f);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pomo-testar-som:hover {
  opacity: 0.75;
}

.pomo-switch {
  flex-shrink: 0;
}
.pomo-switch__track {
  display: block;
  position: relative;
  width: 2.6rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #d6d6d6;
  transition: background-color 0.18s ease;
}
.pomo-switch__track[data-on="true"] {
  background: var(--color-primary);
}
.pomo-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}
.pomo-switch__track[data-on="true"] .pomo-switch__thumb {
  transform: translateX(1.1rem);
}

/* ==========================================================================
   Seção de metodologia (texto explicativo, dentro da própria ferramenta)
   ========================================================================== */

.content {
  padding-block: 2rem 1rem;
  max-width: 72ch;
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}

.content h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}
.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.content p {
  color: color-mix(in oklch, var(--color-foreground) 88%, transparent);
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.content ul,
.content ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}
.content ul {
  list-style: disc;
}
.content ul li,
.content ol li {
  margin-bottom: 0.35rem;
  color: color-mix(in oklch, var(--color-foreground) 88%, transparent);
}

.content .callout {
  border: 1px solid var(--color-border);
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-block: 1.25rem;
  font-size: 0.85rem;
}
.content .callout strong {
  color: var(--color-primary);
}