/* TalkWide Web - Responsive Media Queries */

@media (max-width: 900px) {
  /* On tablets and mobile, convert split stage into tabbed or drawer view */
  .f4t-chat-sidebar,
  .room-chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 340px;
    z-index: 120;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  }
  .f4t-chat-sidebar.active,
  .room-chat-panel.active {
    transform: translateX(0);
  }
}

@media (max-width: 640px) {
  /* Mobile Header */
  .app-header {
    padding: 10px 14px;
  }
  .brand-text {
    font-size: 17px;
  }
  .user-name-mini {
    display: none;
  }
  .user-profile-chip {
    padding: 4px;
  }

  /* Lobby on Mobile */
  .lobby-container {
    padding: 14px 12px 90px 12px;
  }
  .lobby-hero {
    padding: 18px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-text h1 {
    font-size: 20px;
  }
  .rooms-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Free4Talk In-Room on Mobile */
  .f4t-audio-stage {
    padding: 8px 10px 12px 10px;
    gap: 6px;
  }
  .f4t-stage-top-bar {
    height: 38px;
    gap: 6px;
  }
  .stage-room-topic {
    display: none; /* Hide topic text on tiny mobile screens to give center pill room */
  }
  .f4t-stage-brand-pill {
    padding: 2px 6px;
    max-width: fit-content;
  }
  .f4t-btn-stage-yt .yt-btn-label {
    display: none; /* Show icon only on small mobile */
  }
  .f4t-btn-stage-yt {
    padding: 5px 8px;
  }
  .f4t-pill-btn {
    width: 36px;
    height: 30px;
  }
  .spotlight-avatar-outer {
    width: clamp(130px, 38vw, 170px);
    height: clamp(130px, 38vw, 170px);
  }
  .f4t-dock-tile {
    width: 62px;
    height: 62px;
    min-width: 62px;
  }
  .tile-initial-letters {
    font-size: 19px;
  }
  .tile-role-badge {
    height: 14px;
    line-height: 14px;
    font-size: 8.5px;
  }
  .tile-mute-icon {
    bottom: 15px;
    right: 3px;
    font-size: 9px;
  }
  .tile-gear-btn {
    width: 16px;
    height: 16px;
    font-size: 9px;
  }

  /* Modals on Mobile */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end;
  }
  .modal-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-height: 90vh;
    overflow-y: auto;
  }
}
