/* ========================================
   RESPONSIVIDADE GLOBAL - CHECKLIST GOOGLE ADS
   ======================================== */

/* ========================================
   BREAKPOINTS PRINCIPAIS
   ======================================== */

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .header h1 {
    font-size: 2.8rem;
  }
  
  .header p {
    font-size: 1.2rem;
    max-width: 700px;
  }
}

/* Desktop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
  .container {
    max-width: 95%;
    margin: 1.75rem auto;
    padding: 1.875rem;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
  
  .header p {
    font-size: 1.1rem;
    max-width: 650px;
  }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
  .container {
    max-width: 95%;
    margin: 1.5rem auto;
    padding: 1.75rem;
  }
  
  .header {
    padding: 1.75rem 0;
  }
  
  .header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
  }
  
  .header p {
    font-size: 1rem;
    max-width: 600px;
    padding: 0 1rem;
  }
  
  /* Ajustes para grid e cards */
  .help-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Tablet Portrait (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
  .container {
    max-width: 100%;
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .header {
    padding: 1.5rem 0;
  }
  
  .header h1 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }
  
  .header p {
    font-size: 0.95rem;
    max-width: 500px;
    padding: 0 1rem;
  }
  
  /* Grid responsivo */
  .help-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.875rem;
  }
  
  /* Formulários e inputs */
  .search-input {
    max-width: 100%;
    font-size: 1rem;
    padding: 0.875rem;
  }
  
  /* Botões */
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* Mobile Large (360px - 480px) */
@media (max-width: 480px) and (min-width: 361px) {
  .container {
    margin: 0.75rem;
    padding: 1.25rem;
  }
  
  .header {
    padding: 1.25rem 0;
  }
  
  .header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
  }
  
  .header p {
    font-size: 0.9rem;
    max-width: 100%;
    padding: 0 1rem;
    line-height: 1.4;
  }
  
  /* Cards e seções */
  .help-card,
  .content-section,
  .warning-section,
  .success-section {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .help-card h3 {
    font-size: 1.1rem;
  }
  
  /* Estatísticas */
  .stat-card {
    padding: 1.25rem;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
  
  /* Botões */
  .btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
  
  /* Código inline */
  code {
    font-size: 0.85rem;
    padding: 1px 3px;
  }
}

/* Mobile Small (320px - 360px) */
@media (max-width: 360px) {
  .container {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .header {
    padding: 1rem 0;
  }
  
  .header h1 {
    font-size: 1.5rem;
    padding: 0 0.25rem;
  }
  
  .header p {
    font-size: 0.85rem;
    padding: 0 0.75rem;
  }
  
  /* Cards e seções */
  .help-card,
  .content-section,
  .warning-section,
  .success-section {
    padding: 0.75rem;
    border-radius: 10px;
  }
  
  .help-card h3 {
    font-size: 1rem;
  }
  
  .help-card p {
    font-size: 0.85rem;
  }
  
  /* Estatísticas */
  .stat-card {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  /* Botões */
  .btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  /* Código inline */
  code {
    font-size: 0.8rem;
    padding: 1px 2px;
  }
}

/* ========================================
   ORIENTAÇÕES ESPECÍFICAS
   ======================================== */

/* Landscape em dispositivos móveis */
@media (max-width: 767px) and (orientation: landscape) {
  .header {
    padding: 1rem 0;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .header p {
    font-size: 0.9rem;
  }
  
  .container {
    margin: 0.75rem;
    padding: 1.25rem;
  }
}

/* Portrait em tablets */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .header {
    padding: 2rem 0;
  }
  
  .header h1 {
    font-size: 2.5rem;
  }
  
  .help-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* ========================================
   DISPOSITIVOS DE ALTA RESOLUÇÃO
   ======================================== */

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .header::before {
    background: linear-gradient(45deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(255,255,255,0.08) 100%);
  }
  
  .container {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
  }
}

/* Ultra HD displays */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi) {
  .header h1 {
    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  
  .container {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.15);
  }
}

/* ========================================
   ACESSIBILIDADE E PREFERÊNCIAS
   ======================================== */

/* Preferências de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .header::before,
  .help-card,
  .btn,
  .content-section {
    transition: none;
    animation: none;
  }
  
  .header h1,
  .header p {
    transition: none;
  }
}

/* Modo de alto contraste */
@media (prefers-contrast: high) {
  .header {
    border: 2px solid #000;
  }
  
  .header h1 {
    text-shadow: 2px 2px 0 #000;
  }
  
  .container {
    border: 2px solid #000;
  }
  
  .help-card,
  .content-section,
  .warning-section,
  .success-section {
    border: 2px solid #000;
  }
}

/* Modo escuro automático */
@media (prefers-color-scheme: dark) {
  .header:not(.header-initialized) {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }
  
  .container:not(.dark-mode) {
    background: rgba(15, 23, 42, 0.95);
    color: #f1f5f9;
  }
}

/* ========================================
   IMPRESSÃO
   ======================================== */

@media print {
  .header {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  
  .header::before {
    display: none;
  }
  
  .container {
    background: #fff !important;
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
  
  .help-card,
  .content-section,
  .warning-section,
  .success-section {
    background: #fff !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
  
  .btn {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
  }
  
  .toggle-mode {
    display: none !important;
  }
}

/* ========================================
   UTILITÁRIOS RESPONSIVOS
   ======================================== */

/* Classes utilitárias para responsividade */
.hide-mobile {
  display: block;
}

.show-mobile {
  display: none;
}

.hide-tablet {
  display: block;
}

.show-tablet {
  display: none;
}

@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
}

@media (max-width: 1023px) {
  .hide-tablet {
    display: none !important;
  }
  
  .show-tablet {
    display: block !important;
  }
}

/* Container responsivo */
.container-fluid {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1024px) {
  .container-fluid {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Grid responsivo */
.grid-responsive {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
}
