/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --hanted-color: #00b894
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    background-color: #f9f9f9;
    line-height: 1.6;
    color: var(--dark-color)
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* Utility class to hide elements */
.hidden {
    display: none !important;
}

/* ==========================================================================
   HEADER AND NAVIGATION (SHARED)
   ========================================================================== */
header {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    position: sticky;
    top: 0;
    z-index: 100
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo {
    height: 40px
}

.navbar a img {
    height: 40px;
    transition: transform 0.3s ease;
}

.navbar a img:hover {
    transform: scale(1.1);
}

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

.nav-links li {
    margin-left: 30px
}

.nav-links a {
    text-decoration: none;
    color: var(--light-color);
    font-weight: 500;
    transition: color .3s;
    font-family: Creepster, cursive;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .2)
}

.nav-links a:hover {
    color: var(--dark-color)
}

.nav-links a i {
    margin-right: 8px;
    color: #ffd700;
    animation: pulse 2s infinite;
}

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

.mobile-menu-btn {
    display: none;
    background: 0 0;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--light-color)
}

/* ==========================================================================
   FOOTER (SHARED)
   ========================================================================== */
footer {
    background-color: #222;
    color: #ddd;
    padding: 20px
}

.footer-copyright {
    text-align: center;
    padding-top: 30px;
    color: #aaa;
    font-size: 14px
}

.footer-copyright a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color .3s
}

.footer-copyright a:hover {
    color: #ff5252;
    text-decoration: underline
}

/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES (INDEX.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    font-family: 'Henny Penny', cursive;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)) center/cover, url('../img/bg/hero.jpg') center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    height: 500px;
    text-align: center
}

.hero-content {
    max-width: 800px;
    margin: 0 auto
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px
}

/* --------------------------------------------------------------------------
   Categories Section
   -------------------------------------------------------------------------- */
.categories {
    margin-bottom: 32px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    border-radius: 12px;
    padding: 24px 0 12px
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    margin-bottom: 24px
}

.category-card {
    font-family: 'Purple Purse', cursive;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    background: 0 0;
    box-shadow: none;
    transition: none;
    overflow: visible
}

.category-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    margin-bottom: 2px;
    border: none;
    border-radius: 0;
    background: 0 0;
    box-shadow: none
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    text-align: center
}
.category-link {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */
.section-title {
    font-family: 'Henny Penny', cursive;
    margin: 32px 0 18px;
    font-size: 32px;
    color: var(--dark-color);
    text-align: center
}

/* --------------------------------------------------------------------------
   Recipes Section
   -------------------------------------------------------------------------- */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 32px
}

.recipe-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1)
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .15)
}

.recipe-img {
    height: 200px;
    overflow: hidden
}

.recipe-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s
}

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

.recipe-info {
    padding: 20px
}

.recipe-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color)
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px
}

.recipe-difficulty {
    display: inline-block;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600
}

.difficulty-easy {
    background-color: rgba(0, 184, 148, .1);
    color: var(--hanted-color)
}

.difficulty-medium {
    background-color: rgba(253, 203, 110, .1);
    color: #fdcb6e
}

.difficulty-hard {
    background-color: rgba(255, 107, 107, .1);
    color: var(--primary-color)
}

.view-recipe {
    display: inline-block;
    border-radius: 4px;
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: background-color .3s
}

.view-recipe:hover {
    background-color: #ff5252
}

/* --------------------------------------------------------------------------
   Chef Section (Behind the Magic)
   -------------------------------------------------------------------------- */
.behind-the-magic {
    background-color: #fff;
    padding: 32px 0;
    margin: 32px 0
}

.chef-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1)
}

.chef-img {
    flex: 0 0 40%
}

.chef-img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.chef-video-container {
    width: 300px;
    height: 400px;
    position: relative;
    margin-right: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    transition: transform .3s
}

.video-thumbnail:hover {
    transform: scale(1.05)
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.play-button {
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 107, 107, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: .3s;
    box-shadow: 0 4px 15px rgba(255, 107, 107, .4)
}

.play-button:hover {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, .6)
}

.video-overlay {
    color: #fff;
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, .7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600
}

.video-player {
    width: 100%;
    border-radius: 8px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
    overflow: hidden
}

.video-player video {
    border-radius: 8px;
    object-fit: cover
}

.chef-content {
    flex: 1;
    padding: 40px
}

.chef-name {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--dark-color)
}

.chef-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px
}

.chef-recipe {
    margin-top: 30px
}

