/* ============================================================
   Developer Notes - Responsive Styles
   ============================================================ */

/* === Tablet & Below (max 1024px) === */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: calc(var(--z-sidebar) - 1);
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-wrapper {
    margin-left: 0;
  }

  .scroll-top {
    left: 1.5rem;
  }

  .header-title {
    display: block;
  }

  .breadcrumbs {
    margin-top: 0.5rem;
  }
}

/* === Mobile (max 768px) === */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .header {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }

  .header-search .kbd-hint {
    display: none;
  }

  .header-search {
    max-width: none;
    flex: 0 1 200px;
  }

  .header-search input {
    padding: 0.375rem 0.75rem 0.375rem 2rem;
    font-size: 0.8125rem;
  }

  .github-btn span {
    display: none;
  }

  .main-content {
    padding: 1rem 0.75rem;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.9375rem;
  }

  .hero-search input {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    font-size: 0.9375rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card .stat-number {
    font-size: 1.375rem;
  }

  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .section-header h2 {
    font-size: 1.25rem;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .filter-bar .filter-group {
    flex-wrap: wrap;
  }

  .filter-bar .filter-separator {
    display: none;
  }

  .filter-bar .clear-filters {
    margin-left: 0;
  }

  .notes-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .modal {
    max-height: 95vh;
    border-radius: var(--radius-lg);
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-body iframe {
    height: 60vh;
  }

  .palette {
    margin: 0 0.75rem;
  }

  .palette-overlay {
    padding-top: 10vh;
  }

  .category-card {
    padding: 1rem;
  }

  .category-card .cc-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .category-card .cc-info h4 {
    font-size: 0.875rem;
  }

  .breadcrumbs {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .scroll-top {
    bottom: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    font-size: 0.8125rem;
  }
}

/* === Small Mobile (max 480px) === */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .category-card {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    padding: 1rem;
  }

  .note-card-header {
    flex-direction: column;
  }

  .note-card-badges {
    order: 2;
  }

  .note-card-actions {
    order: 1;
    align-self: flex-end;
  }

  .header-search {
    flex: 0 1 140px;
  }
}

/* === Large Screens (min 1400px) === */
@media (min-width: 1400px) {
  .container,
  .main-content {
    max-width: 1400px;
  }

  .notes-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}
