/*
Theme Name: Wooblog
Theme URI: https://woosoft.net/wooblog
Author: WooSoft
Author URI: https://woosoft.net
Description: Sade, hızlı ve SEO odaklı bir WordPress blog temasıdır. Google SEO kriterlerini karşılar; logo, renk, tipografi, footer ve copyright ayarları yönetici panelinden özelleştirilebilir.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wooblog
Tags: blog, one-column, two-columns, right-sidebar, custom-logo, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, seo, fast
*/

/* ==========================================================================
   1. Değişkenler (Customizer'dan wp_head içinde geçersiz kılınır)
   ========================================================================== */
:root {
    --wb-primary: #2563eb;
    --wb-primary-dark: #1d4ed8;
    --wb-text: #1f2937;
    --wb-heading: #1f2937;
    --wb-muted: #6b7280;
    --wb-bg: #ffffff;
    --wb-bg-alt: #f8fafc;
    --wb-header: #ffffff;
    --wb-header-text: #1f2937;
    --wb-border: #e5e7eb;
    --wb-body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --wb-heading-font: var(--wb-body-font);
    --wb-base-size: 17px;
    --wb-radius: 10px;
    --wb-max-width: 1180px;
    --wb-content-width: 760px;
}

/* ==========================================================================
   2. Reset & Temel
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--wb-body-font);
    font-size: var(--wb-base-size);
    line-height: 1.7;
    color: var(--wb-text);
    background: var(--wb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wb-heading-font);
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 700;
    color: var(--wb-heading);
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.25em; }
a { color: var(--wb-primary); text-decoration: none; }
a:hover, a:focus { color: var(--wb-primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.4em; }
blockquote {
    margin: 1.5em 0;
    padding: .5em 1.2em;
    border-left: 4px solid var(--wb-primary);
    background: var(--wb-bg-alt);
    color: var(--wb-muted);
}
code, pre {
    font-family: SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--wb-bg-alt);
    border-radius: 6px;
}
code { padding: .15em .4em; font-size: .9em; }
pre { padding: 1em; overflow-x: auto; }
hr { border: 0; border-top: 1px solid var(--wb-border); margin: 2em 0; }

/* ==========================================================================
   3. Yardımcı sınıflar & Erişilebilirlik
   ========================================================================== */
.wb-container { width: 100%; max-width: var(--wb-max-width); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
    position: absolute !important; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 100000;
    background: var(--wb-primary); color: #fff; padding: 10px 18px; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }
:focus-visible { outline: 3px solid var(--wb-primary); outline-offset: 2px; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.wb-site-header {
    background: var(--wb-header);
    border-bottom: 1px solid var(--wb-border);
    position: sticky; top: 0; z-index: 999;
}
.wb-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; }
.wb-branding { display: flex; align-items: center; gap: 12px; }
.wb-logo img { max-height: 46px; width: auto; }
/* Logo anasayfada H1 içine alınır; başlık stillerini sıfırla */
.wb-logo-h1 { margin: 0; padding: 0; font-size: inherit; line-height: 0; }
.wb-logo-h1 img { max-height: 46px; width: auto; }
.wb-site-title { font-size: 1.5rem; margin: 0; font-weight: 800; }
.wb-site-title a { color: var(--wb-header-text); }
.wb-site-description { font-size: .85rem; color: var(--wb-header-text); opacity: .7; margin: 2px 0 0; }

/* Menü */
.wb-nav { display: flex; }
.wb-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.wb-nav a { display: block; padding: 8px 14px; color: var(--wb-header-text); border-radius: 8px; font-weight: 500; }
.wb-nav a:hover, .wb-nav .current-menu-item > a { background: var(--wb-bg-alt); color: var(--wb-primary); text-decoration: none; }
.wb-nav li { position: relative; }
.wb-nav ul ul {
    display: none; position: absolute; top: 100%; left: 0; min-width: 200px;
    flex-direction: column; background: var(--wb-bg); border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius); padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 10;
}
/* Açılır alt menü beyaz zeminde: normal metin rengi kullan */
.wb-nav ul ul a { color: var(--wb-text); }
.wb-nav li:hover > ul, .wb-nav li:focus-within > ul { display: flex; }

