/*
Theme Name: Haber224
Theme URI: https://www.haber224.com
Author: New Way DMA
Author URI: https://www.newwaydma.com
Description: Haber224 için eski İngiliz gazetelerinden esinlenen butik haber teması. Manşet slider'ı, sade "Haber Ekle" paneli ve Haber Editörü rolü içerir.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: haber224
*/

:root {
	--paper: #F4EFE3;
	--ink: #1A1714;
	--muted: #5A5246;
	--text2: #3A342C;
	--rule2: #C9BFA9;
	--dot: #8C8372;
	--red: #8B1E1E;
	--head: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--black: 'UnifrakturMaguntia', 'Old English Text MT', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus-visible { color: var(--red); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
button { font: inherit; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; color: var(--paper); }
.muted { color: var(--muted); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Görsel ve yer tutucu */
.img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { display: block; width: 100%; height: 100%; background-color: #cfc6b2; background-image: radial-gradient(#7d7563 1px, transparent 1.3px); background-size: 6px 6px; }

/* Üst şerit */
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.tb-search { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; min-height: 28px; }
.tb-search:hover { color: var(--red); }

/* Gazete başlığı */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 14px; }
.ear { flex: 0 1 200px; border: 1px solid var(--ink); padding: 10px 12px; font-size: 12px; line-height: 1.45; text-align: center; color: var(--muted); }
.ear a { color: var(--muted); }
.ear-title { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.logo { flex: 1 1 auto; margin: 0; text-align: center; font-family: var(--black); font-weight: 400; font-size: clamp(46px, 9vw, 104px); line-height: 1; }
.logo a { color: var(--ink); text-decoration: none; }
.mbtn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; flex: 0 0 44px; }
.double-rule { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); height: 6px; }
.double-rule.spaced { margin-top: 40px; }

/* Arama */
.searchbar { padding: 12px 0; border-top: 1px solid var(--ink); }
.search-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.search-form input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--ink); background: #FBF8F1; font: inherit; font-size: 16px; color: var(--ink); }
.search-form button { height: 44px; padding: 0 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }

/* Kategori menüsü */
.catnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding: 10px 0; border-bottom: 1px solid var(--ink); font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.catnav a[aria-current="page"] { color: var(--red); }
.mobile-menu { border-bottom: 1px solid var(--ink); font-family: var(--head); font-weight: 600; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; }
.mobile-menu a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px dotted var(--dot); }
.mobile-menu a::after { content: '›'; }

