/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2d3748;
    font-weight: 700;
}

/* Progress bar */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.progress-step {
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

.progress-step.active {
    background: #4299e1;
    color: white;
    transform: scale(1.05);
}

.progress-step.completed {
    background: #48bb78;
    color: white;
}

.progress-step:not(.active):not(.completed) {
    background: #e2e8f0;
    color: #718096;
}

/* Main content */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 10px;
}

.step-header p {
    color: #718096;
    font-size: 1.1rem;
}

/* Ingredients grid */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ingredient-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ingredient-card.selected {
    border: 3px solid #4299e1;
    transform: scale(1.02);
}

.ingredient-checkbox {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.ingredient-label {
    display: block;
    cursor: pointer;
    padding: 15px;
    text-align: center;
}

.ingredient-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ingredient-card:hover .ingredient-image img {
    transform: scale(1.1);
}

.ingredient-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

/* Form styles */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.1rem;
}

.form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-help {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 0.9rem;
}

/* Button styles */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(113, 128, 150, 0.3);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Selected ingredients display */
.selected-ingredients {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.selected-ingredients h3 {
    margin-bottom: 15px;
    color: #2d3748;
}

.ingredients-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ingredient-tag {
    background: #4299e1;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Recipe content */
.recipe-summary {
    background: #f7fafc;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.summary-item {
    margin-bottom: 20px;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-item h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.special-requests {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
    font-style: italic;
}

.recipe-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.recipe-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
}

.recipe-text h1,
.recipe-text h2,
.recipe-text h3 {
    color: #2d3748;
    margin-bottom: 15px;
    margin-top: 25px;
}

.recipe-text h1:first-child,
.recipe-text h2:first-child,
.recipe-text h3:first-child {
    margin-top: 0;
}

.recipe-text ul,
.recipe-text ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.recipe-text li {
    margin-bottom: 8px;
}

/* Error page */
.error-container {
    text-align: center;
    padding: 40px 20px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-container h2 {
    color: #e53e3e;
    margin-bottom: 15px;
}

.error-message {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.error-details {
    margin: 20px 0;
    text-align: left;
}

.error-details summary {
    cursor: pointer;
    color: #4299e1;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-details pre {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #e53e3e;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .progress-bar {
        flex-direction: column;
        gap: 10px;
    }
    
    .progress-step {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .ingredient-image {
        height: 80px;
    }
    
    .ingredient-name {
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .header,
    .form-actions {
        display: none;
    }
    
    .main-content {
        box-shadow: none;
        background: white;
    }
    
    .recipe-content {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
} 

