/*
Theme Name:   Bakıcı Ajansım
Theme URI:    https://bakiciajansim.com
Author:       IDE Danışmanlık
Description:  Bakıcı Ajansım eklentisiyle birlikte çalışan tema. Header, footer ve renkleri eklentiden alır; blog, sayfa, arama, arşiv ve 404 şablonlarını aynı tasarım diliyle çizer. Eklenti kapalıyken de sade bir görünümle çalışır.
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GPLv2 or later
Text Domain:  bakici-ajansim-tema
Tags:         blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------------------------------
 * Tasarım değişkenleri — eklenti aktifken kendi renklerini :root'a yazar ve
 * bunların üzerine geçer. Buradakiler eklenti kapalıyken kullanılır.
 * ---------------------------------------------------------------------- */
:root {
	--main: #12355b;
	--accent: #e0833a;
	--soft: #f6f1ea;
	--ink: #1d2430;
	--mute: #5d6675;
	--line: #e6e1d8;
	--card: #fff;
	--bg: #fffdf9;
	--r: 18px;
	--sh: 0 1px 2px rgba(18, 30, 50, .05), 0 8px 24px -12px rgba(18, 30, 50, .18);
}

/* -------------------------------------------------------------------------
 * Eklenti kapalıyken temel iskelet (eklentinin CSS'i gelmediğinde)
 * ---------------------------------------------------------------------- */
body.bkt-fallback { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bkt-fallback .wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.bkt-fallback h1, .bkt-fallback h2, .bkt-fallback h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; color: var(--main); line-height: 1.15; }
.bkt-fallback .phero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--soft), var(--bg)); border-bottom: 1px solid var(--line); }
.bkt-fallback .phero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .4em; }
.bkt-fallback .lead { color: var(--mute); font-size: 1.1rem; max-width: 640px; }
.bkt-fallback .crumb { font-size: .85rem; color: var(--mute); margin-bottom: 10px; }
.bkt-fallback .crumb a { text-decoration: none; color: inherit; }
.bkt-fallback .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); }
.bkt-fallback .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--main); color: #fff; }
.bkt-fallback .sec { padding: 64px 0; }
.bkt-fallback .eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.bkt-hdr { border-bottom: 1px solid var(--line); background: var(--bg); }
.bkt-hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; }
.bkt-hdr .site-title { font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; font-weight: 600; color: var(--main); text-decoration: none; margin-right: auto; }
.bkt-hdr .custom-logo { max-height: 52px; width: auto; }
.bkt-hdr ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.bkt-hdr ul a { display: block; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.bkt-hdr ul a:hover, .bkt-hdr .current-menu-item > a { background: var(--soft); color: var(--main); }
.bkt-ftr { background: #0f1a28; color: #aab6c6; padding: 36px 0; font-size: .92rem; }
.bkt-ftr a { color: #cfd8e3; }

/* -------------------------------------------------------------------------
 * Ortak yardımcılar
 * ---------------------------------------------------------------------- */
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; display: block; height: auto; left: 8px; top: 8px; padding: 10px 14px; width: auto; z-index: 100000; }
.bkt-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--mute); }
body.bkt .bkt-meta a { color: inherit; text-decoration: none; }
body.bkt .bkt-meta a:hover { color: var(--main); }
.bkt-meta .dot { opacity: .5; }

/* -------------------------------------------------------------------------
 * Blog listesi
 * ---------------------------------------------------------------------- */
