/* Mobile styles (768px and below) */
@media (max-width: 768px) {
  /* Disable animations and transitions for performance */
  #info-section:hover,
  #chat-section:hover,
  .glass-container:hover,
  .header-wrapper:hover,
  .logo-container:hover,
  .logo-container img:hover,
  .name h1:hover,
  .name p:hover,
  .info-item:hover,
  .message:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--glass-border);
    background: var(--secondary-color);
  }

  /* Disable transition effects */
  #info-section,
  #chat-section,
  .glass-container,
  .header-wrapper,
  .logo-container,
  .name h1,
  .name p,
  .info-item,
  .message {
    transition: none;
  }

  html,
  body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }

  .container {
    flex-direction: column;
    padding-top: 60px;
    height: 100dvh;
    overflow-y: hidden;
  }

  #info-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--secondary-color);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    overflow: visible;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .header-wrapper {
    flex: 1;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .logo-container {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
  }

  .logo-container img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .name {
    flex: 1;
    padding: 0;
    margin: 0;
    min-width: 0;
  }

  .name h1 {
    font-size: 1rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .name p {
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info {
    position: static;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    height: auto;
    flex-shrink: 0;
  }

  .info-item {
    width: 44px; /* Minimum touch target size */
    height: 44px;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
  }

  .info-item i {
    margin: 0;
    font-size: 1rem;
  }

  .info-item a,
  .info-item span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
  }

  .info-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
  }

  #chat-section {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 1rem;
    height: calc(100dvh - 60px);
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .chat-messages {
    height: calc(100% - 60px);
    margin: 0 0 1rem 0;
    border-radius: 8px;
    padding: 0.8rem;
  }

  .chat-input {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    background: var(--secondary-color);
    border-top: 1px solid var(--glass-border);
    margin: 0;
    z-index: 10;
    min-height: 60px; /* Ensure adequate touch area */
  }

  .message {
    max-width: 85%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
  }

  .disclaimer {
    display: none;
  }

  .disclaimer-icon {
    display: flex;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    background: rgba(45, 45, 45, 0.9);
    border: 1px solid var(--accent-color);
  }

  .disclaimer-icon:active {
    transform: scale(0.95);
  }

  .disclaimer-tooltip {
    position: fixed;
    top: 60px;
    right: 10px;
    bottom: auto;
    width: calc(100% - 20px);
    max-width: 300px;
    font-size: 0.75rem;
    line-height: 1.4;
    padding: 0.8rem;
    background: var(--primary-color);
    border: 1px solid var(--accent-color);
    pointer-events: auto;
  }

  .disclaimer-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-left: 1px solid var(--accent-color);
    border-top: 1px solid var(--accent-color);
    transform: rotate(45deg);
  }

  .disclaimer-icon:hover .disclaimer-tooltip,
  .disclaimer-icon:focus .disclaimer-tooltip {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  h2 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding: 0 0.5rem;
  }

  .beta-badge {
    font-size: 0.55rem;
  }
}
