/* Responsive Design - Mobile First */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    /* Progress Indicator */
    .progress-indicator {
        padding: var(--spacing-md) 0;
    }

    .progress-circle {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }

    .progress-label {
        font-size: var(--font-size-xs);
    }

    .progress-line {
        width: 40px;
        margin: 0 var(--spacing-sm);
        top: -10px;
    }

    /* Upload Zone */
    .upload-zone {
        padding: var(--spacing-xl);
        min-height: 250px;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-text {
        font-size: var(--font-size-lg);
    }

    .upload-decoration {
        width: 60px;
        height: 60px;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: var(--font-size-base);
    }

    .button-group {
        flex-direction: column;
    }

    /* Flower Tags */
    .tags-container {
        gap: var(--spacing-xs);
    }

    .tag {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    /* Toast */
    .toast-container {
        top: var(--spacing-md);
        right: var(--spacing-md);
        left: var(--spacing-md);
    }

    .toast {
        min-width: auto;
        width: 100%;
    }

    /* Comparison Slider */
    .slider-button {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-lg);
    }

    /* Color Picker - Stack columns */
    .color-picker-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    /* Season Tabs */
    .season-tabs {
        gap: var(--spacing-xs);
    }

    .season-tab {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }

    /* Sedumi Banner */
    .sedumi-link {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .sedumi-icon {
        font-size: var(--font-size-xl);
    }

    .sedumi-text strong {
        font-size: var(--font-size-base);
    }

    /* Shop Section */
    .shop-section {
        padding: var(--spacing-md);
        margin: var(--spacing-lg) 0;
    }

    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-title {
        font-size: var(--font-size-lg);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .product-name {
        font-size: var(--font-size-xs);
    }
}

/* Mobile (480px) */
@media (max-width: 480px) {
    /* Header */
    .header {
        padding: var(--spacing-lg) 0;
    }

    .logo-icon {
        font-size: var(--font-size-3xl);
    }

    /* Logo image smaller on mobile */
    img.logo-icon {
        width: 44px;
        height: 44px;
    }

    .logo-text {
        font-size: var(--font-size-3xl);
    }

    /* Area Calculator */
    .area-calculator-section {
        padding: var(--spacing-md);
    }

    .area-input {
        width: 100px;
    }

    .tagline {
        font-size: var(--font-size-base);
    }

    /* Main */
    .main {
        padding: var(--spacing-xl) 0;
    }

    .step-title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-lg);
    }

    /* Progress - Hide labels on very small screens */
    .progress-label {
        display: none;
    }

    .progress-indicator {
        margin-bottom: var(--spacing-xl);
    }

    /* Upload Zone */
    .upload-zone {
        padding: var(--spacing-lg);
        min-height: 200px;
    }

    .upload-icon {
        font-size: 2.5rem;
    }

    .upload-text {
        font-size: var(--font-size-base);
    }

    /* Remove decorations on very small screens */
    .upload-decoration {
        display: none;
    }

    /* Form */
    .form-label {
        font-size: var(--font-size-base);
    }

    .form-textarea {
        font-size: var(--font-size-sm);
    }

    /* Flower Loader */
    .flower-loader {
        width: 80px;
        height: 100px;
    }

    .flower-bloom {
        width: 50px;
        height: 50px;
    }

    .loading-text {
        font-size: var(--font-size-lg);
    }

    /* Image Labels */
    .image-label {
        font-size: var(--font-size-xs);
        padding: 2px var(--spacing-sm);
    }

    /* Sedumi Banner - Compact */
    .sedumi-link {
        flex-wrap: wrap;
    }

    .sedumi-text span:last-child {
        display: none;
    }

    /* Season Tabs - Wrap */
    .season-tab {
        flex: 1 1 calc(50% - var(--spacing-xs));
        text-align: center;
    }

    /* Color Chips - Smaller */
    .color-chip {
        width: 32px;
        height: 32px;
    }

    /* Product Grid - Single column on very small screens */
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-image {
        height: 100px;
    }

    .product-price {
        font-size: var(--font-size-base);
    }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .header {
        padding: var(--spacing-md) 0;
    }

    .main {
        padding: var(--spacing-lg) 0;
    }

    .progress-indicator {
        margin-bottom: var(--spacing-lg);
    }

    .step-title {
        margin-bottom: var(--spacing-md);
    }

    .upload-zone {
        min-height: 180px;
        padding: var(--spacing-md);
    }

    .flower-loader {
        width: 60px;
        height: 80px;
    }
}

/* Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .comparison-container {
        max-width: 1000px;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logo-icon {
        animation: none;
    }

    .flower-loader,
    .flower-bloom,
    .petal,
    .flower-stem {
        animation: none;
        opacity: 1;
    }

    .flower-stem {
        height: 60px;
    }

    .flower-bloom {
        top: 0;
    }

    .petal {
        opacity: 1;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }

    .upload-zone {
        border-width: 4px;
    }

    .form-textarea:focus {
        border-width: 3px;
    }
}

/* Dark mode support (optional future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme for now - can be customized later */
}

/* Print styles */
@media print {
    .header,
    .footer,
    .progress-indicator,
    .button-group,
    .toast-container {
        display: none;
    }

    .step {
        display: block !important;
    }

    body {
        background: white;
    }

    .comparison-slider {
        box-shadow: none;
    }
}
