/* Estilos Responsivos */

/* Tablets e dispositivos menores */
@media screen and (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item.left::after,
  .timeline-item.right::after {
    left: 21px;
  }
  
  .timeline-item.right {
    left: 0;
  }
  
  .footer-section {
    min-width: 250px;
  }
}

/* Dispositivos móveis */
@media screen and (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    width: 100%;
    text-align: center;
  }
  
  nav ul li a {
    display: block;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-inner {
    padding: 0 1rem 1.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    margin-bottom: 2rem;
  }
}

/* Dispositivos muito pequenos */
@media screen and (max-width: 480px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
  
  .timeline-content {
    padding: 15px;
  }
  
  .card {
    padding: 1rem;
  }
}

/* Ajustes para telas grandes */
@media screen and (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  body {
    font-size: 18px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  h3 {
    font-size: 2rem;
  }
}

/* Ajustes para modo escuro (preferência do sistema) */
@media (prefers-color-scheme: dark) {
  :root {
    --azul-principal: #2980b9;
    --verde: #2ecc71;
    --laranja: #f39c12;
    --cinza-claro: #2c3e50;
    --branco: #ffffff;
  }
  
  body {
    color: #ecf0f1;
    background-color: #1a1a1a;
  }
  
  .card, .section, .breadcrumbs, .timeline-content {
    background-color: #2c3e50;
    color: #567278;
  }
  
  th, td {
    border-bottom: 1px solid #4a4a4a;
  }
  
  tr:nth-child(even) {
    background-color: #2c3e50;
  }
  
  tr:hover {
    background-color: #3a546b;
  }
  
  .progress-container {
    background-color: #8d6b18;
  }
}
