/* mobile.css — Responsive Design for Small Screens */

/* Tablet and below */
@media (max-width: 1024px) {
    #chat-container {
        padding: var(--space-4);
    }
    
    .message-content {
        max-width: calc(100% - 48px);
    }
    
    .quick-actions {
        max-width: 100%;
    }
}

/* Mobile phones */
@media (max-width: 640px) {
    /* Header */
    header {
        padding: var(--space-3) var(--space-4);
        height: 56px;
    }
    
    .logo span {
        display: none;
    }
    
    .status {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .user-menu .user-info {
        padding: var(--space-2);
    }
    
    .user-name {
        display: none;
    }
    
    /* Chat container */
    #chat-container {
        padding: var(--space-3);
    }
    
    .message {
        max-width: 100%;
    }
    
    .message-content {
        max-width: calc(100% - 40px);
    }
    
    /* Empty state */
    .empty-state {
        padding: var(--space-6);
    }
    
    .empty-state-avatar {
        width: 150px;
        height: 150px;
    }
    
    .empty-state h2 {
        font-size: var(--text-xl);
    }
    
    .empty-state p {
        font-size: var(--text-sm);
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    /* Input container */
    #input-container {
        padding: var(--space-3);
    }
    
    .input-wrapper {
        padding: var(--space-2);
    }
    
    #attach-button,
    #send-button {
        width: 40px;
        height: 40px;
    }
    
    #message-input {
        font-size: var(--text-base);
        max-height: 120px;
    }
    
    .input-footer {
        font-size: 11px;
    }
    
    .shortcut-hint {
        display: none;
    }
    
    /* Modals */
    .modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: var(--space-4);
    }
    
    .command-palette {
        width: 95%;
    }
    
    .command-search {
        font-size: var(--text-base);
        padding: var(--space-3) var(--space-4);
    }
    
    /* Bookmarks sidebar */
    .bookmarks-sidebar {
        width: 100%;
    }
    
    /* Scroll to bottom */
    .scroll-to-bottom {
        bottom: 80px;
        right: var(--space-4);
    }
    
    /* Toast notifications */
    .toast-container {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
    
    /* Message actions */
    .message-actions {
        opacity: 1;
        position: absolute;
        bottom: -36px;
        right: 0;
        background: var(--rampf-ai-800);
        border: 1px solid var(--rampf-ai-700);
        border-radius: var(--radius-md);
        padding: var(--space-2);
    }
}

/* Small mobile phones */
@media (max-width: 380px) {
    .logo-icon {
        width: 28px;
        height: 28px;
    }
    
    .empty-state-avatar {
        width: 120px;
        height: 120px;
    }
    
    .quick-action {
        padding: var(--space-3);
        font-size: var(--text-xs);
    }
    
    .quick-action-icon {
        font-size: var(--text-base);
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        height: 48px;
        padding: var(--space-2) var(--space-4);
    }
    
    #chat-container {
        padding: var(--space-3);
    }
    
    .empty-state {
        padding: var(--space-4);
    }
    
    .empty-state-avatar {
        width: 80px;
        height: 80px;
        margin-bottom: var(--space-4);
    }
    
    .empty-state h2 {
        font-size: var(--text-base);
    }
    
    .empty-state p {
        display: none;
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-2);
    }
    
    .quick-action {
        padding: var(--space-2) var(--space-3);
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    #input-container {
        padding: var(--space-2);
    }
}
