/* Shopping List Page Styles */

/* Text Scale Controls */
.text-scale-controls {
    display: none;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.text-scale-controls.show {
    display: block;
}

.scale-label {
    font-weight: 500;
    margin-right: 0.5rem;
}

/* Credits Display */
.credits-display {
    display: none;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-weight: 500;
}

.credits-display.show {
    display: inline-block;
}

/* AI Enhance Button */
.btn-ai-enhance {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-ai-enhance.show {
    display: inline-block;
}

.btn-ai-enhance:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Voice Controls */
.voice-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.voice-controls.show {
    display: flex;
}

/* Loading State */
.loading-state {
    display: none;
    text-align: center;
    padding: 3rem;
}

.loading-state.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Shopping List Content */
#shopping-list-content {
    display: none;
}

#shopping-list-content.show {
    display: block;
}

/* Keyboard Instructions */
.keyboard-instructions {
    display: none;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.keyboard-instructions.show {
    display: block;
}

/* Inventory Stats */
.inventory-stats {
    display: none;
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 1rem;
}

.inventory-stats.show {
    display: inline-block;
}

/* Bulk Inventory Actions */
.bulk-inventory-actions {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.bulk-inventory-actions.show {
    display: block;
}

/* Shopping List Card */
.shopping-list-card {
    display: none;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shopping-list-card.show {
    display: block;
}

/* Walmart Links Demo Section */
.walmart-links-demo-section {
    display: none;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.walmart-links-demo-section.show {
    display: block;
}

/* Smart Suggestions Section */
.smart-suggestions-section {
    display: none;
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.smart-suggestions-section.show {
    display: block;
}

/* Route Optimization Section */
.route-optimization-section {
    display: none;
    background: #fff3e0;
    border: 1px solid #ffcc02;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.route-optimization-section.show {
    display: block;
}

/* Store Map Section */
.store-map-section {
    display: none;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.store-map-section.show {
    display: block;
}

/* Shopping Time Section */
.shopping-time-section {
    display: none;
    background: #fce4ec;
    border: 1px solid #f8bbd9;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.shopping-time-section.show {
    display: block;
}

/* Empty State */
.empty-state {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state.show {
    display: block;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Error State */
.error-state {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    color: #dc3545;
}

.error-state.show {
    display: block;
}

.error-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.ai-enhance-modal {
    max-width: 800px;
}

/* AI Results Container */
#ai-results-container {
    display: none;
}

#ai-results-container.show {
    display: block;
}

/* Apply AI Enhancement Button */
#apply-ai-enhancement {
    display: none;
}

#apply-ai-enhancement.show {
    display: inline-block;
}

/* Premium Gate Modal */
#premium-gate-modal {
    display: none;
}

#premium-gate-modal.show {
    display: block;
}

/* Clear Cache Button */
.text-center {
    margin-top: 20px;
}

/* Premium Feature Info */
.premium-feature-info i.fas.fa-star {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 20px;
}

/* Save Status Indicator */
.shopping-list-save-status {
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.save-status-idle {
    color: #6c757d;
    background: transparent;
}

.save-status-saving {
    color: #007bff;
    background: #e7f3ff;
}

.save-status-saved {
    color: #28a745;
    background: #d4edda;
}

.save-status-pending {
    color: #ffc107;
    background: #fff3cd;
}

.save-status-error {
    color: #dc3545;
    background: #f8d7da;
}

.shopping-list-save-status i {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .voice-controls {
        bottom: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        padding: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1rem;
    }

    .walmart-links-demo-section,
    .smart-suggestions-section,
    .route-optimization-section,
    .store-map-section,
    .shopping-time-section {
        padding: 1rem;
        margin: 1rem 0;
    }
}
