/* /List/style.css - Pricez Shopping List App Main Styles */

/* Import component stylesheets */
@import url('components.css');
@import url('layout.css');
@import url('animations.css');
@import url('mobile.css');

/* ===== CSS Variables ===== */
:root {
    --primary-color: #309bb1;
    --primary-dark: #267a8a;
    --primary-light: #4db8cc;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-color: #ffffff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 8px rgba(48, 155, 177, 0.1);
    --shadow-medium: 0 4px 16px rgba(48, 155, 177, 0.15);
    --shadow-heavy: 0 8px 32px rgba(48, 155, 177, 0.2);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --border-radius-large: 20px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ===== Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
	overscroll-behavior-y: none;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--dark-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    overscroll-behavior-y: none;
}

/* Enable Dynamic Type support for iOS */
@supports (font: -apple-system-body) {
    html {
        font: -apple-system-body;
    }
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

/* Mobile-specific override for add product suggestions */
@media (max-width: 768px) {
    .add-product-suggestions-container.hidden {
        display: none !important;
    }
    
    /* Force visibility when explicitly shown on mobile */
    .add-product-suggestions-container[style*="display: block"] {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Prevent iOS Safari from hiding suggestions during keyboard transitions */
    .add-product-suggestions-container {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --dark-color: #ffffff;
        --border-color: #333333;
        --secondary-color: #2a2a2a;
    }
    
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    }
}

/* ===== Print Styles ===== */
@media print {
    .splash-screen,
    .bottom-nav,
    .fab,
    .voice-controls,
    .action-buttons,
    .list-controls,
    .list-actions {
        display: none !important;
    }
    
    .main-app {
        box-shadow: none;
    }
    
    .shopping-item {
        break-inside: avoid;
        margin-bottom: 10px;
    }
}
/* New List Name Input Styles */
.new-list-name-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.new-list-name-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}
.new-list-name-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-medium);
    background: white;
    box-sizing: border-box;
}

.new-list-name-input:focus {
    outline: none;
    border-color: #309bb1;
    box-shadow: 0 0 0 3px rgba(48, 155, 177, 0.1);
}

.new-list-name-input::placeholder {
    color: #6c757d;
}