/*
Theme Name: Dünya Mutfağı
Theme URI: https://dunyamutfagi.net/
Author: Todij
Description: Dünya Mutfağı için hızlı, erişilebilir ve bağımsız tarif teması.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: dunya-mutfagi
*/

:root {
    --cream: #f7f1e7;
    --cream-deep: #eee4d5;
    --paper: #fffdf8;
    --ink: #25231f;
    --muted: #716c63;
    --terracotta: #b94f36;
    --terracotta-dark: #8c3524;
    --olive: #66704a;
    --olive-dark: #444b32;
    --gold: #d5a44c;
    --line: rgba(37, 35, 31, 0.14);
    --shadow: 0 22px 60px rgba(69, 50, 30, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --shell: min(1180px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.menu-is-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    letter-spacing: -0.025em;
}
.site-shell { width: var(--shell); margin-inline: auto; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 16px; top: -100px; z-index: 9999;
    padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.utility-bar { background: var(--olive-dark); color: rgba(255,255,255,.88); font-size: 12px; letter-spacing: .06em; }
.utility-bar__inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-bar p { margin: 0; }
.utility-bar span { text-transform: uppercase; font-size: 10px; }

.site-header { position: relative; z-index: 30; background: rgba(247,241,231,.96); border-bottom: 1px solid var(--line); }
.header-main { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark {
    position: relative; width: 52px; height: 52px; flex: 0 0 52px;
    display: grid; place-items: center; border: 2px solid var(--terracotta); border-radius: 50%;
}
.brand-mark::before { content: ""; width: 29px; height: 29px; border: 1px solid var(--terracotta); border-radius: 50%; }
.brand-mark::after {
    content: ""; position: absolute; width: 10px; height: 20px; right: 2px; top: 2px;
    background: var(--olive); border-radius: 100% 0 100% 0; transform: rotate(20deg);
}
.brand-mark span { position: absolute; width: 16px; height: 2px; background: var(--terracotta); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 25px; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.header-search { width: min(380px, 40vw); }
.search-form { position: relative; display: flex; }
.search-form label { width: 100%; }
.search-field {
    width: 100%; min-height: 46px; padding: 0 52px 0 18px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
}
.search-submit {
    position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; padding: 0;
    display: grid; place-items: center; color: transparent; background: var(--terracotta); border: 0; border-radius: 50%; cursor: pointer;
}
.search-submit::after { content: "⌕"; color: #fff; font-size: 22px; line-height: 1; transform: rotate(-20deg); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--paper); padding: 12px; }
.menu-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav__inner { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3vw, 44px); }
.primary-nav a { position: relative; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--terracotta); transition: right .2s ease; }
.primary-nav a:hover::after { right: 0; }

.kicker, .eyebrow { color: var(--terracotta); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: inline-block; letter-spacing: .09em; }
.kicker--light, .eyebrow--light { color: #f4c897; }
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 48px; padding: 0 22px; color: #fff; background: var(--terracotta);
    border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .04em;
    transition: transform .2s ease, background .2s ease;
}
.button:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.button--light { color: var(--ink); background: var(--paper); }
.button--light:hover { color: #fff; background: var(--terracotta); }
.text-link { color: var(--terracotta); font-weight: 800; font-size: 13px; }

.hero-section { padding-top: clamp(48px, 7vw, 96px); }
.hero-intro { max-width: 740px; margin-bottom: 34px; }
.hero-intro h1 { margin: 8px 0 16px; font-size: clamp(48px, 7vw, 84px); line-height: .98; }
.hero-intro p { max-width: 610px; color: var(--muted); font-size: 18px; }
.hero-card {
    min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(340px, .8fr);
    overflow: hidden; background: var(--olive-dark); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.hero-card__media { min-height: 540px; overflow: hidden; background: linear-gradient(145deg, #c89969, #6e7650); }
.hero-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-card:hover .hero-card__media img { transform: scale(1.025); }
.hero-card__media--fallback { display: grid; place-items: center; }
.hero-fallback { color: rgba(255,255,255,.88); font-family: Georgia, serif; font-size: clamp(38px, 6vw, 72px); line-height: .9; text-align: center; }
.hero-card__content { align-self: end; padding: clamp(36px, 5vw, 70px); color: #fff; }
.hero-card__content h2 { margin: 15px 0; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.03; }
.hero-card__content p { color: rgba(255,255,255,.72); }

.category-section { padding-block: clamp(78px, 10vw, 130px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card {
    min-height: 110px; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px;
    padding: 20px; background: var(--paper); border: 1px solid transparent; border-radius: var(--radius-md);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: rgba(185,79,54,.25); box-shadow: 0 18px 38px rgba(69,50,30,.09); }
.category-card__icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--cream); border-radius: 50%; font-size: 27px; }
.category-card strong, .category-card small { display: block; }
.category-card strong { font-family: Georgia, serif; font-size: 18px; }
.category-card small { margin-top: 3px; color: var(--muted); }

.latest-section { padding-block: clamp(70px, 8vw, 110px); background: var(--paper); }
.recipe-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 20px; }
.recipe-card { min-width: 0; }
.recipe-card__media {
    position: relative; aspect-ratio: 1.35; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(145deg, #d8b789, #66704a); border-radius: var(--radius-md);
}
.recipe-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.recipe-card:hover .recipe-card__media img { transform: scale(1.045); }
.fallback-dish { display: grid; place-items: center; width: 76px; height: 76px; color: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; font-family: Georgia, serif; font-size: 25px; }
.recipe-card__body { padding: 18px 4px 0; }
.recipe-card h3 { margin: 7px 0 12px; font-size: 22px; line-height: 1.18; }
.recipe-card h3 a:hover { color: var(--terracotta); }
.recipe-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }

.regional-section {
    margin-block: clamp(72px, 10vw, 140px); padding: clamp(34px, 6vw, 72px);
    display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(34px, 6vw, 80px);
    background: var(--olive-dark); color: #fff; border-radius: var(--radius-lg);
}
.regional-heading { align-self: center; }
.regional-heading h2 { margin: 8px 0 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1; }
.regional-heading p { color: rgba(255,255,255,.72); }
.regional-recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.regional-recipes .recipe-card__body { color: #fff; }
.regional-recipes .recipe-meta { color: rgba(255,255,255,.6); }
.regional-recipes .recipe-card h3 { font-size: 18px; }

.search-promo { padding-block: 70px; color: #fff; background: var(--terracotta); }
.search-promo__inner { display: grid; grid-template-columns: 1fr minmax(320px, .75fr); gap: 50px; align-items: center; }
.search-promo h2 { margin: 7px 0 0; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; }
.search-promo .search-field { min-height: 58px; padding-right: 64px; border: 0; }
.search-promo .search-submit { width: 46px; height: 46px; right: 6px; top: 6px; background: var(--olive-dark); }

.listing-page { padding-block: clamp(60px, 8vw, 110px); }
.page-hero { max-width: 780px; margin-bottom: 54px; }
.page-hero h1 { margin: 8px 0 14px; font-size: clamp(42px, 6vw, 72px); line-height: 1; }
.page-hero p, .archive-description { color: var(--muted); font-size: 17px; }
.page-search { max-width: 560px; margin-top: 28px; }
.navigation.pagination { margin-top: 60px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; background: var(--paper); border-radius: 50px; }
.page-numbers.current { color: #fff; background: var(--terracotta); }
.empty-state { padding: 60px; text-align: center; background: var(--paper); border-radius: var(--radius-lg); }

.single-recipe { padding-top: clamp(48px, 7vw, 100px); }
.single-hero { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: clamp(35px, 6vw, 90px); }
.single-hero__copy h1 { margin: 12px 0 20px; font-size: clamp(44px, 6vw, 78px); line-height: 1; }
.single-deck { color: var(--muted); font-size: 18px; }
.recipe-meta--large { margin-top: 28px; font-size: 12px; }
.single-hero__media { aspect-ratio: 1.22; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #d1a06d, #56613e); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.single-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { padding-block: clamp(70px, 9vw, 130px); display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(40px, 7vw, 90px); }
.article-aside { height: max-content; padding: 22px; border-top: 3px solid var(--terracotta); background: var(--paper); }
.article-aside span, .article-aside strong { display: block; }
.article-aside span { color: var(--terracotta); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.article-aside strong { margin: 5px 0 14px; font-family: Georgia, serif; font-size: 21px; }
.article-aside p { margin: 0; color: var(--muted); font-size: 13px; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.84; }
.article-content h2, .article-content h3 { margin-top: 2em; line-height: 1.15; }
.article-content h2 { font-size: 36px; }
.article-content h3 { font-size: 28px; }
.article-content a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.article-content img { margin-block: 30px; border-radius: var(--radius-md); }
.article-content ul, .article-content ol { padding-left: 1.4em; }

.not-found { min-height: 70vh; padding-block: 90px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.not-found__number { color: rgba(185,79,54,.13); font-family: Georgia, serif; font-size: clamp(120px, 24vw, 280px); font-weight: 700; line-height: .8; }
.not-found h1 { margin: 12px 0; font-size: clamp(38px, 5vw, 62px); }
.not-found p { max-width: 620px; color: var(--muted); }
.not-found .page-search { width: min(560px, 100%); margin: 28px auto 18px; }

.site-footer { padding-top: 72px; color: rgba(255,255,255,.78); background: #24251f; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 60px; padding-bottom: 60px; }
.footer-brand p { max-width: 430px; color: rgba(255,255,255,.55); }
.brand--footer { margin-bottom: 22px; }
.brand--footer .brand-copy strong { color: #fff; }
.brand--footer .brand-copy small { color: rgba(255,255,255,.45); }
.site-footer h2 { color: #fff; font-family: inherit; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.site-footer .footer-grid > div:not(:first-child) a { display: block; margin: 10px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { min-height: 70px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }

@media (max-width: 1000px) {
    .recipe-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-card { grid-template-columns: 1.15fr .85fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .regional-section { grid-template-columns: 1fr; }
    .regional-heading { max-width: 600px; }
}

@media (max-width: 760px) {
    :root { --shell: min(100% - 28px, 620px); --radius-lg: 22px; }
    .utility-bar__inner { justify-content: center; min-height: 30px; }
    .utility-bar span { display: none; }
    .header-main { min-height: 82px; }
    .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
    .brand-copy strong { font-size: 21px; }
    .brand-copy small, .header-search { display: none; }
    .menu-toggle { display: block; }
    .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; min-height: calc(100vh - 112px); background: var(--cream); }
    .primary-nav.is-open { display: block; }
    .primary-nav__inner { min-height: 0; padding-block: 24px; flex-direction: column; align-items: stretch; gap: 0; }
    .primary-nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; font-size: 22px; text-transform: none; }
    .hero-section { padding-top: 50px; }
    .hero-intro h1 { font-size: clamp(48px, 15vw, 68px); }
    .hero-card { min-height: 0; grid-template-columns: 1fr; }
    .hero-card__media { min-height: 0; aspect-ratio: 1.2; }
    .hero-card__content { padding: 30px 24px 34px; }
    .hero-card__content h2 { font-size: 34px; }
    .category-grid { grid-template-columns: 1fr; }
    .category-card { min-height: 92px; }
    .recipe-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
    .recipe-card h3 { font-size: 18px; }
    .recipe-meta { display: none; }
    .latest-section { padding-block: 70px; }
    .section-heading { align-items: start; }
    .section-heading .text-link { display: none; }
    .regional-section { width: calc(100% - 28px); margin-inline: auto; padding: 34px 20px; }
    .regional-recipes { grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 10px; }
    .search-promo__inner { grid-template-columns: 1fr; gap: 30px; }
    .single-hero { grid-template-columns: 1fr; }
    .single-hero__copy h1 { font-size: 48px; }
    .single-hero__media { order: -1; }
    .article-layout { grid-template-columns: 1fr; padding-top: 50px; }
    .article-aside { display: none; }
    .article-content { font-size: 18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 22px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 430px) {
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-card__media { aspect-ratio: 1.45; }
    .category-card { grid-template-columns: 52px 1fr auto; }
    .category-card__icon { width: 52px; height: 52px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
