/* Responsive Design for Nexora AI Chatbot */

/* Large Tablets and Small Desktops */
@media (max-width: 991px) {
  .chatbot {
    width: 380px;
  }
  
  .welcome-card h2 {
    font-size: 22px;
  }
  
  .demo-btn {
    font-size: 14px;
    padding: 14px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .chatbot {
    width: 360px;
    bottom: 100px;
  }
  
  .chat-launcher {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }
  
  .welcome-card {
    padding: 20px;
  }
  
  .welcome-card h2 {
    font-size: 20px;
  }
  
  .welcome-stats div {
    font-size: 12px;
    padding: 8px 12px;
  }
}

/* Mobile Landscape */
@media (max-width: 640px) {
  .chatbot {
    width: calc(100vw - 30px);
    right: 15px;
    max-height: 550px;
  }
  
  .chat-header {
    padding: 18px 16px;
  }
  
  .bot-avatar {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  
  .header-left h3 {
    font-size: 16px;
  }
  
  .ai-status {
    font-size: 11px;
  }
  
  .chat-body {
    padding: 18px 16px;
  }
  
  .message-content {
    max-width: 80%;
  }
  
  .quick-actions {
    margin-left: 38px;
    gap: 6px;
  }
  
  .quick-btn {
    font-size: 12px;
    padding: 7px 14px;
  }
  
  .cta-section {
    margin-left: 38px;
  }
  
  .demo-btn {
    font-size: 14px;
    padding: 14px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .chatbot {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: 90px;
    max-height: calc(100vh - 180px);
  }
  
  .chat-launcher {
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  
  .welcome-card {
    padding: 18px;
  }
  
  .welcome-card h2 {
    font-size: 18px;
  }
  
  .welcome-card p {
    font-size: 14px;
  }
  
  .welcome-stats {
    gap: 8px;
  }
  
  .welcome-stats div {
    font-size: 11px;
    padding: 7px 10px;
  }
  
  .message .avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 16px;
  }
  
  .message-content {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .message-time {
    font-size: 10px;
    margin-top: 4px;
  }
  
  .quick-actions {
    margin-left: 34px;
  }
  
  .cta-section {
    margin-left: 34px;
    margin-right: 8px;
  }
  
  .chat-footer {
    padding: 16px;
  }
  
  .chat-footer input {
    height: 46px;
    font-size: 13px;
    padding: 0 16px;
  }
  
  #send-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  
  .floating-notification {
    top: 10px;
    right: 10px;
    padding: 12px 16px;
    font-size: 13px;
  }
  
  .notification-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* Small Mobile */
@media (max-width: 360px) {
  .chatbot {
    border-radius: 20px;
  }
  
  .chat-header {
    padding: 16px 14px;
  }
  
  .header-left h3 {
    font-size: 15px;
  }
  
  .welcome-card h2 {
    font-size: 16px;
  }
  
  .quick-btn {
    font-size: 11px;
    padding: 6px 12px;
  }
  
  .demo-btn {
    font-size: 13px;
    padding: 12px;
  }
}

/* Height-based responsive (Short screens) */
@media (max-height: 700px) {
  .chatbot {
    max-height: calc(100vh - 120px);
  }
  
  .welcome-card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .chat-body {
    padding: 16px;
  }
}

@media (max-height: 600px) {
  .chatbot {
    max-height: calc(100vh - 100px);
  }
  
  .chat-header {
    padding: 16px;
  }
  
  .welcome-card h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .welcome-stats {
    display: none;
  }
}

/* Landscape Mode Detection */
@media (max-height: 500px) and (orientation: landscape) {
  .chatbot {
    max-height: calc(100vh - 80px);
    bottom: 70px;
  }
  
  .chat-launcher {
    bottom: 15px;
    width: 50px;
    height: 50px;
  }
  
  .welcome-card {
    display: none;
  }
  
  .chat-body {
    padding: 12px;
  }
}
