/*
Theme Name: Yazılı Rehberi
Theme URI: https://yazilirehberi.com
Author: Yazılı Rehberi
Description: Ortak yazılılara hazırlanan öğrenciler için renkli, enerjik tema. Yazılı Rehberi Çekirdek eklentisinin deneme, senaryo ve soru sayfalarıyla uyumludur.
Version: 1.1.4
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: yazilirehberi
*/

/* ==========================================================================
   Tasarım: "çıkartma defteri" — kalın çerçeve, kaydırılmış gölge, fosforlu vurgu.
   Renkler değişkenlerle tanımlıdır; tüm bileşenler bunlardan beslenir.
   ========================================================================== */
:root {
	--ink: #1d1b4b;
	--ink-soft: #4b4a7a;
	--bg: #f4f6ff;
	--paper: #ffffff;
	--grid: #e3e8ff;
	--mavi: #4361ee;
	--mavi-koyu: #2f46c9;
	--sari: #ffd23f;
	--mercan: #ff6b6b;
	--nane: #06d6a0;
	--mor: #7b2ff7;
	--turuncu: #ff9f1c;
	--ok: #0a8f63;
	--uyari: #b86b00;
	--hata: #d63a3a;

	--f-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
	--f-body: "Nunito", "Segoe UI", system-ui, sans-serif;

	--r: 18px;
	--r-sm: 12px;
	--border: 3px solid var(--ink);
	--shadow: 6px 6px 0 var(--ink);
	--shadow-sm: 4px 4px 0 var(--ink);
	--wrap: 1160px;
	--gutter: max(18px, env(safe-area-inset-left, 0px));
}

/* Fontlar (yerel; Türkçe karakterler latin-ext içinde) */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/baloo-2-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/baloo-2-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/baloo-2-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/baloo-2-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/nunito-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/nunito-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/nunito-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/nunito-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/nunito-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/nunito-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/nunito-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url(assets/fonts/nunito-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* --------------------------------------------------------------------------
   Temel
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--f-body); font-size: 17px; line-height: 1.65; font-weight: 400;
	background-image: radial-gradient(var(--grid) 1.4px, transparent 1.4px); background-size: 24px 24px;
	overflow-x: clip; /* tam genişlik bloklar kaydırma çubuğu yüzünden yatay kaydırma yaratmasın */
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--mavi-koyu); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--mor); }
:focus-visible { outline: 3px solid var(--mor); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1em; }
mark, .yrt-vurgu {
	background: linear-gradient(transparent 52%, var(--sari) 52%, var(--sari) 90%, transparent 90%);
	color: inherit; padding: 0 .12em;
}
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--sari); padding: 10px 16px; border: var(--border); border-radius: var(--r-sm); clip: auto; width: auto; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(18px, env(safe-area-inset-right, 0px)); }