.chef-recipe-title {
    font-size: 20px;
    margin-bottom: 15px
}

/* --------------------------------------------------------------------------
   Menu of the Day Section
   -------------------------------------------------------------------------- */
.menu-of-the-day {
    margin-bottom: 32px;
    text-align: center
}

.menu-card {
    width: 100%;
    border-radius: 8px;
    display: inline-block;
    background-color: #fff;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
    max-width: 800px
}

.menu-title {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 30px
}

.menu-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px
}

.menu-item {
    flex: 1;
    min-width: 200px
}

.menu-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color)
}

.menu-item-desc {
    color: #666
}

.randomize-btn {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .3s
}

.randomize-btn:hover {
    background-color: #3dbeb6
}

/* --------------------------------------------------------------------------
   Newsletter Section
   -------------------------------------------------------------------------- */
.newsletter {
    background-color: var(--dark-color);
    color: #fff;
    padding: 32px 0;
    text-align: center
}

.newsletter h2 {
    margin-bottom: 20px
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #ddd
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .3s
}

.newsletter-form button:hover {
    background-color: #ff5252
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES (CONTACT.HTML)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Contact Hero Section
   -------------------------------------------------------------------------- */
.contact-hero {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)) center/cover, url('../img/bg/contact-header.jpg') center/cover;
    height: 350px;
    display: flex;
    align-items: center;
    color: #fff;
    margin-bottom: 60px;
    text-align: center
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Henny Penny', cursive
}

.contact-hero h1 {
    font-size: 42px;
    margin-bottom: 20px
}

.contact-hero p {
    font-size: 18px
}

/* --------------------------------------------------------------------------
   Contact Section (Form and Info)
   -------------------------------------------------------------------------- */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 80px
}

.contact-form,
.contact-info {
    flex: 1;
    min-width: 300px
}

.form-card,
.info-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05)
}

.info-card {
    margin-bottom: 30px
}

.form-card h3,
.info-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--primary-color)
}

.contact-details {
    list-style: none
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start
}

.contact-details i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
    width: 24px
}

.form-group {
    margin-bottom: 20px
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color .3s
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: 0
}

.form-group textarea {
    min-height: 150px;
    resize: vertical
}

.submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .3s
}

.submit-btn:hover {
    background-color: var(--dark-color)
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.map-section {
    margin-bottom: 80px
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .1)
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tablets (max-width: 992px)
   -------------------------------------------------------------------------- */
@media (max-width:992px) {
    .chef-card {
        flex-direction: column
    }

    .chef-img {
        height: 300px
    }

    .chef-video-container {
        width: 100%;
        height: 300px;
        margin-right: 0;
        margin-bottom: 20px
    }
}

/* --------------------------------------------------------------------------
   Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width:768px) {
    .hero h1 {
        font-size: 36px
    }

    .hero p {
        font-size: 18px
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
        margin-left: 0;
    }

    .nav-links a {
        padding: 10px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

    .mobile-menu-btn {
        display: block
    }

    .menu-items {
        flex-direction: column;
        align-items: center
    }

    .menu-item {
        width: 100%;
        max-width: 300px
    }

    .contact-hero {
        height: 300px
    }

    .contact-hero h1 {
        font-size: 32px
    }
}

/* --------------------------------------------------------------------------
   Small Mobile (max-width: 576px)
   -------------------------------------------------------------------------- */
@media (max-width:576px) {
    .hero {
        height: 400px
    }

    .hero h1 {
        font-size: 28px
    }

    .contact-hero h1 {
        font-size: 28px
    }

    .newsletter-form {
        flex-direction: column
    }

    .newsletter-form input {
        border-radius: 4px;
        margin-bottom: 10px
    }

    .newsletter-form button {
        border-radius: 4px;
        padding: 15px
    }

    .contact-hero {
        height: 250px
    }

    .form-card,
    .info-card {
        padding: 20px
    }
}




/* --------------------------------------------------------------------------
   Readme Page
   -------------------------------------------------------------------------- */
.readme-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.readme-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.readme-title {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.readme-section {
    margin-bottom: 30px;
}

.readme-section h2 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--light-color);
}

.readme-section h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin: 20px 0 10px;
}

.readme-section p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.readme-section ul,
.readme-section ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

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

.code-block {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    margin: 15px 0;
    overflow-x: auto;
}

@media (max-width: 768px) {
    .readme-container {
        padding: 20px;
        margin: 20px;
    }

    .readme-title {
        font-size: 28px;
    }
}