/* ============================================
   GByte Informática - Responsividade
   ============================================ */

/* Tablets e telas médias */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .admin-layout {
    grid-template-columns: 220px 1fr;
  }
  
  .products-layout {
    grid-template-columns: 200px 1fr;
  }
}

/* Tablets verticais */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary);
    flex-direction: column;
    padding: var(--space-4);
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links li {
    border-bottom: 1px solid var(--color-primary-light);
  }
  
  .nav-links a {
    display: block;
    padding: var(--space-4);
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: var(--text-3xl);
  }
  
  .hero p {
    font-size: var(--text-base);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .about-content,
  .contact-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    height: 300px;
  }
  
  .products-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: static;
  }
  
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    display: none;
  }
  
  .admin-sidebar.mobile-open {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: 260px;
    z-index: 999;
    overflow-y: auto;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* Smartphones */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .hero {
    padding: var(--space-12) 0;
  }
  
  .hero h1 {
    font-size: var(--text-2xl);
  }
  
  .section {
    padding: var(--space-8) 0;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .product-actions {
    flex-direction: column;
  }
  
  .login-card {
    padding: var(--space-6);
    margin: var(--space-4);
  }
  
  .data-table {
    overflow-x: auto;
  }
  
  .data-table table {
    min-width: 600px;
  }
}

/* Telas muito pequenas */
@media (max-width: 360px) {
  :root {
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
  }
  
  .logo {
    font-size: var(--text-xl);
  }
  
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
  }
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modo escuro (opcional) */
@media (prefers-color-scheme: dark) {
  /* Pode adicionar estilos para dark mode aqui */
}

/* Print styles */
@media print {
  #app-header,
  #app-footer,
  .nav-actions,
  .product-actions {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