/* --------------------------------------------------------------------------
   Üst bilgi
   -------------------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--border); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; line-height: 1; flex-shrink: 0; white-space: nowrap; }
.brand__text { min-width: 0; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand__mark { display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--border); border-radius: 12px; background: var(--sari); box-shadow: 3px 3px 0 var(--ink); font-size: 1.55rem; padding-top: 3px; color: var(--ink); transform: rotate(-6deg); transition: transform .2s; }
.brand:hover .brand__mark { transform: rotate(4deg) scale(1.05); }
.brand__text small { display: block; font-family: var(--f-body); font-weight: 700; font-size: .7rem; color: var(--ink-soft); letter-spacing: .04em; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__mark { flex-shrink: 0; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { background: var(--grid); color: var(--ink); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.main-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 230px; padding: 8px; background: var(--paper); border: var(--border); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; z-index: 60; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { font-weight: 700; }
.header-cta { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 1280px) and (min-width: 1081px) { .main-nav a { padding: 8px 9px; font-size: .9rem; } .header-cta .btn { padding: 8px 11px; } }
/* Menüde zaten "Deneme oluştur" varken sıkışık genişlikte üstteki ikinci düğmeyi gizle */
@media (max-width: 1400px) and (min-width: 1081px) { .header-cta .btn--deneme { display: none; } .brand__text small { display: none; } }
.nav-toggle { display: none; flex-shrink: 0; margin-left: auto; background: var(--sari); border: var(--border); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); width: 48px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 3px; background: var(--ink); border-radius: 3px; margin: 0 auto; position: relative; transition: .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1080px) {
	.brand__text small { display: none; }
	.nav-toggle { display: block; }
	.main-nav, .header-cta { display: none; }
	.nav-open .site-header .wrap { flex-wrap: wrap; padding-bottom: 16px; }
	.nav-open .main-nav { display: block; width: 100%; order: 3; margin: 0; }
	.nav-open .header-cta { display: flex; width: 100%; order: 4; }
	.nav-open .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.header-cta .btn { flex: 1; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Düğmeler
   -------------------------------------------------------------------------- */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-body); font-weight: 800; font-size: 1rem; line-height: 1.2;
	padding: 12px 20px; border: var(--border); border-radius: 14px; background: var(--sari); color: var(--ink) !important; text-decoration: none;
	box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; cursor: pointer;
}
.btn:hover, .wp-block-button__link:hover, .wp-element-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.btn:active, .wp-block-button__link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--mavi, .is-style-mavi .wp-block-button__link { background: var(--mavi); color: #fff !important; }
.btn--beyaz, .is-style-beyaz .wp-block-button__link { background: #fff; }
.btn--sm { padding: 8px 14px; font-size: .9rem; border-radius: 11px; box-shadow: 3px 3px 0 var(--ink); }
.wp-block-buttons { gap: 14px; }

/* --------------------------------------------------------------------------
   Sayfa iskeleti
   -------------------------------------------------------------------------- */
.site-main { padding-bottom: 64px; min-height: 50vh; }
.page-hero { position: relative; overflow: hidden; background: var(--hero, var(--mavi)); color: #fff; border-bottom: var(--border); }
.page-hero .wrap { position: relative; padding-top: 48px; padding-bottom: 54px; }
.page-hero h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-hero p { margin: 10px 0 0; max-width: 60ch; font-size: 1.12rem; font-weight: 600; opacity: .95; }
.page-hero__eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; background: var(--sari); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px; transform: rotate(-2deg); }
.page-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.12); }
.page-hero::before { content: ""; position: absolute; right: 120px; bottom: -40px; width: 120px; height: 120px; border-radius: 28px; background: rgba(255,255,255,.1); transform: rotate(20deg); }
.page-hero--sari { --hero: var(--sari); color: var(--ink); } .page-hero--sari h1 { color: var(--ink); }
.page-hero--sari .page-hero__eyebrow { background: #fff; }
.page-hero--mercan { --hero: var(--mercan); } .page-hero--nane { --hero: var(--nane); color: var(--ink); } .page-hero--nane h1 { color: var(--ink); }
.page-hero--mor { --hero: var(--mor); } .page-hero--turuncu { --hero: var(--turuncu); color: var(--ink); } .page-hero--turuncu h1 { color: var(--ink); }

.content-area { padding-top: 40px; }
.entry-content { max-width: 100%; }
.entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide, .entry-content > .yr, .entry-content > .wp-block-shortcode, .entry-content > .yrt-wide { max-width: var(--wrap); }
.entry-content > .alignfull { max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.front-content > .alignfull, .front-content > * { max-width: none; margin-left: 0; margin-right: 0; }
.front-content > .wp-block-group { margin-top: 0; margin-bottom: 0; }
.yrt-inner { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--mavi); font-weight: 800; }
.entry-content table { border-collapse: separate; border-spacing: 0; width: 100%; background: var(--paper); border: var(--border); border-radius: var(--r-sm); overflow: hidden; }
.entry-content th, .entry-content td { padding: 10px 14px; border-bottom: 2px solid var(--grid); text-align: left; vertical-align: top; }
.entry-content th { background: var(--ink); color: #fff; font-weight: 800; }
.entry-content tr:last-child td { border-bottom: 0; }
.wp-block-table { overflow-x: auto; }
.entry-content details { background: var(--paper); border: var(--border); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.entry-content details summary { cursor: pointer; font-weight: 800; font-family: var(--f-display); font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.entry-content details summary::-webkit-details-marker { display: none; }
.entry-content details summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: var(--sari); border: 2.5px solid var(--ink); font-weight: 800; line-height: 1; }
.entry-content details[open] summary::after { content: "−"; background: var(--nane); }
.entry-content details > :not(summary) { margin-top: 10px; }
.entry-content blockquote { border-left: 6px solid var(--sari); margin-left: 0; padding: 4px 0 4px 18px; font-weight: 600; }

/* --------------------------------------------------------------------------
   Ana sayfa blokları (Kurulum eklentisinin oluşturduğu içerik bu sınıfları kullanır)
   -------------------------------------------------------------------------- */
.yrt-hero { position: relative; overflow: hidden; background: var(--mavi); color: #fff; border-bottom: var(--border); padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px) !important; }
.yrt-hero > .wp-block-group__inner-container, .yrt-hero > .yrt-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.yrt-hero .wp-block-columns { align-items: center; gap: clamp(28px, 5vw, 64px); margin: 0; }
.yrt-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; }
.yrt-hero h1 mark { background: linear-gradient(transparent 55%, var(--mercan) 55%, var(--mercan) 92%, transparent 92%); }
.yrt-hero p { font-size: 1.2rem; font-weight: 600; max-width: 34ch; }
.yrt-hero .yrt-rozet { display: inline-block; background: var(--sari); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: .85rem; letter-spacing: .04em; transform: rotate(-3deg); margin-bottom: 14px; }
.yrt-hero::before { content: ""; position: absolute; left: -80px; bottom: -100px; width: 300px; height: 300px; border-radius: 50%; background: var(--mor); opacity: .55; }
.yrt-hero::after { content: ""; position: absolute; right: 8%; top: 24px; width: 90px; height: 90px; background: var(--sari); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); opacity: .9; animation: yrt-spin 18s linear infinite; }
@keyframes yrt-spin { to { transform: rotate(360deg); } }
.yrt-hero > * { position: relative; z-index: 1; }

/* Ana sayfadaki örnek kâğıt */
.yrt-kagit { position: relative; background: #fff; color: var(--ink); border: var(--border); border-radius: 10px; box-shadow: 10px 10px 0 var(--ink); padding: 26px 26px 22px 54px; transform: rotate(2deg); width: 100%; max-width: 460px; margin-left: auto; overflow-wrap: anywhere;
	background-image: linear-gradient(90deg, transparent 38px, var(--mercan) 38px, var(--mercan) 40px, transparent 40px), repeating-linear-gradient(transparent 0 29px, var(--grid) 29px 31px); }
.yrt-kagit__ust { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; color: var(--ink-soft); border-bottom: 2px dashed var(--grid); padding-bottom: 8px; margin-bottom: 12px; }
.yrt-kagit__soru { font-weight: 700; margin: 0 0 10px; font-size: 1rem; }
.yrt-kagit__soru b { color: var(--mavi); }
.yrt-kagit__cevap { font-family: var(--f-display); font-weight: 700; color: var(--mavi-koyu); font-size: 1.2rem; line-height: 1.3; margin: 0; }
.yrt-kagit__puan { position: absolute; right: 18px; bottom: 10px; font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; color: var(--mercan); transform: rotate(-10deg); }
.yrt-kagit__puan::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 6px; height: 4px; border-radius: 4px; background: var(--mercan); }
.yrt-kagit__yazar { font-size: .78rem; font-style: italic; color: var(--ink-soft); margin: 8px 0 0; }
.yrt-sticker { position: absolute; top: -18px; left: -18px; background: var(--nane); border: var(--border); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: .85rem; transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--ink); }

