/*
Theme Name: EtiBlog Teması
Theme URI: https://etiyazilim.com
Author: Eti Yazılım
Author URI: https://etiyazilim.com
Description: EtiBlog'un sadeleştirilmiş, JavaScript gerektirmeyen, mobil öncelikli ve SEO uyumlu hızlı blog sürümü.
Version: 3.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: etiyazilim.com
Tags: blog, custom-logo, custom-menu, featured-images, accessibility-ready, translation-ready
*/
:root {
  --surface: #fff;
  --background: #fff;
  --text: #1d2939;
  --muted: #667085;
  --border: #e7eaf0;
  --accent: #135eac;
  --accent-hover: #0e467f;
  --content: 760px;
  --shell: 1060px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #2e90fa; outline-offset: 3px; }
img, svg, video { max-width: 100%; height: auto; }
img { vertical-align: middle; }
iframe, embed, object { max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { line-height: 1.28; letter-spacing: -.025em; overflow-wrap: break-word; }
p { margin: 0 0 1.2em; }
.shell { width: min(calc(100% - 36px), var(--shell)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus, .skip-link:focus { position: fixed; z-index: 10000; top: 12px; left: 12px; width: auto; height: auto; overflow: visible; clip: auto; padding: 10px 14px; background: #fff; border: 2px solid var(--accent); color: var(--text); }
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { display: inline-flex; align-items: center; font-size: 1.45rem; font-weight: 760; letter-spacing: -.04em; color: var(--text); text-decoration: none; line-height: 1.2; }
.site-brand:hover { color: var(--accent); }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo, .brand-logo { display: block; width: auto; max-width: min(215px, 55vw); max-height: 52px; height: auto; object-fit: contain; }
.navigation-dropdown { min-width: 0; }
.navigation-dropdown summary { display: none; cursor: pointer; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; list-style: none; padding: 0; margin: 0; }
.menu li { list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 8px 0; text-decoration: none; color: var(--text); font-size: .925rem; font-weight: 600; }
.menu a:hover, .menu .current-menu-item > a, .menu .current_page_item > a { color: var(--accent); }
.site-main { min-height: 65vh; padding-block: 46px 64px; }
.feed-wrap { max-width: 860px; margin-inline: auto; }
.listing-header { margin-bottom: 28px; }
.listing-header h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.listing-description { color: var(--muted); margin: 0; font-size: .98rem; }
.listing-description p { margin-bottom: 0; }
.post-list { border-top: 1px solid var(--border); }
.post-card { display: grid; grid-template-columns: minmax(0, 245px) minmax(0, 1fr); gap: 24px; align-items: start; padding: 27px 0; border-bottom: 1px solid var(--border); }
.post-card.no-thumbnail { grid-template-columns: 1fr; }
.card-thumb { display: block; border-radius: 9px; overflow: hidden; aspect-ratio: 16 / 9; background: #f2f4f7; }
.card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-content { min-width: 0; }
.post-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; color: var(--muted); font-size: .835rem; line-height: 1.65; }
.post-meta a { color: inherit; text-decoration: none; }
.post-meta a:hover { color: var(--accent); }
.meta-separator { color: #98a2b3; }
.card-title { margin: 7px 0 10px; font-size: clamp(1.18rem, 2.2vw, 1.44rem); }
.card-title a { text-decoration: none; color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0 0 10px; color: #475467; font-size: .96rem; line-height: 1.7; }
.read-more { font-weight: 650; font-size: .9rem; text-decoration: none; }
.navigation.pagination { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 39px; min-height: 39px; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.page-numbers.current { color: #fff; background: var(--accent); border-color: var(--accent); }
.reading-wrap { max-width: var(--content); margin-inline: auto; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .83rem; line-height: 1.5; margin-bottom: 27px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.article-header { margin-bottom: 24px; }
.article-title { font-size: clamp(2rem, 4.6vw, 2.75rem); line-height: 1.2; margin: 0 0 15px; }
.article-header .post-meta { font-size: .88rem; }
.hero-figure { margin: 0 0 32px; }
.post-hero { display: block; width: 100%; height: auto; border-radius: 10px; }
figcaption, .wp-caption-text { color: var(--muted); font-size: .82rem; margin-top: 7px; text-align: center; }
.entry-content { font-size: 1.0625rem; line-height: 1.88; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.42rem, 3vw, 1.85rem); margin: 1.65em 0 .62em; }
.entry-content h3 { font-size: clamp(1.24rem, 2.7vw, 1.48rem); margin: 1.5em 0 .6em; }
.entry-content h4 { font-size: 1.15rem; margin: 1.4em 0 .55em; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content ul, .entry-content ol { padding-left: 1.6em; margin: 0 0 1.35em; }
.entry-content li { margin: .25em 0; }
.entry-content blockquote { margin: 1.7em 0; padding: .3em 1.15em; border-left: 4px solid var(--accent); color: #475467; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { max-width: 100%; height: auto; border-radius: 5px; }
.entry-content figure { max-width: 100%; margin: 1.5em 0; }
.entry-content pre { max-width: 100%; overflow-x: auto; padding: 16px; border-radius: 7px; background: #f4f6f8; font-size: .9rem; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: .92em; }
.entry-content :not(pre) > code { background: #f2f4f7; border-radius: 3px; padding: .1em .3em; }
.entry-content table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1.3em 0; }
.entry-content th, .entry-content td { padding: 8px 13px; border: 1px solid var(--border); text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }
.entry-content .alignleft { float: left; max-width: 46%; margin: .3em 1.2em 1em 0; }
.entry-content .alignright { float: right; max-width: 46%; margin: .3em 0 1em 1.2em; }
.entry-content .aligncenter { display: block; margin-inline: auto; text-align: center; }
.entry-content .wp-block-image img { height: auto; }
.entry-content .wp-block-gallery { max-width: 100%; }
.entry-content .wp-block-embed { max-width: 100%; }
.entry-content .wp-block-embed__wrapper { position: relative; }
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed.is-type-video iframe { width: 100%; height: 100%; position: absolute; inset: 0; }
.entry-content .alignwide { max-width: 100%; }
.post-tags { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 28px; color: var(--muted); font-size: .9rem; }
.post-tags span { font-weight: 700; }
.post-tags a { text-decoration: none; }
.post-adjacent { border-top: 1px solid var(--border); margin-top: 25px; padding-top: 21px; display: flex; justify-content: space-between; gap: 28px; font-size: .88rem; font-weight: 650; }
.post-adjacent > div { flex: 1; }
.post-adjacent > div:last-child { text-align: right; }
.post-adjacent a { text-decoration: none; }
.content-pages { margin-top: 24px; }
.comments-area { margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--border); }
.comments-area h2, .comments-area #reply-title { font-size: 1.36rem; }
.comment-list { padding-left: 26px; }
.comment-list li { margin-bottom: 22px; }
.comment-list .children { padding-left: 24px; }
.comment-list .comment-body { padding: 15px; border: 1px solid var(--border); border-radius: 8px; }
.comment-meta { font-size: .88rem; }
.comment-content { margin-top: 8px; }
.comment-content p { margin-bottom: .7em; }
.comment-respond { margin-top: 30px; }
.comment-form label, .search-form label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: 6px; }
.comment-form input:not([type=submit]), .comment-form textarea, .search-form input { width: 100%; min-width: 0; max-width: 100%; padding: 10px 12px; border: 1px solid #bfc6d2; border-radius: 6px; background: #fff; color: var(--text); }
.comment-form textarea { min-height: 140px; }
button, input[type=submit] { padding: 10px 17px; background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 6px; font-weight: 650; cursor: pointer; }
button:hover, input[type=submit]:hover { background: var(--accent-hover); }
.search-form { max-width: 530px; margin: 22px 0; }
.search-controls { display: flex; gap: 8px; }
.search-controls button { flex: none; }
.not-found { padding-block: 35px 65px; }
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .875rem; }
.footer-inner { padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
/* WordPress bileşen uyumluluğu */
.sticky { position: relative; }
.bypostauthor { position: relative; }
.wp-caption, .gallery-caption { max-width: 100%; }
.alignnone { max-width: 100%; }
@media (min-width: 761px) {
  .navigation-dropdown .primary-nav { display: block !important; }
}
@media (max-width: 760px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  .header-inner { min-height: 66px; gap: 16px; }
  .navigation-dropdown { position: relative; margin-left: auto; }
  .navigation-dropdown summary { display: inline-flex; padding: 8px 13px; border: 1px solid var(--border); border-radius: 6px; font-size: .9rem; font-weight: 650; user-select: none; }
  .navigation-dropdown:not([open]) .primary-nav { display: none; }
  .primary-nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 15; width: min(310px, calc(100vw - 30px)); padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgb(20 33 51 / 10%); }
  .menu { display: block; }
  .menu a { display: block; padding: 9px 0; }
  .site-main { padding-block: 30px 46px; }
  .post-card { grid-template-columns: 185px minmax(0, 1fr); gap: 18px; padding-block: 22px; }
  .card-title { margin-top: 6px; }
  .entry-content { font-size: 1.03rem; }
}
@media (max-width: 550px) {
  .post-card { grid-template-columns: 1fr; gap: 14px; }
  .card-thumb { width: 100%; }
  .card-title { font-size: 1.27rem; }
  .article-title { font-size: 2rem; }
  .entry-content { font-size: 1rem; line-height: 1.84; }
  .footer-inner { align-items: flex-start; }
  .post-adjacent { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
