/* Responsive layout enhancements */

/* Base responsive typography */
@media (max-width: 480px) {
    body {
        padding: 8px;
        font-size: 11px;
    }
    
    .terminal {
        padding: 8px;
        min-height: 85vh;
    }
    
    .neofetch-output pre, 
    .help-output pre, 
    .man-output pre {
        font-size: 10px;
        line-height: 1.1;
    }
    
    h1 {
        font-size: 16px;
    }
    
    .status-bar {
        font-size: 12px;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 12px;
    }
    
    .terminal {
        padding: 10px;
        border: 1px solid #ffbf00;
        min-height: 88vh;
    }
    
    .neofetch-output pre, 
    .help-output pre, 
    .man-output pre {
        font-size: 11px;
        line-height: 1.15;
    }
    
    h1 {
        font-size: 18px;
    }
    
    .status-bar {
        font-size: 13px;
        padding: 4px 10px;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        font-size: 14px;
        padding: 15px;
    }
    
    .terminal {
        padding: 15px;
    }
    
    .neofetch-output pre, 
    .help-output pre, 
    .man-output pre {
        font-size: 13px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    body {
        font-size: 18px;
        padding: 30px;
    }
    
    .terminal {
        padding: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .neofetch-output pre, 
    .help-output pre, 
    .man-output pre {
        font-size: 16px;
        line-height: 1.3;
    }
    
    h1 {
        font-size: 28px;
    }
}

/* Mobile layout class for JavaScript control */
.terminal.mobile-layout {
    font-size: 12px;
}

.terminal.mobile-layout .command-line {
    margin-bottom: 8px;
}

.terminal.mobile-layout .neofetch-output,
.terminal.mobile-layout .help-output,
.terminal.mobile-layout .man-output {
    margin: 8px 0 16px 0;
}

/* Better text wrapping for mobile */
@media (max-width: 768px) {
    .neofetch-output pre,
    .help-output pre,
    .man-output pre {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Landscape phone adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .terminal {
        min-height: 80vh;
    }
    
    body {
        padding: 5px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .terminal::before {
        background: 
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 1px,
                rgba(255, 191, 0, 0.02) 1px,
                rgba(255, 191, 0, 0.02) 2px
            );
    }
}