/*
 * Main Theme Styles
 * GlutenFreePro
 */

/* 1. Base & Reset */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fbf9;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-top: 0;
}

a {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2ecc71;
}

img {
    max-width: 100%;
    height: auto;
}

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

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* 2. Header & Navigation */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 2rem;
    margin: 0;
}

.site-title a {
    color: #2c3e50;
}

.site-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin-left: 30px;
}

.main-navigation a {
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* 3. Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.button {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s ease;
}

.button:hover {
    background: #219150;
    color: #fff;
}

/* 4. Recipe Grid */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

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

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

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

.recipe-card .entry-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

.entry-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
}

/* 5. Single Recipe Post */
.single-recipe-post {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-top: 40px;
    margin-bottom: 40px;
}

.entry-header {
    text-align: center;
    margin-bottom: 40px;
}

.entry-header .entry-title {
    font-size: 3rem;
}

.entry-meta {
    color: #7f8c8d;
}

.post-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.post-thumbnail img {
    border-radius: 12px;
}

/* 6. Recipe Box (The core feature) */
.recipe-box {
    background: #fdfdfd;
    border: 2px solid #eef2f1;
    border-radius: 15px;
    padding: 40px;
    margin: 50px 0;
}

.recipe-box-header {
    border-bottom: 2px solid #eef2f1;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.recipe-quick-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.info-item {
    font-size: 0.95rem;
}

.recipe-box-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.recipe-ingredients h3, .recipe-instructions h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: #27ae60;
    margin-bottom: 20px;
}

.recipe-ingredients ul, .recipe-instructions ol {
    padding-left: 20px;
}

.recipe-ingredients li, .recipe-instructions li {
    margin-bottom: 10px;
}

.recipe-box-footer {
    margin-top: 40px;
    text-align: center;
}

.print-recipe-button {
    background: #34495e;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

/* 7. Footer */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
    margin-top: 80px;
    text-align: center;
}

.site-footer a {
    color: #27ae60;
}

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

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 0.9rem;
}

/* 8. Mobile Responsiveness */
@media (max-width: 992px) {
    .recipe-box-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header-inner {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation {
        width: 100%;
    }

    .menu-toggle {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .main-navigation .menu-container {
        display: none;
    }

    .main-navigation.toggled .menu-container {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .main-navigation li {
        margin: 10px 0;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

    .entry-header .entry-title {
        font-size: 2.2rem;
    }

    .recipe-box {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .site-header, .site-footer, .post-navigation, .comments-area, .sidebar, .print-recipe-button {
        display: none !important;
    }
    .recipe-box {
        border: none;
        padding: 0;
    }
}
