/* Main Stylesheet */
:root {
    --french-blue: #002395;
    --french-white: #FFFFFF;
    --french-red: #ED2939;
    --warm-brown: #8B4513;
    --cream: #FFF8DC;
    --charcoal: #333333;
    --light-gray: #f8f9fa;
    --border-light: #e9ecef;
}

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Layout */
main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 40px;
}

.content-main {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

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

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

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

.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover img {
    transform: scale(1.05);
}

.recipe-card-content {
    padding: 25px;
}

.recipe-card h3 {
    color: var(--french-blue);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.recipe-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #888;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Recipe Page Layout */
.recipe-header {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    margin-bottom: 40px;
    border-radius: 12px;
}

.recipe-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.recipe-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-item {
    text-align: center;
}

.info-item .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--french-blue);
    display: block;
}

.info-item .label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ingredients */
.ingredients {
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.ingredients h3 {
    color: var(--french-blue);
    border-bottom: 2px solid var(--french-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.ingredients-list li:before {
    content: "•";
    color: var(--french-red);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Instructions */
.instructions {
    margin: 40px 0;
}

.instructions h3 {
    color: var(--french-blue);
    border-bottom: 2px solid var(--french-red);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.instruction-step {
    background: #fafafa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--french-blue);
    position: relative;
}

.step-number {
    background: var(--french-red);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    left: -17px;
    top: 25px;
}

.instruction-step p {
    margin-left: 30px;
    line-height: 1.7;
}

/* Tips and Notes */
.chef-tip, .wine-pairing, .nutrition-info {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 1px solid #f0c14b;
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    position: relative;
}

.chef-tip::before {
    content: "👨‍🍳";
    font-size: 1.5rem;
    position: absolute;
    top: 15px;
    right: 20px;
}

.wine-pairing {
    background: linear-gradient(135deg, #f3e5f5 0%, #fce4ec 100%);
    border-color: #ad1457;
}

.wine-pairing::before {
    content: "🍷";
    font-size: 1.5rem;
    position: absolute;
    top: 15px;
    right: 20px;
}

.nutrition-info {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border-color: #4caf50;
}

.nutrition-info::before {
    content: "📊";
    font-size: 1.5rem;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Breadcrumbs */
.breadcrumb {
    background: var(--light-gray);
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    color: #666;
    font-size: 0.9rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 15px;
    color: #999;
}

.breadcrumb a {
    color: var(--french-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Ad Spaces */
.ad-banner {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    text-align: center;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
    color: #6c757d;
    font-size: 0.9rem;
}

.ad-banner.header-banner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-banner.sidebar-ad {
    height: 250px;
    margin-bottom: 30px;
}

/* Social Sharing */
.share-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 8px;
}

.share-btn {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-pinterest { background: #bd081c; }
.share-whatsapp { background: #25d366; }

/* Rating Display */
.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
}

/* Newsletter Signup */
.newsletter-signup {
    background: linear-gradient(135deg, var(--french-blue) 0%, #1e3a8a 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.newsletter-signup h3 {
    color: white;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 400px;
    margin: 25px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 25px;
    background: var(--french-red);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #d12635;
}

/* Related Recipes */
.related-recipes {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-light);
}

.related-recipes h3 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--french-blue);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--charcoal) 0%, #2c2c2c 100%);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--french-red);
    padding-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #555;
    color: #ccc;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content-main {
        padding: 25px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .share-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .recipe-info {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .recipe-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .instruction-step {
        padding: 20px;
    }

    .ingredients, .chef-tip, .wine-pairing, .nutrition-info {
        padding: 20px;
    }
}