/* Mobil menü butonu */
.wb-menu-toggle {
    display: none; background: transparent; border: 1px solid var(--wb-border);
    border-radius: 8px; padding: 8px 12px; cursor: pointer; font-size: 1rem; color: var(--wb-header-text);
}

/* ==========================================================================
   5. Layout (İçerik + Sidebar)
   ========================================================================== */
.wb-site-main { padding: 40px 0 60px; }
.wb-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 44px; align-items: start; }
/* Tekil yazı/sayfa: okunabilirlik için sınırlı genişlik, ortalı */
.wb-layout.wb-no-sidebar { grid-template-columns: minmax(0, var(--wb-content-width)); justify-content: center; }
/* Arşiv/anasayfa listeleri: içerik container'ı doldursun (header ile hizalı) */
.wb-archive-view .wb-layout.wb-no-sidebar { grid-template-columns: minmax(0, 1fr); }

/* Breadcrumb */
.wb-breadcrumb { margin: 0 0 20px; font-size: .85rem; color: var(--wb-muted); }
.wb-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.wb-breadcrumb li { display: inline-flex; align-items: center; }
.wb-breadcrumb li + li::before { content: "›"; margin: 0 8px 0 4px; color: var(--wb-muted); }
.wb-breadcrumb a { color: var(--wb-muted); }
.wb-breadcrumb a:hover { color: var(--wb-primary); }
.wb-breadcrumb [aria-current="page"] { color: var(--wb-text); font-weight: 600; }

/* ==========================================================================
   6. Yazı Kartları (Arşiv/Anasayfa)
   ========================================================================== */
/* Liste görünümü: tek sütun (varsayılan) */
.wb-posts--list { display: block; }

/* Izgara (grid) görünümü: geniş ekranda 4 sütun */
.wb-posts--grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}
.wb-posts--grid .wb-post-card { margin-bottom: 0; }
.wb-posts--grid .wb-post-body { padding: 16px 18px 20px; }
.wb-posts--grid .wb-post-card .wb-post-title { font-size: 1.1rem; }
/* Kenar çubuğu açıkken içerik daraldığından grid'i 2 sütuna indir */
.wb-layout:not(.wb-no-sidebar) .wb-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .wb-posts--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .wb-posts--grid,
    .wb-layout:not(.wb-no-sidebar) .wb-posts--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .wb-posts--grid,
    .wb-layout:not(.wb-no-sidebar) .wb-posts--grid { grid-template-columns: 1fr; } }

