/* =====================================================
   theContt — Calculadoras page styles
   ===================================================== */

/* ─── Layout calculadora ─── */
.calc-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.calc-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-6));
}

.calc-form-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
}

.calc-form-title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}

.calc-form-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}

.calc-section-title {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: var(--sp-5) 0 var(--sp-3);
}

.calc-section-title:first-of-type { margin-top: 0; }

.calc-results-area {}

/* Placeholder enquanto não calculou */
.calc-empty-state {
  text-align: center;
  padding: var(--sp-16) var(--sp-8);
  color: var(--color-text-muted);
}

.calc-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--sp-4);
  opacity: 0.4;
}

.calc-empty-state p {
  font-size: var(--text-base);
  max-width: 300px;
  margin: 0 auto;
}

/* ─── Regimes grid ─── */
.regimes-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ─── Resultado salário layout ─── */
.salario-result-card {
  max-width: 640px;
  margin: 0 auto;
}

/* ─── CTA após cálculo ─── */
.calc-cta-section {
  margin-top: var(--sp-8);
  padding: var(--sp-8);
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  text-align: center;
  color: #fff;
}

.calc-cta-section h3 {
  color: #fff;
  margin-bottom: var(--sp-3);
}

.calc-cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  margin-bottom: var(--sp-5);
}

/* ─── Index das calculadoras ─── */
.calcs-index-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.calc-index-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--sp-8);
  text-align: center;
  text-decoration: none;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calc-index-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--color-cta);
}

.calc-index-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--color-cta-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--sp-5);
}

.calc-index-card h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: var(--color-text-primary);
}

.calc-index-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

/* ─── Tabela de alíquotas ─── */
.aliq-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
}

.aliq-table {
  width: 100%;
  border-collapse: collapse;
}

.aliq-table th,
.aliq-table td {
  padding: var(--sp-3) var(--sp-5);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

.aliq-table th {
  background: var(--color-bg);
  font-weight: var(--fw-semibold);
  color: var(--color-text-primary);
}

.aliq-table tr:last-child td { border-bottom: none; }
.aliq-table tr:nth-child(even) td { background: rgba(247,248,250,0.5); }

/* Tooltips info */
.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-border-strong);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--fw-bold);
  cursor: help;
  margin-left: 4px;
  vertical-align: middle;
}

@media (max-width: 1024px) {
  .calc-layout {
    grid-template-columns: 1fr;
  }
  .calc-sidebar {
    position: static;
  }
  .calcs-index-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .calcs-index-grid { grid-template-columns: 1fr; }
}
