/* NUCLEAR MOBILE OVERRIDE - Force mobile layout on actual devices */

/* Target actual mobile devices using viewport width */
@media screen and (max-width: 430px) {
    /* Force mobile layout */
    body {
        padding: 40px 10px 0 10px !important; /* Same top padding as desktop */
    }
    
    /* Header adjustments */
    .header h1 {
        font-size: 2.5rem !important;
        margin-bottom: 5px !important;
    }
    
    .tagline {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Context box - smaller on mobile */
    .context {
        width: auto !important;
        max-width: 100% !important;
        margin: 40px 10px 15px 10px !important; /* Same top margin as desktop */
        padding: 18px 16px !important;
        box-shadow: 3px 3px 0px rgba(0,0,0,0.1) !important;
    }
    
    .context h2 {
        font-size: 1.25rem !important;
        margin-bottom: 10px !important;
        padding-bottom: 8px !important;
    }
    
    .context p {
        font-size: 0.95rem !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    
    .reimagine-prompt {
        font-size: 0.9rem !important;
        padding-top: 8px !important;
        margin-top: 8px !important;
    }
    
    .report-link-container {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
    
    .example-report-link {
        font-size: 0.9rem !important;
        padding: 10px 14px !important;
    }
    
    /* Instruction text moved up */
    .instruction {
        font-size: 0.9rem !important;
        margin-top: -5px !important;
        margin-bottom: 420px !important; /* Push higher above microphone */
        padding: 0 20px !important;
        line-height: 1.2 !important;
    }
    
    /* Microphone MUST be at bottom and smaller */
    .mic-container {
        position: fixed !important;
        bottom: -80px !important; /* Very low to ensure no overlap */
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
    }
    
    .mic-image {
        width: 260px !important;
        max-width: 75vw !important;
        height: auto !important;
    }
    
    /* Status messages */
    .status {
        bottom: 60px !important;
        font-size: 1rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 20px) !important;
        max-width: 400px !important;
    }
    
    /* Thank you message wider on mobile */
    .thank-you-message {
        padding: 20px !important;
        font-size: 0.95rem !important;
    }
    
    .thank-you-message h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    .thank-you-message p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    .thank-you-message .next-steps {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
    }
    
    .thank-you-message .repository-note {
        font-size: 0.8rem !important;
    }
    
    /* Recording indicator */
    .recording-indicator {
        bottom: 15px !important;
        right: 15px !important;
        padding: 8px 12px !important;
        font-size: 0.75rem !important;
    }
}

/* iPhone Pro Max specific (your device) */
@media screen and (width: 430px) and (height: 932px) {
    .mic-container {
        bottom: 10px !important;
    }
    
    .mic-image {
        width: 260px !important;
    }
}

/* Landscape mode fix */
@media screen and (max-height: 430px) and (orientation: landscape) {
    .header h1 {
        font-size: 2rem !important;
    }
    
    .context {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .mic-container {
        bottom: -40px !important;
    }
    
    .mic-image {
        width: 200px !important;
    }
    
    .instruction {
        margin-bottom: 10px !important;
        font-size: 0.9rem !important;
    }
}