/* responsive.css – Mobile & Tablet Adjustments */

/* Base mobile first */

/* Chat layout adjustments for mobile */
@media (max-width: 480px) {
  .chat-layout {
    flex-direction: column;
    height: auto;
  }
  .chat-sidebar {
    order: 2;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-right: none;
    border-top: 1px solid var(--border);
  }
  .chat-main {
    order: 1;
    width: 100%;
    height: calc(100vh - 200px);
  }
  .chat-header, .chat-input-area {
    padding: 8px;
  }
  .msg-row .msg-body {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* Banner and navigation */
  .site-banner { padding-bottom: 12px; }
  .banner-nav { display: none; flex-direction: column; width: 100%; }
  #nav-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
  .nav-extra { display: none; flex-direction: column; gap: 8px; margin-top: 8px; }
  .nav-extra.show { display: flex; }
  /* Landing card adjustments */
  .landing-card { max-width: 100%; margin: 0 12px; }
  /* Adjust button sizes for touch */
  .btn, .banner-nav-item, .banner-nav-item a { min-height: 44px; line-height: 44px; font-size: 15px; }
}

/* Tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .site-banner { padding-bottom: 12px; }
  .banner-nav { justify-content: center; flex-wrap: wrap; }
  #nav-toggle { display: none; }
  .nav-extra { display: flex; flex-direction: row; gap: 12px; }
  .landing-card { max-width: 480px; margin: 0 auto; }
}

/* Small desktop */
@media (min-width: 769px) {
  #nav-toggle { display: none; }
  .nav-extra { display: flex; }
  .banner-nav { display: flex; }
}

/* Side menu (mobile) */
@media (max-width: 480px) {
  #side-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    margin-left: 8px;
  }
  .side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    padding-top: 60px; /* space for header */
    overflow-y: auto;
    transform: translateX(-260px);
    transition: transform var(--transition);
    z-index: 1000;
  }
  .side-menu.show {
    transform: translateX(0);
  }
  .side-menu-nav .banner-nav-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    margin: 4px 0;
    font-size: 15px;
  }
}
@media (min-width: 481px) {
  #side-menu-toggle { display: none; }
  .side-menu { display: none; }
}
@media (max-width: 480px) {
  .banner-nav-item { width: 100%; text-align: center; }
  .banner-nav-item a { display: block; }
  .banner-nav-item button { width: 100%; }
}
