/* General Body Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9fafb; /* Light gray background, similar to reference */
    color: #1f2937; /* Dark gray text */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 20px 0;
    text-align: center;
    background-color: #ffffff; /* White header background */
    border-bottom: 1px solid #e5e7eb; /* Light border */
}

#logo {
    max-width: 200px; /* Adjust as needed */
    height: auto;
}

main {
    flex-grow: 1;
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

#recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 25px;
}

/* Recipe Card Styles - based on image.png and reference site */
.recipe-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.07); /* Softer shadow */
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.07), 0 15px 25px rgba(0, 0, 0, 0.1);
}

.recipe-card h2 {
    font-family: 'Poppins', sans-serif; /* As per image.png */
    font-size: 1.6em; /* Larger, bolder title */
    font-weight: 700;
    color: #111827; /* Very dark gray / black */
    margin-top: 0;
    margin-bottom: 15px;
    text-align: left;
}

.card-content {
    display: flex;
    flex-direction: row; /* Side-by-side layout for info and QR */
    flex-grow: 1;
}

.nutritional-info {
    flex: 3; /* Takes more space */
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nutritional-info .fact {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6; /* Lighter border for facts */
    font-size: 0.9em;
}

.nutritional-info .fact:last-child {
    border-bottom: none;
}

.nutritional-info .fact span:first-child {
    color: #4b5563; /* Medium gray for labels */
    font-weight: normal;
}

.nutritional-info .fact span:last-child {
    color: #111827; /* Darker for values */
    font-weight: bold;
}

.calories-total {
    background-color: #FEF3C7; /* Light yellow, similar to image.png Kcal box */
    color: #92400E; /* Dark orange/brown text for contrast */
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.calories-total .label {
    font-size: 0.8em;
    text-transform: uppercase;
    display: block;
}

.calories-total .value {
    font-size: 1.5em;
    font-weight: bold;
}

.qr-section {
    flex: 1; /* Takes less space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 15px;
    border-left: 1px solid #e5e7eb; /* Separator line */
}

.qr-code-placeholder {
    width: 90px;
    height: 90px;
    background-color: #e5e7eb; /* Placeholder color */
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.7em;
    color: #6b7280;
    border-radius: 4px;
    margin-bottom: 8px;
}

.recipe-link {
    font-size: 0.8em;
    color: #4f46e5; /* Indigo color for link */
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

.recipe-link:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    font-size: 0.9em;
    color: #6b7280;
    margin-top: auto; /* Pushes footer to bottom */
}

footer p {
    margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #recipe-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    .recipe-card h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .card-content {
        flex-direction: column; /* Stack info and QR on very small screens */
    }
    .nutritional-info {
        padding-right: 0;
        margin-bottom: 15px;
    }
    .qr-section {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #e5e7eb;
        padding-top: 15px;
    }
     .recipe-card h2 {
        font-size: 1.3em;
    }
}