/* Bölüm başlıkları */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 14px; }
.sec-label-inline, .sec-label { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.sec-label { display: block; border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-bottom: 4px; }
.counter { font-size: 13px; color: var(--muted); font-style: italic; }
.kicker { display: inline-block; font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
a.kicker:hover { color: var(--ink); }
.empty-note { border: 1px dashed var(--dot); padding: 28px; color: var(--muted); }

/* Manşet + son haberler */
.site-main { padding-top: 28px; padding-bottom: 8px; }
.lead-row { display: flex; flex-wrap: wrap; gap: 32px; }
.slider { flex: 999 1 600px; min-width: 0; }
.slides { position: relative; }
.slide-img { display: block; aspect-ratio: 16 / 9; border: 1px solid var(--ink); overflow: hidden; background: #e5dece; }
.slide-text { padding-top: 16px; }
.slide-title { margin: 6px 0 10px; font-family: var(--head); font-weight: 800; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
.spot { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text2); }
.slider-nav { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.sbtn { pointer-events: auto; width: 44px; height: 44px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sbtn:hover { background: var(--ink); color: var(--paper); }
.dots { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.dot { width: 44px; height: 44px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 15px; }
.dot.is-active { background: var(--ink); color: var(--paper); }
.slide.is-active { animation: h224fade .45s ease; }
@keyframes h224fade { from { opacity: .35; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .slide.is-active { animation: none; } }

.latest { flex: 1 1 280px; min-width: 0; border-left: 1px solid var(--ink); padding-left: 28px; }
.latest-item { display: block; padding: 14px 0; border-bottom: 1px dotted var(--dot); }
.latest-item:hover { text-decoration: none; }
.latest-item:hover .latest-title { color: var(--red); }
.latest-meta { display: block; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.latest-title { display: block; font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.25; margin-top: 4px; }

/* Kartlar */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 24px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 0 20px; border-right: 1px solid var(--rule2); margin-bottom: 24px; }
.card-grid > .card:first-child, .card-grid.three > .card:nth-child(3n+1), .card-grid:not(.three) > .card:nth-child(4n+1) { padding-left: 0; }
.card-grid:not(.three) > .card:nth-child(4n), .card-grid.three > .card:nth-child(3n) { border-right: 0; padding-right: 0; }
.card-img { display: block; aspect-ratio: 4 / 3; border: 1px solid var(--ink); overflow: hidden; margin-bottom: 12px; background: #e5dece; }
.card-title { margin: 6px 0 8px; font-family: var(--head); font-weight: 800; font-size: 22px; line-height: 1.15; }
.card-spot { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text2); }

/* Kategori blokları */
.cat-row { display: flex; flex-wrap: wrap; gap: 32px; border-top: 1px solid var(--ink); padding-top: 24px; margin-bottom: 32px; }
.cat-lead { flex: 2 1 520px; min-width: 0; }
.cat-list { flex: 1 1 280px; min-width: 0; }
.cat-title { margin: 0 0 18px; font-family: var(--head); font-weight: 800; font-size: 28px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.cat-list .cat-title { margin-bottom: 6px; }
.cat-lead-body { display: flex; flex-wrap: wrap; gap: 24px; }
.cat-lead-img { flex: 1 1 260px; aspect-ratio: 4 / 3; border: 1px solid var(--ink); overflow: hidden; background: #e5dece; }
.cat-lead-text { flex: 1 1 240px; }
.cat-lead-text h3 { margin: 0 0 10px; font-family: var(--head); font-weight: 800; font-size: 28px; line-height: 1.12; }
.cat-lead-text p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text2); }
.cat-list-item { display: block; padding: 12px 0; border-bottom: 1px dotted var(--dot); font-family: var(--head); font-weight: 600; font-size: 18px; line-height: 1.3; }

/* Haber detay */
.single-grid { display: flex; flex-wrap: wrap; gap: 40px; }
.h224-article { flex: 999 1 640px; min-width: 0; max-width: 780px; }
.page-single { margin: 0 auto; }
.single-title { margin: 8px 0 14px; font-family: var(--head); font-weight: 800; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.07; }
.single-spot { margin: 0 0 16px; font-size: 21px; line-height: 1.5; color: var(--text2); font-style: italic; }
.single-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; margin-bottom: 22px; }
.single-figure { margin: 0 0 24px; }
.single-figure .img { height: auto; border: 1px solid var(--ink); }
.single-figure figcaption, .entry figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); font-style: italic; padding-top: 6px; }
.entry { font-size: 19px; line-height: 1.7; }
.entry > p:first-of-type::first-letter { float: left; font-family: var(--head); font-weight: 800; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; }
.entry h2, .entry h3 { font-family: var(--head); font-weight: 800; line-height: 1.2; margin: 1.4em 0 .5em; }
.entry h2 { font-size: 28px; } .entry h3 { font-size: 23px; }
.entry a { color: var(--red); text-decoration: underline; }
.entry blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--ink); font-family: var(--head); font-style: italic; font-size: 23px; line-height: 1.4; }
.entry img { border: 1px solid var(--ink); }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry .alignleft { float: left; margin: 6px 20px 12px 0; }
.entry .alignright { float: right; margin: 6px 0 12px 20px; }
.entry hr { border: 0; border-top: 1px solid var(--ink); margin: 2em 0; }
.entry .wp-caption { max-width: 100%; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 3px solid var(--ink); padding-top: 14px; margin-top: 32px; }
.share-label { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-right: 6px; }
.share a, .share button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--paper); }
.related { margin-top: 40px; }
.single-grid .latest { flex: 1 1 280px; align-self: flex-start; }

