/* ==========================================================================
   Responsive — Bento Grid Breakpoints
   ========================================================================== */

/* Tablet: <= 900px — stack bento to single column */
@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .bento-right-stack {
    flex-direction: column;
  }

  .featured-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }

  .profile-name {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}

/* Mobile nav: <= 768px */
@media (max-width: 768px) {
  .nav-tabs {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .bento-grid {
    padding: 4rem 1rem 2rem;
    gap: 0.75rem;
  }

  .bento-card {
    padding: 1.5rem;
  }

  .profile-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .profile-photo {
    width: 56px;
    height: 56px;
  }

  .profile-actions {
    flex-direction: column;
    width: 100%;
  }

  .profile-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .post-header, .archive-header, .search-header {
    padding: 6rem 0 2rem;
  }

  .post-content {
    padding: 2rem 1.25rem;
  }

  .post-navigation {
    flex-direction: column;
  }

  .comments-area {
    padding: 0 1.25rem 3rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Hide cursor on touch */
  .custom-cursor,
  .cursor-follower {
    display: none !important;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .search-field,
  .search-form .search-submit {
    border-radius: var(--radius-md);
    width: 100%;
  }
}

/* Small mobile: <= 480px */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .bento-grid {
    padding: 3.5rem 0.75rem 1.5rem;
  }

  .bento-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .status-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.5rem;
  }

  .card-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .connect-link {
    padding: 0.5rem 0.6rem;
  }

  .mobile-nav-overlay a {
    font-size: 1.25rem;
  }
}

/* Large screens: >= 1400px */
@media (min-width: 1400px) {
  .bento-grid {
    max-width: 1200px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .gs-reveal, .gs-reveal-left, .gs-reveal-right, .gs-reveal-scale, .gs-stagger-children > * {
    opacity: 1;
    transform: none;
  }

  body::after { display: none; }
}

/* Disable hover effects on touch */
@media (hover: none) {
  .bento-card:hover { border-color: var(--color-border); }
  .skill-chip:hover { border-color: var(--color-border); color: var(--color-text-secondary); }
}