/* Sütun içerikleri ekran genişliğini zorlamasın */
.wp-block-column, .wp-block-group, .yrt-inner { min-width: 0; }
.yrt-hero .wp-block-column > * { max-width: 100%; }

/* Bölümler */
.yrt-bolum { padding: clamp(48px, 7vw, 88px) 0 !important; }
.yrt-bolum > .wp-block-group__inner-container, .yrt-bolum > .yrt-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.yrt-bolum--beyaz { background: var(--paper); border-top: var(--border); border-bottom: var(--border); }
.yrt-bolum--sari { background: var(--sari); border-top: var(--border); border-bottom: var(--border); }
.yrt-bolum--mor { background: var(--mor); color: #fff; border-top: var(--border); border-bottom: var(--border); }
.yrt-bolum--mor h2, .yrt-bolum--mor h3 { color: #fff; }
.yrt-baslik { text-align: center; margin-bottom: 36px !important; }
.yrt-baslik + p { text-align: center; max-width: 60ch; margin: -18px auto 36px; font-size: 1.1rem; color: var(--ink-soft); font-weight: 600; }
.yrt-bolum--mor .yrt-baslik + p { color: #fff; }

/* Kart (çıkartma) */
.yrt-kart { background: var(--paper); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px !important; height: 100%; transition: transform .15s, box-shadow .15s; color: var(--ink); }
.yrt-kart:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--ink); }
.yrt-kart h3 { margin-bottom: .35em; }
.yrt-kart p:last-child { margin-bottom: 0; }
.yrt-kart a { font-weight: 800; }
.yrt-kart--mavi { background: #e6ebff; } .yrt-kart--sari { background: #fff4c2; } .yrt-kart--mercan { background: #ffe1e1; } .yrt-kart--nane { background: #d6f8ee; } .yrt-kart--mor { background: #eee2ff; }
.yrt-ikon { display: inline-grid; place-items: center; width: 58px; height: 58px; border: var(--border); border-radius: 16px; background: var(--paper); font-size: 1.9rem; line-height: 1; margin-bottom: 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-4deg); }
.wp-block-columns.yrt-kartlar { gap: 26px; align-items: stretch; }
.wp-block-columns.yrt-kartlar > .wp-block-column { display: flex; flex-direction: column; }

/* Adımlar */
.yrt-adim { position: relative; padding-top: 46px !important; }
.yrt-adim__no { position: absolute; top: -22px; left: 20px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--mercan); color: #fff; border: var(--border); font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; box-shadow: 3px 3px 0 var(--ink); }

/* İstatistik ve takvim (kısa kod çıktıları) */
.yrt-istatistik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: var(--wrap); margin: 0 auto; }
.yrt-istatistik div { background: var(--paper); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 18px; text-align: center; }
.yrt-istatistik b { display: block; font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--mavi); }
.yrt-istatistik div:nth-child(2) b { color: var(--mercan); } .yrt-istatistik div:nth-child(3) b { color: var(--ok); } .yrt-istatistik div:nth-child(4) b { color: var(--mor); }
.yrt-istatistik span { display: block; margin-top: 6px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); }
.yrt-takvim { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; max-width: var(--wrap); }
.yrt-takvim li { position: relative; background: var(--paper); border: var(--border); border-radius: var(--r-sm); padding: 14px 16px 14px 92px; min-height: 84px; box-shadow: var(--shadow-sm); color: var(--ink); }
.yrt-takvim .t { position: absolute; left: 12px; top: 12px; width: 66px; text-align: center; background: var(--mercan); color: #fff; border: 2.5px solid var(--ink); border-radius: 10px; font-weight: 800; line-height: 1.05; padding: 6px 0; }
.yrt-takvim .t b { display: block; font-family: var(--f-display); font-size: 1.6rem; }
.yrt-takvim .t small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.yrt-takvim li:nth-child(4n+2) .t { background: var(--mavi); } .yrt-takvim li:nth-child(4n+3) .t { background: var(--mor); } .yrt-takvim li:nth-child(4n+4) .t { background: var(--ok); }
.yrt-takvim li.gecti { opacity: .55; }
.yrt-takvim strong { display: block; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.2; }
.yrt-takvim span { font-size: .88rem; color: var(--ink-soft); font-weight: 600; }
.yrt-not { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 18px; }

/* CTA bandı */
.yrt-cta { background: var(--mercan) !important; color: #fff; border: var(--border); border-radius: 26px; box-shadow: 10px 10px 0 var(--ink); padding: clamp(28px, 5vw, 48px) !important; max-width: var(--wrap) !important; }
.yrt-cta h2 { color: #fff; margin-bottom: .3em; }
.yrt-cta p { font-weight: 600; font-size: 1.1rem; max-width: 56ch; }

/* Bilgi kutusu */
.yrt-kutu { background: #fff4c2; border: var(--border); border-radius: var(--r-sm); padding: 16px 20px !important; box-shadow: var(--shadow-sm); }
.yrt-kutu--mavi { background: #e6ebff; } .yrt-kutu--nane { background: #d6f8ee; } .yrt-kutu--mercan { background: #ffe1e1; }
.yrt-kutu p:last-child { margin-bottom: 0; }

/* Yazı listesi (duyurular) */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { background: var(--paper); border: var(--border); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 22px; }
.post-card h2 { font-size: 1.35rem; margin-bottom: .3em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card time { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: var(--border); border-radius: 10px; background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 800; }
.pagination .current { background: var(--sari); }

/* --------------------------------------------------------------------------
   Yazılı Rehberi Çekirdek bileşenleri — temaya uyum
   -------------------------------------------------------------------------- */
.yr { --yr-ink: var(--ink); --yr-muted: var(--ink-soft); --yr-line: #cfd6f5; --yr-soft: #f6f8ff; --yr-pen: var(--mavi); --yr-pen-soft: #e6ebff; --yr-red: var(--hata); --yr-ok: var(--ok); --yr-warn: var(--uyari); max-width: var(--wrap); font-family: var(--f-body); }
.yr h3, .yr h2 { font-family: var(--f-display); }
.yr-card { border: var(--border) !important; border-radius: var(--r) !important; box-shadow: var(--shadow-sm); padding: 22px !important; }
.yr-btn { border: var(--border) !important; border-radius: 13px !important; background: var(--sari) !important; color: var(--ink) !important; box-shadow: 3px 3px 0 var(--ink); font-weight: 800 !important; transition: transform .12s, box-shadow .12s; }
.yr-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); filter: none !important; }
.yr-btn--ghost { background: #fff !important; }
.yr-btn:disabled { transform: none; box-shadow: none; }
.yr input[type=text], .yr input[type=email], .yr input[type=password], .yr input[type=number], .yr input[type=url], .yr input[type=date], .yr input[type=datetime-local], .yr select, .yr textarea { border: 2.5px solid var(--ink) !important; border-radius: 11px !important; background: #fff !important; font-size: 1rem; }
.yr label { font-weight: 800 !important; }
.yr-notice { border: var(--border); border-left-width: 8px !important; border-radius: var(--r-sm); font-weight: 600; }
.yr-table th { background: var(--ink) !important; color: #fff !important; }
.yr-unite td { background: #fff4c2 !important; color: var(--ink) !important; }
.yr-stats div { border-top-width: 4px !important; }
/* Kâğıt sade kalır: yazdırmada okunaklılık için çıkartma süsü uygulanmaz */
.yr-paper { border: var(--border) !important; border-radius: 10px !important; box-shadow: 8px 8px 0 var(--ink); }

/* --------------------------------------------------------------------------
   Alt bilgi
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #e9e8ff; padding-top: 56px; border-top: var(--border); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sari); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h3 { color: var(--sari); font-size: 1.2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 6px 0; }
.footer-grid li a { text-decoration: none; font-weight: 700; }
.footer-brand .brand { color: #fff; }
.footer-disc { margin-top: 14px; font-size: .9rem; color: #c9c8ee; max-width: 46ch; }
.footer-bottom { margin-top: 40px; padding: 18px 0 calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: #b9b8e6; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* 404 */
.yrt-404 { text-align: center; padding: 72px 0; }
.yrt-404 .kod { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--mercan); text-shadow: 6px 6px 0 var(--ink); }

/* --------------------------------------------------------------------------
   Duyarlı
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
	.yrt-istatistik { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yrt-kagit { margin: 24px auto 0; transform: rotate(1deg); }
}
@media (max-width: 781px) {
	.wp-block-columns.yrt-kartlar { gap: 30px; }
	.yrt-hero p { max-width: none; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.site-header .wrap { gap: 10px; min-height: 64px; }
	.brand { font-size: 1.15rem; }
	.brand__mark { width: 38px; height: 38px; font-size: 1.3rem; }
	.yrt-hero h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
	.yrt-hero p { font-size: 1.05rem; }
	.yrt-kagit { transform: none; padding: 22px 16px 20px 44px; background-image: linear-gradient(90deg, transparent 30px, var(--mercan) 30px, var(--mercan) 32px, transparent 32px), repeating-linear-gradient(transparent 0 29px, var(--grid) 29px 31px); }
	.yrt-sticker { left: 10px; top: -16px; }
	.yrt-kagit__puan { font-size: 1.8rem; right: 12px; }
	.yrt-cta { box-shadow: 6px 6px 0 var(--ink); border-radius: 20px; }
	.yrt-kart, .yrt-istatistik div, .yrt-takvim li { box-shadow: 4px 4px 0 var(--ink); }
	.wp-block-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; justify-content: center; }
	.yrt-takvim { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.yrt-kagit { padding-left: 46px; box-shadow: 6px 6px 0 var(--ink); }
	.yrt-hero::after { width: 60px; height: 60px; }
}

/* --------------------------------------------------------------------------
   Yazdırma: yalnızca içerik
   -------------------------------------------------------------------------- */
@media print {
	body { background: #fff; }
	.site-header, .site-footer, .page-hero, .skip-link { display: none !important; }
	.yr-paper { box-shadow: none !important; }
}

/* Ana sayfa: tanıtım videosu */
.yrt-bolum--video { background: var(--bg); padding: clamp(36px, 6vw, 72px) 0; border-bottom: var(--border); }
.yrt-video__alt { text-align: center; margin: 0 auto 24px; max-width: 60ch; font-weight: 700; color: var(--ink-soft); }
.yrt-bolum--video .yrt-baslik { text-align: center; }
.yrt-video { max-width: 960px; margin: 0 auto; border: var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.yrt-video video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.yrt-video__metin { max-width: 960px; margin: 18px auto 0; font-weight: 600; }
.yrt-video__metin summary { cursor: pointer; font-weight: 800; }
.yrt-video__metin p { margin: .6em 0; }