.bkt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .bkt-layout { grid-template-columns: 1fr; } }
.bkt-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.bkt-post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.bkt-post:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(18, 30, 50, .06), 0 18px 34px -16px rgba(18, 30, 50, .28); }
.bkt-post .thumb { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, var(--soft), #fff); overflow: hidden; }
.bkt-post .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.bkt-post:hover .thumb img { transform: scale(1.04); }
.bkt-post .thumb.empty { display: grid; place-items: center; color: var(--main); opacity: .35; }
.bkt-post .bd { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
body.bkt .bkt-post .cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-bottom: 8px; display: inline-block; }
body.bkt .bkt-post h2 { font-size: 1.3rem; margin: 0 0 10px; }
body.bkt .bkt-post h2 a { text-decoration: none; color: var(--main); }
body.bkt .bkt-post p { color: var(--mute); font-size: .96rem; margin: 0 0 16px; }
.bkt-post .bkt-meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.bkt-post.sticky { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.bkt-post.sticky .thumb { aspect-ratio: auto; min-height: 280px; }
.bkt-post.sticky h2 { font-size: 1.8rem; }
@media (max-width: 760px) { .bkt-post.sticky { grid-template-columns: 1fr; } .bkt-post.sticky .thumb { aspect-ratio: 3 / 2; min-height: 0; } }

.bkt-empty { text-align: center; padding: 56px 24px; border: 2px dashed var(--line); border-radius: var(--r); background: #fff; }

/* Sayfalama */
.pagination, .bkt-pager { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; color: var(--ink); }
.pagination .page-numbers.current { background: var(--main); border-color: var(--main); color: #fff; }
.pagination .page-numbers:hover:not(.current):not(.dots) { border-color: var(--main); color: var(--main); }
.pagination .dots { border: 0; background: none; }

/* -------------------------------------------------------------------------
 * Kenar çubuğu
 * ---------------------------------------------------------------------- */
.bkt-side { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 960px) { .bkt-side { position: static; } }
.bkt-side .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--sh); }
body.bkt .bkt-side .widget h3, body.bkt .bkt-side .widget .wp-block-heading { font-size: 1.1rem; margin: 0 0 12px; }
.bkt-side ul { list-style: none; margin: 0; padding: 0; }
.bkt-side li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.bkt-side li:last-child { border-bottom: 0; }
body.bkt .bkt-side li a { text-decoration: none; color: var(--ink); }
body.bkt .bkt-side li a:hover { color: var(--main); }
.bkt-side .bkt-cta { background: var(--main); color: #fff; border-color: var(--main); position: relative; overflow: hidden; }
.bkt-side .bkt-cta:after { content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--accent); opacity: .3; }
.bkt-side .bkt-cta h3 { color: #fff; position: relative; }
.bkt-side .bkt-cta p { color: #d6e0ec; font-size: .95rem; position: relative; }
.bkt-side .bkt-cta .btn { position: relative; }

.search-form { display: flex; gap: 8px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: var(--bg); }
.search-form .search-field:focus { outline: 0; border-color: var(--main); box-shadow: 0 0 0 4px color-mix(in srgb, var(--main) 14%, transparent); }
.search-form .search-submit { border: 0; border-radius: 999px; padding: 0 18px; background: var(--main); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* -------------------------------------------------------------------------
 * Yazı / sayfa içeriği
 * ---------------------------------------------------------------------- */
.bkt-single-hero { padding: 56px 0 0; background: linear-gradient(180deg, var(--soft), var(--bg) 85%); }
.bkt-single-hero .inner { max-width: 820px; }
body.bkt .bkt-single-hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin: 6px 0 16px; }
.bkt-single-hero .bkt-meta { margin-bottom: 28px; }
.bkt-single-hero .avatar { border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.bkt-cover { border-radius: 24px; overflow: hidden; box-shadow: var(--sh); margin-bottom: 8px; }
.bkt-cover img { width: 100%; max-height: 560px; object-fit: cover; display: block; }

.entry { font-size: 1.07rem; line-height: 1.8; color: var(--ink); max-width: 760px; }
body.bkt .entry > * { margin-top: 0; margin-bottom: 1.25em; }
body.bkt .entry h2 { font-size: 1.8rem; margin-top: 1.8em; }
body.bkt .entry h3 { font-size: 1.4rem; margin-top: 1.6em; }
body.bkt .entry h4 { font-size: 1.15rem; margin-top: 1.4em; color: var(--main); }
body.bkt .entry a { color: var(--main); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
body.bkt .entry a:hover { color: var(--accent); }
body.bkt .entry ul, body.bkt .entry ol { padding-left: 1.4em; }
body.bkt .entry li { margin-bottom: .4em; }
body.bkt .entry li::marker { color: var(--accent); font-weight: 700; }
body.bkt .entry img { border-radius: 14px; height: auto; max-width: 100%; }
body.bkt .entry blockquote, body.bkt .entry .wp-block-quote { margin-left: 0; margin-right: 0; padding: 18px 24px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 14px 14px 0; font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; color: var(--main); }
body.bkt .entry blockquote cite { display: block; margin-top: 8px; font: 600 .9rem "Plus Jakarta Sans", sans-serif; color: var(--mute); font-style: normal; }
body.bkt .entry .wp-block-pullquote { border-top: 3px solid var(--accent); border-bottom: 3px solid var(--accent); padding: 28px 0; text-align: center; }
body.bkt .entry table { width: 100%; border-collapse: collapse; font-size: .96rem; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
body.bkt .entry th, body.bkt .entry td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
body.bkt .entry thead th { background: var(--soft); color: var(--main); }
body.bkt .entry code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
body.bkt .entry pre { background: #0f1a28; color: #e8eef6; padding: 18px; border-radius: 14px; overflow: auto; font-size: .9rem; }
body.bkt .entry pre code { background: none; padding: 0; }
body.bkt .entry hr, body.bkt .entry .wp-block-separator { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
body.bkt .entry figcaption, body.bkt .entry .wp-element-caption { font-size: .86rem; color: var(--mute); text-align: center; margin-top: 8px; }
body.bkt .entry .wp-block-button__link { background: var(--main); color: #fff; border-radius: 999px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
body.bkt .entry .is-style-outline .wp-block-button__link { background: transparent; color: var(--main); border: 2px solid var(--main); }
body.bkt .entry .alignwide { max-width: 1100px; width: calc(100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
body.bkt .entry .alignfull { max-width: none; width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }
body.bkt .entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
body.bkt .entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
body.bkt .entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry::after { content: ""; display: table; clear: both; }
body.bkt .entry .wp-block-details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
body.bkt .entry .wp-block-details summary { font-weight: 700; color: var(--main); cursor: pointer; }
.page-links { margin: 24px 0; font-weight: 700; }
.page-links a, .page-links > span:not(.page-links-title) { display: inline-grid; place-items: center; min-width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); margin-left: 4px; text-decoration: none; }

/* Sayfa düzeni (page.php) */
.bkt-page .entry { margin: 0 auto; }
.bkt-page.wide .entry { max-width: 1180px; }

/* Etiketler, paylaş */
.bkt-foot { max-width: 760px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.bkt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
body.bkt .bkt-tags a { font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--main); text-decoration: none; }
.bkt-share { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--mute); font-weight: 600; }
.bkt-share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--main); background: #fff; text-decoration: none; }
.bkt-share a:hover { border-color: var(--main); }
.bkt-share svg { width: 18px; height: 18px; }

/* Yazar kutusu */
.bkt-author { max-width: 760px; display: flex; gap: 18px; align-items: flex-start; margin-top: 30px; padding: 22px; background: var(--soft); border-radius: var(--r); }
.bkt-author img { border-radius: 50%; flex: none; }
body.bkt .bkt-author h4 { margin: 0 0 4px; font-family: "Fraunces", Georgia, serif; color: var(--main); font-size: 1.1rem; }
body.bkt .bkt-author p { margin: 0; color: var(--mute); font-size: .95rem; }

/* Önceki / sonraki */
.bkt-nav { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
body.bkt .bkt-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color .2s; }
body.bkt .bkt-nav a:hover { border-color: var(--main); }
body.bkt .bkt-nav span { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
body.bkt .bkt-nav b { color: var(--main); font-weight: 700; }
body.bkt .bkt-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .bkt-nav { grid-template-columns: 1fr; } .bkt-nav .next { grid-column: auto; } }

/* İçerik içi CTA kutusu */
.bkt-inline-cta { max-width: 760px; margin: 36px 0 0; padding: 26px 28px; border-radius: var(--r); background: var(--main); color: #fff; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
body.bkt .bkt-inline-cta h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
body.bkt .bkt-inline-cta p { margin: 0; color: #d6e0ec; font-size: .95rem; }
.bkt-inline-cta .btn { background: var(--accent); color: #fff; }

/* -------------------------------------------------------------------------
 * Yorumlar
 * ---------------------------------------------------------------------- */
.comments-area { max-width: 760px; margin-top: 48px; }
body.bkt .comments-area h2 { font-size: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; border-left: 2px solid var(--line); padding-left: 18px; }
.comment-body { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; }
.comment-meta { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--mute); margin-bottom: 8px; flex-wrap: wrap; }
.comment-meta .avatar { border-radius: 50%; }
.comment-author .fn { font-weight: 700; color: var(--ink); font-style: normal; }
.comment-metadata a { color: inherit; text-decoration: none; }
.comment-content p { margin: 0 0 .6em; }
.reply a { font-size: .85rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.comment-respond { background: var(--soft); border-radius: var(--r); padding: 26px; margin-top: 24px; }
body.bkt .comment-respond h3 { margin-top: 0; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form > p { margin: 0; }
.comment-form .comment-notes, .comment-form .comment-form-comment, .comment-form .comment-form-cookies-consent, .comment-form .form-submit, .comment-form .logged-in-as { grid-column: 1 / -1; }
.comment-form-url { display: none; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; box-sizing: border-box; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; }
.comment-form-cookies-consent label { font-weight: 500; display: inline; }
.comment-form .submit { border: 0; border-radius: 999px; padding: 13px 24px; background: var(--main); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 600px) { .comment-form { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
 * 404
 * ---------------------------------------------------------------------- */
.bkt-404 { text-align: center; padding: 96px 0; }
body.bkt .bkt-404 .big { font-family: "Fraunces", Georgia, serif; font-size: clamp(5rem, 16vw, 10rem); line-height: 1; color: var(--main); opacity: .12; margin: 0; }
body.bkt .bkt-404 h1 { margin-top: -0.4em; }
body.bkt .bkt-404 .search-form { max-width: 460px; margin: 24px auto; }
body.bkt .bkt-404 .links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
