/**
 * Mobile Responsive CSS
 * Provides responsive design enhancements for mobile devices
 */

/* Base Responsive Layout */
@media (max-width: 768px) {
    .wpa-container {
        padding: 0 16px;
    }
    
    .wpa-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wpa-card {
        margin-bottom: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .wpa-form-section {
        padding: 16px;
    }
    
    .wpa-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .wpa-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .wpa-interactive:hover {
        transform: none; /* Disable hover effects on touch */
    }
    
    .wpa-tooltip {
        display: none; /* Hide tooltips on touch devices */
    }
    
    .wpa-touch-action {
        touch-action: manipulation;
    }
}

/* Progress Bar Mobile */
@media (max-width: 768px) {
    .wpa-progress-section {
        padding: 20px 16px;
    }
    
    .wpa-progress-text {
        font-size: 14px;
        text-align: center;
    }
    
    .wpa-progress-time {
        font-size: 12px;
        margin-top: 8px;
        text-align: center;
    }
}

/* Results Dashboard Mobile */
@media (max-width: 768px) {
    .wpa-results-grid {
        grid-template-columns: 1fr;
    }
    
    .wpa-chart-container {
        height: 250px;
    }
    
    .wpa-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Form Mobile Optimizations */
@media (max-width: 480px) {
    .wpa-form-row {
        flex-direction: column;
    }
    
    .wpa-form-group {
        margin-bottom: 16px;
    }
    
    .wpa-select {
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 16px;
        padding-right: 40px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .wpa-modal {
        max-height: 80vh;
        overflow-y: auto;
    }
}