/*
Theme Name: Flavor Developer
Theme URI: https://www.turkischerezepte.de
Description: Ultra-fast child theme for turkischerezepte.de - Optimized for PageSpeed 100
Author: Developer
Author URI: https://www.turkischerezepte.de
Template: generatepress
Version: 1.0.0
Text Domain: flavor-developer
*/

/* ===== HOMEPAGE HERO ===== */
.home-hero {
    background: linear-gradient(135deg, var(--accent) 0%, #e84872 50%, #f4845f 100%);
    color: #fff;
    padding: 64px 24px;
    text-align: center;
}
.home-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: -0.8px;
    line-height: 1.15;
}
.home-hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin: 0 auto;
    max-width: 620px;
    opacity: 0.92;
    line-height: 1.6;
}

/* ===== CATEGORY GRID ===== */
.cat-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
    justify-content: center;
}
.cat-grid a {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--base-3);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--contrast);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cat-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(219, 48, 105, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.cat-grid a span {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--contrast-2);
    margin-top: 2px;
}

/* ===== SECTION TITLES ===== */
.section-title {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 0 24px 0 24px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--contrast);
    border-left: 4px solid var(--accent);
    padding-left: 16px;
    line-height: 1.3;
}

/* ===== POSTS GRID ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 24px;
}
.post-card {
    background: var(--base-3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
.post-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
}
.post-card-body {
    padding: 18px 20px 20px;
}
.post-card-cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.post-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    color: var(--contrast);
}
.post-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.post-card h3 a:hover {
    color: var(--accent);
}
.post-card-meta {
    font-size: 0.78rem;
    color: var(--contrast-2);
}

/* ===== AD BLOCKS ===== */
.ad-block {
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
    text-align: center;
}
.ad-block ins {
    display: block;
    margin: 0 auto;
}

/* ===== RESPONSIVE: TABLET ===== */
@media (max-width: 991px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .home-hero {
        padding: 48px 20px;
    }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    .home-hero {
        padding: 40px 16px;
    }
    .cat-grid {
        gap: 8px;
        padding: 0 16px;
    }
    .cat-grid a {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1.25rem;
        padding: 0 16px 0 16px;
        padding-left: 14px;
        margin: 32px auto 16px;
    }
    .post-card img {
        aspect-ratio: 16 / 10;
    }
    .ad-block {
        padding: 0 16px;
    }
}


/* ===== FEATURED POST ===== */
.featured-post {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto 30px;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}
.featured-post a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}
.featured-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.featured-post-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    border-radius: 0 0 16px 16px;
}
.featured-post-content h2 {
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 800;
    color: #fff;
}
.featured-post-content span {
    font-size: 14px;
    opacity: 0.8;
}

/* ===== HERO SEARCH ===== */
.hero-search {
    display: flex;
    max-width: 500px;
    margin: 20px auto 0;
    gap: 0;
}
.hero-search input {
    flex: 1;
    padding: 12px 20px;
    border: 0;
    border-radius: 50px 0 0 50px;
    font-size: 15px;
    outline: none;
}
.hero-search button {
    padding: 12px 24px;
    background: #fff;
    color: var(--accent);
    border: 0;
    border-radius: 0 50px 50px 0;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

/* ===== RESPONSIVE: FEATURED POST ===== */
@media (max-width: 600px) {
    .featured-post {
        height: 250px;
        padding: 0 16px;
    }
    .featured-post-content h2 {
        font-size: 20px;
    }
    .featured-post-content {
        padding: 20px;
    }
}

/* ===== HOMEPAGE STYLES ===== */
.home-hero {
    text-align: center;
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}
.home-hero h1 {
    color: var(--contrast);
    font-size: clamp(32px, 5vw, 48px);
}
.home-hero p {
    color: var(--contrast-2);
    font-size: 16px;
    line-height: 1.7;
}
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    padding: 0 20px;
}
.section-header h2 {
    font-size: 24px;
    color: var(--contrast);
    margin-bottom: 8px;
}
.section-header p {
    color: var(--contrast-2);
    font-size: 15px;
    line-height: 1.6;
}
.seo-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
}
.seo-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--contrast);
}
.seo-content h3 {
    font-size: 20px;
    margin: 30px 0 10px;
    color: var(--contrast);
}
.seo-content p {
    margin-bottom: 15px;
    color: var(--contrast-2);
}
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.faq-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}
.faq-section h3 {
    font-size: 17px;
    margin: 25px 0 8px;
    color: var(--contrast);
}
.faq-section p {
    color: var(--contrast-2);
    margin-bottom: 0;
}

/* ===== HOMEPAGE BLOCK STYLING ===== */

/* Ana başlık - Hero h1 */
.page-id-11142 .entry-content > .wp-block-heading.has-text-align-center:first-of-type {
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 5px;
    margin-top: 30px;
    color: var(--contrast);
}

/* Hero altındaki ilk paragraf */
.page-id-11142 .entry-content > .wp-block-heading.has-text-align-center:first-of-type + p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--contrast-2);
}

/* Bölüm başlıkları (h2) */
.page-id-11142 .entry-content > .wp-block-heading:is(h2) {
    font-size: clamp(24px, 4.5vw, 34px);
    letter-spacing: -0.8px;
    margin-top: 80px;
    margin-bottom: 14px;
    padding-bottom: 0;
    position: relative;
    text-align: center;
}

/* Bölüm başlığı altındaki açıklama paragrafı */
.page-id-11142 .entry-content > .wp-block-heading:is(h2) + p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--contrast-2);
}

/* Başlık altı dekoratif çizgi */
.page-id-11142 .entry-content > .wp-block-heading.has-text-align-center:is(h2)::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 18px auto 0;
    border-radius: 2px;
}

/* Query Loop container */
.page-id-11142 .wp-block-query {
    margin-bottom: 20px;
}

/* Post grid - 3 sütun */
.page-id-11142 .wp-block-post-template {
    gap: 24px !important;
    padding: 0;
}

/* Post kartları */
.page-id-11142 .wp-block-post {
    background: var(--base-3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0,0,0,0.04);
}
.page-id-11142 .wp-block-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

/* Post resmi */
.page-id-11142 .wp-block-post-featured-image {
    margin: 0;
    overflow: hidden;
}
.page-id-11142 .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.page-id-11142 .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
}

/* Post başlığı */
.page-id-11142 .wp-block-post-title {
    padding: 14px 18px 16px;
    margin: 0 !important;
}
.page-id-11142 .wp-block-post-title a {
    color: var(--contrast);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.2s;
}
.page-id-11142 .wp-block-post-title a:hover {
    color: var(--accent);
}

/* SEO içerik ve FAQ bölümü */
.page-id-11142 .entry-content > .wp-block-heading:is(h3) {
    font-size: 19px;
    margin-top: 35px;
    margin-bottom: 10px;
    color: var(--contrast);
}

/* Sayfa entry-title gizle (h1 içerikte zaten var) */
.page-id-11142 .entry-header {
    display: none;
}

/* Full width layout */
.page-id-11142 .site-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 991px) {
    .page-id-11142 .entry-content > .wp-block-heading:is(h2) {
        margin-top: 60px;
    }
}
@media (max-width: 600px) {
    .page-id-11142 .wp-block-post-template {
        gap: 16px !important;
    }
    .page-id-11142 .entry-content > .wp-block-heading:is(h2) {
        margin-top: 50px;
        margin-bottom: 10px;
    }
    .page-id-11142 .wp-block-post-title {
        padding: 12px 14px 14px;
    }
}
