/* Budget Bites Sweden - CSS Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    min-height: 100vh;
}

/* Loading screen with Pac-Man animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 236, 210, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.packman {
    font-size: 3rem;
    animation: packmanEat 1s infinite;
}

@keyframes packmanEat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.loading p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: 600;
}

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    animation: sizzle 2s ease-in-out infinite;
}

@keyframes sizzle {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(-3deg) scale(1); }
    75% { transform: rotate(3deg) scale(1.02); }
}

.logo-text h1 {
    color: #e74c3c;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.logo-tagline {
    color: #f39c12;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e74c3c;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero sections */
.hero, .recipe-hero, .support-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(241, 196, 15, 0.1) 100%);
    margin-bottom: 3rem;
}

.hero h2, .recipe-hero h2, .support-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero p, .recipe-hero p, .support-hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Ingredient selector */
.ingredient-selector {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ingredient-selector h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.ingredient-selector p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.ingredient-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ingredient-item:hover {
    background: #e8f4fd;
    transform: translateY(-2px);
}

.ingredient-item input[type="checkbox"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.ingredient-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Buttons */
.cta-button, .submit-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: block;
    margin: 2rem auto;
}

.cta-button:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

/* Recipe cards */
.recipe-preview-grid, .recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.recipe-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.recipe-card:hover {
    transform: translateY(-10px);
}

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Recipe image container for certification badges */
.recipe-image-container {
    position: relative;
    overflow: hidden;
}

.certification-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.cert-badge {
    width: 50px !important;
    height: 50px !important;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.recipe-card:hover .cert-badge {
    transform: scale(1.1);
}

.recipe-info {
    padding: 1.5rem;
}

.recipe-info h3, .recipe-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.recipe-info .cost {
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

.recipe-info .description {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.recipe-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 20px;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.recipe-link:hover {
    background: #2980b9;
}

/* Recipe detail page */
.recipe-detail {
    background: white;
    margin: 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.recipe-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.recipe-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.recipe-meta h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.controls {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.unit-toggle, .portion-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.controls select, .controls input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.update-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-left: 1rem;
}

.update-button:hover {
    background: #2980b9;
}

.update-confirmation {
    color: #27ae60;
    font-weight: 600;
    margin-left: 1rem;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

.recipe-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
}

.stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.stat-value {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Recipe content */
.recipe-content {
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

.ingredients-section, .instructions-section, .cultural-info, .store-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.amount {
    font-weight: 600;
    color: #3498db;
}

.cost-breakdown {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 10px;
    color: #27ae60;
    text-align: center;
}

.instructions-list {
    padding-left: 1.5rem;
}

.instructions-list li {
    margin: 1rem 0;
}

/* Form styles */
.recipe-submission-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
}

/* Ingredient form rows */
.ingredients-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
}

.ingredient-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.add-ingredient {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.remove-ingredient {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Checkbox styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
}

/* Cost display */
.total-cost-display {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    text-align: center;
}

/* Success message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.success-message.hidden {
    display: none;
}

/* Tips section */
.submission-tips {
    margin: 3rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tip-card h4 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}

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

.metric {
    display: inline;
}

.imperial {
    display: none;
}

.imperial-mode .metric {
    display: none;
}

.imperial-mode .imperial {
    display: inline;
}

/* Featured recipes section */
.featured-recipes {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-recipes h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Special Diets Page Styles */
.special-diets-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
    margin-bottom: 3rem;
}

/* Diet Selector */
.diet-selector {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.diet-selector h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.diet-selector p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.diet-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.diet-selector-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.diet-selector-card:hover {
    transform: translateY(-10px);
    border-color: #3498db;
    box-shadow: 0 15px 35px rgba(52, 152, 219, 0.2);
    text-decoration: none;
    color: inherit;
}

.diet-selector-card h4 {
    color: #2c3e50;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.diet-selector-card p {
    color: #7f8c8d;
    margin-bottom: 1rem;
    text-align: center;
}

.cost-indicator {
    background: #e74c3c;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.cost-indicator.savings {
    background: #27ae60;
}

/* Quick Overview */
.quick-overview {
    background: #f8f9fa;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
}

.quick-overview h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.overview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.overview-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.overview-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* General Tips */
.general-tips {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.general-tips h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.tip-card {
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.tip-card h4 {
    color: #f57c00;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-card ul {
    padding-left: 1.5rem;
    margin: 0;
}

.tip-card li {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Individual Diet Pages */
.diet-detail-hero {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.diet-hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.cert-image-large {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 15px;
    border-radius: 15px;
    border: 3px solid #3498db;
}

.diet-hero-text h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.diet-hero-text p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.cost-impact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cost-label {
    color: #7f8c8d;
    font-weight: 500;
}

.cost-value {
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.diet-explanation {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.explanation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.explanation-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #3498db;
}

.explanation-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.shopping-categories {
    margin: 2rem 0;
}

.budget-breakdown {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    margin: 2rem auto;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.budget-item:last-of-type {
    border-bottom: none;
}

.budget-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 2px solid #3498db;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.budget-comparison {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
}

.recommended-recipes {
    background: #fff8e1;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
}

.recipe-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.recipe-suggestion {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #f39c12;
}

.recipe-suggestion h4 {
    color: #f39c12;
    margin-bottom: 0.5rem;
}

.price-info {
    background: #e8f5e8;
    color: #27ae60;
    padding: 0.5rem;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-weight: 600;
}

.special-diets-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.special-diets-hero p {
    font-size: 1.2rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.diet-explanations, .shopping-guide, .practical-tips, .apps-resources {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.diet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.diet-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.diet-card:hover {
    transform: translateY(-5px);
}

.diet-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.diet-certification {
    margin-bottom: 1rem;
}

.cert-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.diet-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.diet-explanation {
    text-align: left;
}

.diet-explanation p {
    margin-bottom: 0.5rem;
}

.diet-explanation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.diet-explanation li {
    margin-bottom: 0.3rem;
}

.shopping-category {
    margin: 3rem 0;
}

.shopping-category h4 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.store-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.store-card h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.store-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.store-card li {
    margin-bottom: 0.5rem;
}

.store-card strong {
    color: #e74c3c;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-section {
    background: #e8f5e8;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #27ae60;
}

.tip-section h4 {
    color: #27ae60;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-section ul {
    padding-left: 1.5rem;
}

.tip-section li {
    margin-bottom: 0.5rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.resource-card {
    background: #fff3e0;
    padding: 1.5rem;
    border-radius: 10px;
    border-top: 4px solid #f39c12;
}

.resource-card h4 {
    color: #f39c12;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-card ul {
    padding-left: 1.5rem;
}

.resource-card li {
    margin-bottom: 0.5rem;
}

/* Allergy information sections */
.allergy-info {
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    border-left: 4px solid #ff9800;
}

.allergy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.allergy-option {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.allergy-option h4 {
    color: #f57c00;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.allergy-option ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.allergy-option li {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

/* Suggestions */
.suggestions {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #e8f5e8;
    border-radius: 15px;
}

.suggestions h4 {
    color: #27ae60;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .recipe-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ingredient-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-preview-grid,
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .ingredient-row {
        grid-template-columns: 1fr;
    }
    
    .controls {
        justify-content: center;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h2,
    .recipe-hero h2,
    .support-hero h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero h2,
    .recipe-hero h2,
    .support-hero h2 {
        font-size: 1.5rem;
    }
    
    .recipe-meta h1 {
        font-size: 1.8rem;
    }
}