/* Estilos adicionais para melhorar a responsividade das páginas de conteúdo */
@media (max-width: 768px) {
  .content-header h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }
  
  .content-section h2 {
    font-size: 1.3rem;
  }
  
  .content-section table {
    font-size: 0.9rem;
  }
  
  .content-section pre {
    font-size: 0.85rem;
  }
  
  .actions {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .content-body {
    padding: 1rem;
  }
  
  .content-meta {
    font-size: 0.8rem;
  }
  
  .content-section h2::after {
    width: 40px;
  }
  
  .content-section blockquote {
    padding-left: 0.75rem;
    font-size: 0.9rem;
  }
  
  .back-btn, .github-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .code-highlight .language-label {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Melhorias para acessibilidade em dispositivos touch */
@media (hover: none) {
  .back-btn, .github-btn {
    padding: 0.85rem 1.5rem;
  }
  
  .breadcrumb a {
    padding: 0.3rem 0;
  }
  
  .content-section a {
    padding: 0.2rem 0;
  }
}

/* Ajustes para telas muito grandes */
@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
  
  .content-body {
    font-size: 1.05rem;
  }
  
  .content-header h1 {
    font-size: 2.5rem;
  }
  
  .content-section h2 {
    font-size: 1.8rem;
  }
}

/* Melhorias para modo escuro */
@media (prefers-color-scheme: dark) {
  .content-section code, 
  .content-section pre {
    background-color: rgba(0, 0, 0, 0.3);
  }
  
  .content-section table th {
    background-color: rgba(0, 0, 0, 0.2);
  }
  
  .content-section table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
}

/* Melhorias para impressão */
@media print {
  body {
    background-color: white;
    color: black;
  }
  
  header, footer, .actions {
    display: none;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  .content-body {
    box-shadow: none;
    border: none;
  }
  
  .content-section h2::after {
    display: none;
  }
  
  a {
    text-decoration: none;
    color: black;
  }
  
  .content-section pre, 
  .content-section code {
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #333;
  }
}