/* Yorumlar ve formlar */
.comments { margin-top: 40px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .comment { border-bottom: 1px dotted var(--dot); padding: 16px 0; }
.comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 24px; border-left: 1px solid var(--rule2); }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-author { font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); }
.comment-author .says { display: none; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: 17px; line-height: 1.6; }
.comment-content p { margin: 8px 0; }
.reply a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.comment-awaiting-moderation { font-size: 13px; font-style: italic; color: var(--red); }
.comment-respond, .h224-form-wrap { margin-top: 24px; border-top: 3px solid var(--ink); padding-top: 14px; }
.comment-reply-title, .h224-form-wrap h3 { font-family: var(--head); font-weight: 800; font-size: 24px; margin: 0 0 8px; }
.comment-reply-title small { font-size: 14px; margin-left: 10px; }
.form-note { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.form-ok, .form-err { padding: 12px 14px; border: 1px solid var(--ink); font-size: 15px; margin: 12px 0; }
.form-ok { background: #E8E4D2; }
.form-err { background: #F3DEDA; border-color: var(--red); color: #5f1414; }
.comment-form p, .h224-contact p { margin: 0 0 14px; }
.comment-form label, .h224-contact label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form textarea,
.h224-contact input[type=text], .h224-contact input[type=email], .h224-contact input[type=tel], .h224-contact textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--ink); background: #FBF8F1; font: inherit; font-size: 16px; color: var(--ink); }
.comment-form-author, .comment-form-email { display: inline-block; width: calc(50% - 8px); vertical-align: top; }
.comment-form-author { margin-right: 12px !important; }
.comment-form-cookies-consent label, .f-check label { display: inline; font-weight: 400; }
.f-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.f-row > p { flex: 1 1 220px; }
.opt { font-weight: 400; color: var(--muted); }
.h224-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h224-recaptcha { margin: 4px 0 14px; min-height: 78px; }
.h224-submit { min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; font-family: var(--head); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.h224-submit:hover { background: var(--red); border-color: var(--red); }
@media (max-width: 700px) {
	.comment-form-author, .comment-form-email { display: block; width: 100%; margin-right: 0 !important; }
	.h224-recaptcha { transform: scale(.92); transform-origin: 0 0; }
}

/* Arşiv */
.archive-head { text-align: center; padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.archive-title { margin: 0; font-family: var(--head); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 1.1; }
.archive-desc { color: var(--muted); max-width: 640px; margin: 8px auto 0; }
.archive-search { margin-top: 16px; }
.list-lead { display: flex; flex-wrap: wrap; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.list-lead-img { flex: 3 1 480px; aspect-ratio: 16 / 9; border: 1px solid var(--ink); overflow: hidden; background: #e5dece; }
.list-lead-text { flex: 2 1 300px; }
.list-lead-text h2 { margin: 6px 0 12px; font-family: var(--head); font-weight: 800; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.list-lead-text .spot { margin-bottom: 12px; }
.pagination { margin: 16px 0 32px; text-align: center; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--ink); font-family: var(--head); font-weight: 600; }
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.notfound { max-width: 640px; margin: 40px auto 60px; text-align: center; }
.notfound .search-form { margin: 24px auto; }

/* Alt bilgi */
.site-foot { margin-top: 48px; padding-top: 20px; padding-bottom: 40px; border-top: 3px solid var(--ink); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.site-foot.wrap { border-top: 0; position: relative; }
.site-foot.wrap::before { content: ''; position: absolute; left: 32px; right: 32px; top: 0; border-top: 3px solid var(--ink); }
.foot-logo { font-family: var(--black); font-size: 44px; line-height: 1; }
.foot-brand .muted { font-size: 14px; margin-top: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.foot-links a { color: var(--muted); }

/* WordPress hizalama ve galeri */
.alignwide, .alignfull { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }

/* Tablet */
@media (max-width: 1000px) {
	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid > .card { padding: 0 20px !important; border-right: 1px solid var(--rule2) !important; }
	.card-grid > .card:nth-child(odd) { padding-left: 0 !important; }
	.card-grid > .card:nth-child(even) { padding-right: 0 !important; border-right: 0 !important; }
	.latest { border-left: 0; padding-left: 0; border-top: 3px solid var(--ink); padding-top: 6px; }
}

/* Mobil */
@media (max-width: 700px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.site-foot.wrap::before { left: 16px; right: 16px; }
	.topbar { justify-content: center; font-size: 11px; padding: 6px 0; }
	.topbar .tb-mid, .topbar .tb-right { display: none; }
	.masthead { padding: 8px 0; gap: 4px; margin: 0 -10px; }
	.ear { display: none; }
	.mbtn { display: inline-flex; }
	.logo { font-size: 46px; }
	.double-rule { height: 5px; }
	.catnav { flex-wrap: nowrap; justify-content: flex-start; gap: 20px; overflow-x: auto; white-space: nowrap; padding: 0; font-size: 13px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.catnav::-webkit-scrollbar { display: none; }
	.catnav a { display: inline-flex; align-items: center; min-height: 44px; }
	.site-main { padding-top: 16px; }
	.lead-row { gap: 24px; }
	.slide-img, .slider-nav { aspect-ratio: 4 / 3; }
	.slider-nav { align-items: flex-end; justify-content: flex-start; gap: 8px; padding: 0 0 8px 8px; }
	.slide-text { padding-top: 12px; }
	.slide-title { font-size: 28px; line-height: 1.12; }
	.spot { font-size: 16px; }
	.dots { padding-top: 12px; }
	.dot { font-size: 14px; }
	.latest-title { font-size: 17px; }
	.card-grid, .card-grid.three { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
	.card-grid > .card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 12px; padding: 14px 0 !important; margin: 0; border-right: 0 !important; border-bottom: 1px solid var(--rule2); }
	.card-img { grid-row: 1 / span 3; height: 84px; aspect-ratio: auto; margin: 0; }
	.card .kicker { font-size: 11px; letter-spacing: .14em; }
	.card-title { font-size: 17px; line-height: 1.2; margin: 3px 0 0; }
	.card-spot { display: none; }
	.double-rule.spaced { margin-top: 28px; }
	.cat-row { gap: 24px; margin-bottom: 24px; }
	.cat-title { font-size: 24px; margin-bottom: 12px; }
	.cat-lead-body { gap: 10px; }
	.cat-lead-img { flex-basis: 100%; aspect-ratio: 16 / 9; }
	.cat-lead-text h3 { font-size: 22px; line-height: 1.15; }
	.cat-lead-text p { font-size: 15px; }
	.single-grid { gap: 28px; }
	.single-spot { font-size: 18px; }
	.entry { font-size: 18px; }
	.entry .alignleft, .entry .alignright { float: none; margin: 12px 0; }
	.list-lead { gap: 14px; }
	.site-foot { flex-direction: column; align-items: center; text-align: center; padding-bottom: 28px; }
	.foot-logo { font-size: 36px; }
	.foot-links { justify-content: center; }
}
