/* ======================================
   ZECA95 Dashboard - Responsive Styles
   Mobile & Tablet Adaptations (Glassmorphism)
   ====================================== */

/* ======================================
   Tablet (768px - 1024px)
   ====================================== */

@media (max-width: 1024px) {
  .section-title {
    font-size: 2rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ======================================
   Mobile (< 768px)
   ====================================== */

@media (max-width: 768px) {
  /* Header & Navigation */
  .header {
    padding: 0.75rem 0;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    z-index: 999;
    border-top: 1px solid rgba(34, 211, 238, 0.1);
  }

  .nav.active {
    max-height: 400px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
  }

  .nav-link:hover {
    background: var(--cyan-hover);
  }

  /* Sections */
  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  /* Cards */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    min-height: 320px;
  }

  .card-image {
    height: 150px;
  }

  .card-content {
    padding: 1rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-description {
    font-size: 0.9rem;
  }

  .stat {
    font-size: 0.85rem;
  }

  .card-link {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card {
    padding: 1rem;
  }

  .service-name {
    font-size: 0.9rem;
  }

  /* Charts */
  .chart-wrapper {
    height: 250px;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
    font-size: 0.85rem;
  }
}

/* ======================================
   Small Mobile (< 480px)
   ====================================== */

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.1rem;
    letter-spacing: 1.5px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-description {
    font-size: 0.85rem;
  }

  .nav {
    padding: 1rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 0.75rem;
  }

  .chart-wrapper {
    height: 200px;
  }

  .auth-modal-content {
    width: 95%;
  }

  .lock-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ======================================
   Landscape Mobile (480px - 768px height)
   ====================================== */

@media (max-width: 768px) and (max-height: 500px) {
  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
  }

  .section-subtitle {
    margin-bottom: 1rem;
  }

  .chart-wrapper {
    height: 200px;
  }
}

/* ======================================
   Print Styles
   ====================================== */

@media print {
  .header,
  .footer,
  .hamburger,
  .particles-canvas {
    display: none;
  }

  .section {
    page-break-inside: avoid;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }
}

/* ======================================
   Accessibility - Reduced Motion
   ====================================== */

@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;
  }
}

/* ======================================
   High Contrast Mode
   ====================================== */

@media (prefers-contrast: more) {
  .card {
    border-width: 2px;
  }

  .service-card {
    border-width: 2px;
  }

  .nav-link {
    border-width: 2px;
  }

  .card-link {
    font-weight: 900;
  }
}

/* ======================================
   Dark Mode (default for Glassmorphism)
   ====================================== */

@media (prefers-color-scheme: dark) {
  /* Already dark by default */
}

@media (prefers-color-scheme: light) {
  /* Not supported - this is a dark theme only */
  body {
    background: var(--gradient-bg);
    color: var(--text-primary);
  }
}
