/* ============================================
   Portal SMS Extrema/MG - Stylesheet v1.0.0
   ============================================ */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body e layout principal */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header */
header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a365d;
}

header p {
  font-size: 1rem;
  color: #4a5568;
  margin-top: 0.5rem;
}

/* Grid - Mobile First com breakpoints explícitos */
.grid {
  display: grid;
  gap: 1.5rem;
  padding: 0 1rem 3rem;
  max-width: 900px;
  width: 100%;
  /* Mobile: 1 coluna (padrão) */
  grid-template-columns: 1fr;
}

/* Tablet: 2 colunas */
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1.5rem 3rem;
  }
}

/* Desktop: 3 colunas */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 2rem 3rem;
  }
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
  /* Garantir touch target mínimo de 44x44px (WCAG 2.5.5) */
  min-height: 44px;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Foco visível para acessibilidade (WCAG 2.4.7) */
.card:focus-visible {
  outline: 3px solid #3182ce;
  outline-offset: 2px;
}

.card h2 {
  font-size: 1.1rem;
  color: #1a365d;
  margin-bottom: 0.5rem;
}

/* Cor ajustada para contraste WCAG AAA (7.12:1) */
.card p {
  font-size: 0.9rem;
  color: #5a6c7d; /* Antes: #718096 (4.54:1) */
}

.card .date {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Emoji de cadeado com acessibilidade */
.lock {
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: #a0aec0;
}

/* Ajustes para impressão */
@media print {
  .card {
    border: 2px solid #e2e8f0;
    break-inside: avoid;
  }

  .card:hover {
    box-shadow: none;
    transform: none;
  }
}

/* Dark mode (futuro) - preparado mas comentado */
/* @media (prefers-color-scheme: dark) {
  body {
    background: #1a202c;
    color: #e2e8f0;
  }

  .card {
    background: #2d3748;
    border-color: #4a5568;
  }

  .card h2 {
    color: #90cdf4;
  }
} */
