@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gilda+Display&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFF8DC;
    color: #2A2B2A;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #FFF8DC;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
}

nav {
    display: flex;
}

nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #2A2B2A;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a:focus {
    color: #AA4069;
}

.recipe-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    max-width: 80vw;
    margin: 0 auto;
}

.recipe-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    max-width: 100%;
    padding: 15px;
}

.recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(170, 64, 105, 0.2);
}

.recipe-card img {
    width: 140px;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 8px;
}

.recipe-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 20px;
}

.recipe-card h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
    line-height: 1.3;
}

.recipe-card p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.4;
}

/* Recipe page styles */
#recipe-content {
    max-width: 1400px;
    margin: 30px 20px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#recipe-content img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 20px;
}

#recipe-content h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
}

#recipe-content h2 {
    font-size: 32px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
}

#recipe-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

#recipe-content ul, #recipe-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}



/* Most Loved Recipes */
.most-loved {
    padding: 10px 20px;
    background-color: #FFFBE4;
}

.most-loved h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
    font-weight: 500;
}

.loved-list {
    max-width: 800px;
    margin: 0 auto;
}

.loved-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loved-item .number {
    font-size: 24px;
    font-weight: bold;
    color: #AA4069;
    margin-right: 15px;
    min-width: 40px;
}

.loved-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.loved-item h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #333;
}

.loved-item p {
    margin: 0;
    color: #777;
    font-size: 14px;
}

/* About */
.about {
    padding: 40px 20px;
    background-color: #fff;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
    font-weight: 400;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #777;
}

.btn {
    background-color: #915C83;
    color: #FFF8DC;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #AA4069;
}

.about img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Gallery */
.gallery {
    padding: 20px 20px;
    background-color: #FFFBE4;
}

.gallery h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 20px;
    color: #AA4069;
    font-family: 'Gilda Display', serif;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.video-item {
    background-color: #fff;
    padding: 15px 15px 40px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.video-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.video-item h3 {
    margin-top: 10px;
    font-size: 16px;
    color: #2A2B2A;
}

footer {
    text-align: center;
    padding: 20px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    margin-top: 25px;
    color: #777;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 15px;
}

.social-links a {
    color: #AA4069;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #86648F;
}



/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 20px;
    }

    nav {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    nav a {
        margin-left: 0;
        margin-right: 0;
        font-size: 14px;
    }

    /* Sections */
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 42px;
    }

    .about img {
        width: 250px;
        height: 250px;
    }

    /* Recipe Grid */
    .recipe-grid {
        padding: 25px 15px;
        max-width: 800px;
    }

    .recipe-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .recipe-card img {
        height: 100%;
        border-radius: 8px;
    }

    .recipe-card h3 {
        font-size: 16px;
    }

    .recipe-card p {
        font-size: 13px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
        padding: 25px 15px;
    }

    .video-item {
        padding: 10px;
    }

    /* Typography */
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    /* Footer */
    .social-links {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
    }

    footer {
        padding: 20px 15px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    header {
        padding: 12px 15px;
    }

    .logo {
        font-size: 16px;
    }

    nav a {
        font-size: 14px;
        margin-right: 8px;
    }

    /* Sections */
    section {
        padding: 25px 10px;
    }

    .about img {
        width: 200px;
        height: 200px;
        object-fit: contain;
        background-color: #f8f8f8;
    }

    /* Recipe Grid */
    .recipe-grid {
        padding: 20px 10px;
        max-width: 100%;
    }

    .recipe-card {
        flex-direction: column;
        text-align: center;
    }

    .recipe-card img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        margin-bottom: 0;
        border-radius: 8px;
    }


    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 12px;
    }

    /* Typography */
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .recipe-card h3 {
        font-size: 16px;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    /* Footer */
    .social-links a {
        font-size: 14px;
    }

    /* Recipe Pages */
    #recipe-content {
        margin: 30px 10px;
        padding: 30px;
    }

    #recipe-content img {
        height: 250px;
        object-fit: contain;
        background-color: #f8f8f8;
    }

    #recipe-content h1 {
        font-size: 24px;
    }

    #recipe-content h2 {
        font-size: 18px;
    }

    /* Touch-friendly improvements */
    .recipe-card {
        min-height: 120px;
        cursor: pointer;
    }

    nav a {
        padding: 8px 12px;
        border-radius: 6px;
        transition: background-color 0.3s;
    }

    nav a:hover, nav a:focus {
        background-color: rgba(170, 64, 105, 0.1);
    }

    /* Prevent image distortion on mobile */
    .recipe-card img {
        height: 200px;
        object-fit: contain;
        background-color: #f8f8f8;
    }

    .video-item img {
        height: 150px;
        object-fit: cover;
        background-color: #f8f8f8;
    }
}


