/**
 * Car Window Tint Simulator - Responsive Stylesheet
 * 
 * Mobile-first responsive design
 *
 * @package Car_Window_Tint_Simulator
 * @version 1.0.0
 */

/* ========================================
   TABLET (max-width: 1023px)
   ======================================== */

@media (max-width: 1023px) {
    
    .cwts-simulator-container {
        flex-direction: column;
    }
    
    .cwts-controls-panel,
    .cwts-preview-panel {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .cwts-preview-panel {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .cwts-product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
}

/* ========================================
   MOBILE (max-width: 767px)
   ======================================== */

@media (max-width: 767px) {
    
    /* Container */
    .cwts-simulator-wrapper {
        padding: 0;
    }
    
    .cwts-simulator-container {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    /* Control Panel */
    .cwts-controls-panel {
        padding: 20px;
    }
    
    .cwts-steps-wrapper {
        margin-bottom: 20px;
    }
    
    .cwts-step {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .cwts-step-number {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .cwts-step-label {
        font-size: 13px;
    }
    
    /* Form Elements */
    .cwts-select {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    /* Zone Selectors */
    .cwts-zone-selectors {
        gap: 15px;
    }
    
    .cwts-zone-box {
        padding: 12px;
    }
    
    .cwts-zone-title {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .cwts-tint-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .cwts-tint-btn {
        padding: 14px 10px;
        font-size: 15px;
    }
    
    /* Output Area */
    .cwts-output-area {
        padding: 15px;
    }
    
    .cwts-install-time,
    .cwts-price {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .cwts-time-start,
    .cwts-time-end,
    .cwts-price-value {
        font-size: 20px;
    }
    
    .cwts-cta-btn {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
        display: block;
        text-align: center;
    }
    
    /* Preview Panel */
    .cwts-preview-panel {
        padding: 20px 15px;
        min-height: 250px;
    }
    
    /* Product Information */
    .cwts-info-container {
        padding: 25px 20px;
    }
    
    .cwts-product-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .cwts-product-title {
        font-size: 22px;
    }
    
    .cwts-product-description h3 {
        font-size: 20px;
    }
    
    .cwts-product-description h4 {
        font-size: 16px;
    }
    
    .cwts-product-description p {
        font-size: 15px;
    }
    
    .cwts-features-list li {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .cwts-features-list .fas {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .cwts-feature-box h4 {
        font-size: 15px;
    }
    
    .cwts-feature-box p {
        font-size: 14px;
    }
    
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
    
    .cwts-controls-panel {
        padding: 15px;
    }
    
    .cwts-step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cwts-step-number {
        align-self: flex-start;
    }
    
    .cwts-zone-box {
        padding: 10px;
    }
    
    .cwts-tint-list {
        gap: 8px;
    }
    
    .cwts-tint-btn {
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .cwts-product-title {
        font-size: 18px;
    }
    
    .cwts-info-container {
        padding: 20px 15px;
    }
    
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    
    .cwts-controls-panel {
        page-break-inside: avoid;
    }
    
    .cwts-preview-panel {
        page-break-inside: avoid;
        background: #fff !important;
    }
    
    .cwts-cta-btn {
        display: none;
    }
    
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    
    .cwts-simulator-wrapper *,
    .cwts-simulator-wrapper *::before,
    .cwts-simulator-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
}

/* High contrast mode */
@media (prefers-contrast: high) {
    
    .cwts-step-number,
    .cwts-cta-btn {
        border: 2px solid currentColor;
    }
    
    .cwts-tint-btn.active {
        outline-width: 4px;
    }
    
}

/* Dark mode (optional - for future enhancement) */
@media (prefers-color-scheme: dark) {
    
    /* Dark mode styles can be added in Phase 3 */
    
}