.wb-post-card {
    background: var(--wb-bg); border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius); overflow: hidden; margin-bottom: 28px;
    transition: transform .18s ease, box-shadow .18s ease;
}
.wb-post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.wb-post-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.wb-post-body { padding: 20px 24px 24px; }
.wb-post-card .wb-post-title { font-size: 1.4rem; margin-bottom: .3em; }
.wb-post-card .wb-post-title a { color: var(--wb-heading); }
.wb-post-card .wb-post-title a:hover { color: var(--wb-primary); text-decoration: none; }
.wb-post-meta { font-size: .82rem; color: var(--wb-muted); display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.wb-post-meta a { color: var(--wb-muted); }
.wb-post-meta .wb-cat a { color: var(--wb-primary); font-weight: 600; }
.wb-post-excerpt { color: var(--wb-muted); margin-bottom: 16px; }
.wb-read-more { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   7. Tekil İçerik
   ========================================================================== */
.wb-single .wb-entry-header { margin-bottom: 24px; }
.wb-single .entry-title { font-size: 2.3rem; }
.wb-featured { margin: 0 0 28px; border-radius: var(--wb-radius); overflow: hidden; }
.wb-entry-content { font-size: 1.05rem; }
.wb-entry-content img { border-radius: var(--wb-radius); margin: 1em 0; }
.wb-entry-content figure { margin: 1.5em 0; }
.wb-tags { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wb-tags a { background: var(--wb-bg-alt); border: 1px solid var(--wb-border); padding: 5px 12px; border-radius: 999px; font-size: .82rem; color: var(--wb-muted); }
.wb-tags a:hover { border-color: var(--wb-primary); color: var(--wb-primary); text-decoration: none; }

/* Yazar kutusu */
.wb-author-box { display: flex; gap: 16px; background: var(--wb-bg-alt); border: 1px solid var(--wb-border); border-radius: var(--wb-radius); padding: 20px; margin: 30px 0; }
.wb-author-box img { border-radius: 50%; flex-shrink: 0; }

/* Sayfalama */
.wb-pagination { margin: 40px 0 0; }
.wb-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.wb-pagination a, .wb-pagination span {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--wb-border);
    border-radius: 8px; color: var(--wb-text);
}
.wb-pagination .current { background: var(--wb-primary); color: #fff; border-color: var(--wb-primary); }
.wb-pagination a:hover { background: var(--wb-bg-alt); text-decoration: none; }

/* ==========================================================================
   8. Sidebar & Widget
   ========================================================================== */
.wb-sidebar .widget {
    background: var(--wb-bg); border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius); padding: 20px; margin-bottom: 24px;
}
.wb-sidebar .widget-title { font-size: 1.05rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--wb-primary); display: inline-block; }
.wb-sidebar ul { list-style: none; padding: 0; margin: 0; }
.wb-sidebar li { padding: 7px 0; border-bottom: 1px solid var(--wb-border); }
.wb-sidebar li:last-child { border-bottom: 0; }

/* ==========================================================================
   9. Yorumlar & Formlar
   ========================================================================== */
.wb-comments { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--wb-bg-alt); border: 1px solid var(--wb-border); border-radius: var(--wb-radius); padding: 18px; margin-bottom: 16px; }
.comment-list .children { list-style: none; margin-left: 28px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea, select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--wb-border);
    border-radius: 8px; font-family: inherit; font-size: 1rem; background: var(--wb-bg); color: var(--wb-text);
}
input:focus, textarea:focus, select:focus { border-color: var(--wb-primary); outline: none; }
.wb-btn, button, input[type="submit"] {
    display: inline-block; background: var(--wb-primary); color: #fff; border: 0;
    padding: 11px 22px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 1rem;
}
.wb-btn:hover, button:hover, input[type="submit"]:hover { background: var(--wb-primary-dark); color: #fff; text-decoration: none; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.wb-site-footer { background: var(--wb-bg-alt); border-top: 1px solid var(--wb-border); margin-top: 40px; }
.wb-footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding: 48px 0; }
.wb-footer-widgets .widget-title { font-size: 1.05rem; margin-bottom: 14px; }
.wb-footer-widgets ul { list-style: none; padding: 0; }
.wb-footer-widgets li { padding: 5px 0; }
.wb-copyright { border-top: 1px solid var(--wb-border); padding: 20px 0; text-align: center; font-size: .88rem; color: var(--wb-muted); }
.wb-copyright a { color: var(--wb-primary); }

/* ==========================================================================
   11. 404 & Boş durumlar
   ========================================================================== */
.wb-404 { text-align: center; padding: 60px 0; }
.wb-404 .wb-404-code { font-size: 6rem; font-weight: 800; color: var(--wb-primary); line-height: 1; }

/* ==========================================================================
   12. Duyarlı (Responsive)
   ========================================================================== */
@media (max-width: 900px) {
    .wb-layout, .wb-layout.wb-no-sidebar { grid-template-columns: 1fr; }
    .wb-menu-toggle { display: inline-block; }
    .wb-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: var(--wb-bg); border-bottom: 1px solid var(--wb-border);
        padding: 12px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }
    .wb-nav.is-open { display: block; }
    .wb-nav ul { flex-direction: column; gap: 2px; }
    .wb-nav ul ul { position: static; display: block; border: 0; box-shadow: none; padding-left: 14px; }
    /* Mobil menü paneli sayfa arka planında açılır: normal metin rengi kullan */
    .wb-nav a { color: var(--wb-text); }
    .wb-site-header { position: relative; }
}
@media (max-width: 520px) {
    .wb-single .entry-title { font-size: 1.7rem; }
    .wb-post-card .wb-post-title { font-size: 1.2rem; }
    h1 { font-size: 1.7rem; }
}

/* WordPress zorunlu sınıfları */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--wb-muted); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
.wp-block-image figcaption { font-size: .85rem; color: var(--wb-muted); text-align: center; }
