/* Mobile-specific styles for PWA */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }

    .app-container {
        max-width: 100%;
    }
    
    /* Mobile tab navigation - 3 rows max */
    .app-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    /* Make Questions tab span full width on first row */
    .tab-btn[data-tab="questions"] {
        grid-column: 1 / -1;
    }
    
    .card {
        width: 95vw;
        max-width: 95vw;
    }
  
    .create-node-btn {
        width: 100%;
        padding: 15px;
    }
    
    /* Better touch targets */
    button {
        min-height: 44px; /* iOS recommended touch target */
        min-width: 44px;
    }
    
    /* Swipe gestures work better with these */
    .card-container {
        touch-action: pan-y;
    }
    
    .record-bar {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .card {
        max-height: 70vh;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .progress {
        padding: 10px;
    }
    
    #progress-text {
        font-size: 0.9rem;
    }
}

/* PWA: Standalone mode adjustments */
@media (display-mode: standalone) {
    body {
        /* Remove browser chrome padding */
        padding-top: 0;
    }
    
    .header {
        padding-top: env(safe-area-inset-top);
    }
}

