/* ==========================================================================
   MINEMATES SMP - MOBILE & TABLET RESPONSIVE ENGINE
   ========================================================================== */

@media screen and (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col-ips { grid-column: span 3; }
}

@media screen and (max-width: 900px) {
  .events-layout-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .rules-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .gallery-item.large { grid-column: span 2; grid-row: span 1; }
  .gallery-item.tall { grid-row: span 1; }
  .quickbar-divider { display: none; }

  /* Mobile Navigation Drawer */
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: 78px;
    right: -100%;
    width: 82%;
    max-width: 380px;
    height: calc(100vh - 78px);
    background: rgba(8, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 32px 24px;
    align-items: flex-start;
    transition: right 0.35s ease-in-out;
    overflow-y: auto;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
  }
  .nav-menu.active { right: 0; }
  .nav-links { flex-direction: column; width: 100%; gap: 14px; }
  .nav-link { font-size: 1.15rem; display: block; width: 100%; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-cta-group { flex-direction: column; width: 100%; margin-top: 22px; gap: 10px; }
  .nav-cta-group .btn-mc { width: 100%; }

  .mobile-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active .bar:nth-child(2) { opacity: 0; }
  .mobile-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media screen and (max-width: 640px) {
  .section { padding: 65px 0; }
  .section-title { font-size: 2rem; }
  .hero-headline { font-size: 2rem; }
  .hero-tagline { font-size: 0.95rem; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-item.large { grid-column: span 1; grid-row: span 1; }
  .dash-metrics-grid { grid-template-columns: 1fr; }
  .hero-quickbar { flex-direction: column; width: 100%; }
  .quickbar-entry { width: 100%; justify-content: space-between; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-col-ips { grid-column: span 1; }

  .toast-notification { left: 20px; right: 20px; bottom: 20px; justify-content: center; }
  .back-to-top { left: auto; right: 20px; bottom: 20px; }
  
  .modal-window { padding: 22px; }
  .modal-title { font-size: 1.4rem; }
  .input-row { flex-direction: column; }
}