/*
Theme Name: Adliye Haber
Theme URI: http://www.adliyehaber.online/
Author: Adliye Haber
Description: Adliye Haber haber sitesi teması. Numaralı manşet, son dakika bandı, kategori manşetleri ve köşe yazarları şeridi içerir.
Version: 2.0.3
Requires at least: 6.0
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: adliyehaber
*/

:root {
	--ah-red: #d6262b;
	--ah-red-dark: #b11d22;
	--ah-blue: #0b8ad3;
	--ah-ink: #111;
	--ah-text: #222;
	--ah-muted: #8a8a8a;
	--ah-line: #e3e3e3;
	--ah-page: #e4e4e4;
	--ah-dark: #222;
	--ah-wrap: 1100px;
	--ah-font: "Roboto", "Segoe UI", Arial, sans-serif;
	--ah-cond: "Roboto Condensed", "Roboto", "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ah-page); color: var(--ah-text); font-family: var(--ah-font); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ah-red); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ah-ink); line-height: 1.25; margin: 0 0 .5em; font-family: var(--ah-cond); font-weight: 700; }
.ah-wrap { max-width: var(--ah-wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Başlık ---------- */
.ah-header { position: sticky; top: 0; z-index: 50; background: linear-gradient(90deg, var(--ah-red) 0%, var(--ah-red) 55%, #8b4a6e 78%, var(--ah-blue) 100%); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.admin-bar .ah-header { top: 32px; }
.ah-header__main { display: flex; align-items: center; gap: 24px; height: 74px; }
.ah-logo { display: inline-flex; align-items: center; background: #fff; padding: 4px 6px; flex: none; }
.ah-logo img { height: 42px; width: auto; }
.ah-logo__text { font-family: var(--ah-cond); font-weight: 700; font-size: 26px; color: var(--ah-ink); }
.ah-nav { flex: 1; min-width: 0; }
.ah-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.ah-nav ul::-webkit-scrollbar { display: none; }
.ah-nav li { flex: none; }
.ah-nav a { display: block; padding: 8px 7px; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.ah-nav a:hover, .ah-nav .current-menu-item > a, .ah-nav .current-category-ancestor > a { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.ah-nav .sub-menu { display: none; }
.ah-iconbtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff; padding: 8px 6px; }
.ah-iconbtn:hover { opacity: .85; }
.ah-iconbtn svg { width: 20px; height: 20px; }

/* Son dakika bandı */
.ah-subbar { background: var(--ah-dark); color: #fff; font-size: 14px; }
.ah-subbar .ah-wrap { display: flex; align-items: center; gap: 18px; height: 50px; }
.ah-subbar__clock svg { width: 16px; height: 16px; }
.ah-ticker { flex: 1; min-width: 0; overflow: hidden; }
.ah-ticker__track { display: flex; gap: 48px; white-space: nowrap; animation: ah-ticker 60s linear infinite; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.ah-ticker__track time { color: #fff; margin-right: 4px; }
.ah-ticker:hover .ah-ticker__track { animation-play-state: paused; }
@keyframes ah-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ah-subbar__tools { display: flex; align-items: center; gap: 12px; }
.ah-subbar__tools a, .ah-subbar__tools button { color: #fff; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; }
.ah-subbar__tools svg { width: 16px; height: 16px; }
.ah-subbar__date { font-weight: 700; white-space: nowrap; }

.ah-search { display: none; background: var(--ah-dark); padding: 0 0 12px; }
.ah-search.is-open { display: block; }
.ah-search form { display: flex; gap: 8px; }
.ah-search input[type="search"] { flex: 1; font: inherit; padding: 10px 12px; border: 0; }
.ah-btn { font: inherit; font-weight: 700; background: var(--ah-red); color: #fff; border: 0; padding: 10px 16px; cursor: pointer; display: inline-block; }
.ah-btn:hover { background: var(--ah-red-dark); color: #fff; }

/* Menü çekmecesi */
.ah-drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.ah-drawer.is-open { display: block; }
.ah-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.ah-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); background: #fff; padding: 20px; overflow-y: auto; }
.ah-drawer__panel ul { list-style: none; margin: 0; padding: 0; }
.ah-drawer__panel li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--ah-line); font-weight: 700; }
.ah-drawer__panel .sub-menu a { padding-left: 14px; font-weight: 500; }
.ah-drawer__close { float: right; color: var(--ah-ink); }

/* ---------- Genel ---------- */
.ah-main { padding: 12px 0 32px; }
.ah-box { background: #fff; padding: 16px 14px; margin-bottom: 16px; }
.ah-section { margin-bottom: 16px; }
.ah-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ah-section__title { font-family: var(--ah-cond); font-size: 18px; text-transform: uppercase; margin: 0; }
.ah-section__more { font-size: 13px; font-weight: 700; color: var(--ah-red); text-transform: uppercase; }
.ah-grid { display: grid; gap: 12px; }
.ah-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ah-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ah-grid--4 { grid-template-columns: repeat(4, 1fr); }

.ah-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #2b2b2b; }
.ah-media img { width: 100%; height: 100%; object-fit: cover; }
.ah-media__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #fff; padding: 20%; }
.ah-media__ph img { width: 100%; height: auto; object-fit: contain; opacity: .9; }
.ah-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--ah-red); color: #fff; font-family: var(--ah-cond); font-size: 13px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; line-height: 1.3; }

.ah-card { background: #fff; display: flex; flex-direction: column; }
.ah-card__body { padding: 12px 14px 14px; }
.ah-card__title { font-family: var(--ah-cond); font-size: 18px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ah-card__meta { font-size: 12px; color: var(--ah-muted); margin-top: 4px; }
.ah-card--upper .ah-card__title { text-transform: uppercase; font-size: 16px; }
.ah-card--row { flex-direction: row; gap: 12px; align-items: flex-start; }
.ah-card--row > a:first-child { flex: 0 0 140px; }
.ah-card--row .ah-card__body { padding: 0; }
.ah-card--row .ah-card__title { font-size: 17px; }
.ah-excerpt { color: #555; font-size: 15px; margin: 6px 0 0; }

/* ---------- Manşetler ---------- */
.ah-slider { position: relative; background: #000; overflow: hidden; margin-bottom: 10px; }
.ah-slide { display: none; position: relative; color: #fff; }
.ah-slide.is-active { display: block; }
.ah-slide:hover { color: #fff; }

/* Büyük manşet: solda siyah geçiş + başlık, sağda görsel */
.ah-slider--hero .ah-slide { height: 330px; }
.ah-slider--hero .ah-media { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; aspect-ratio: auto; }
.ah-slider--hero .ah-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #000 0, #000 45%, rgba(0, 0, 0, 0) 75%); }
.ah-slider--hero .ah-slide__caption { position: absolute; z-index: 2; left: 60px; top: 0; bottom: 0; width: 52%; display: flex; flex-direction: column; justify-content: center; }
.ah-slider--hero .ah-slide__badge { align-self: flex-start; background: var(--ah-red); font-family: var(--ah-cond); font-weight: 700; font-size: 13px; padding: 3px 8px; text-transform: uppercase; margin-bottom: 8px; }
.ah-slider--hero h2 { color: #fff; font-size: 36px; line-height: 1.12; text-transform: uppercase; margin: 0; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ah-slider--hero .ah-slider__dots { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; z-index: 3; }
.ah-slider--hero .ah-slider__dots button { width: 22px; height: 26px; }
.ah-sontab { position: absolute; z-index: 3; right: 12px; top: 30px; bottom: 30px; width: 30px; background: var(--ah-red); color: #fff; font-family: var(--ah-cond); font-weight: 700; font-size: 17px; letter-spacing: .02em; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; }

/* Numara düğmeleri (iki manşet tipi için ortak) */
.ah-slider__dots button { border: 0; cursor: pointer; font: inherit; font-family: var(--ah-cond); font-weight: 700; font-size: 15px; color: #fff; background: transparent; padding: 0; }
.ah-slider__dots button.is-active, .ah-slider__dots button:hover { background: var(--ah-red); }

/* Görsel manşet: tam görsel, alt ortada başlık, altında numara şeridi */
.ah-slider--image .ah-slide .ah-media { aspect-ratio: 16 / 8; }
.ah-slider--image .ah-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75) 0, rgba(0, 0, 0, 0) 45%); z-index: 1; }
.ah-slider--image .ah-slide__caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 18px; text-align: center; padding: 0 60px; }
.ah-slider--image h2 { color: #fff; font-size: 34px; text-transform: uppercase; margin: 0; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.ah-slider--image .ah-badge { left: auto; right: 14px; }
.ah-slider--image .ah-sontab { top: 60px; bottom: 90px; }
.ah-numbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; background: #111; padding: 10px 8px; }
.ah-numbar button { min-width: 32px; height: 32px; padding: 0 6px; }
.ah-box .ah-slider--image .ah-slide .ah-media { aspect-ratio: 16 / 10; }
.ah-box .ah-slider--image h2 { font-size: 24px; }
.ah-box .ah-slider { margin-bottom: 0; }

/* ---------- Kategori kutusu ---------- */
.ah-catbox { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.ah-catbox__list { display: grid; gap: 12px; align-content: start; }

/* ---------- Yazarlar ---------- */
.ah-writers { position: relative; }
.ah-writers__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ah-writers__track::-webkit-scrollbar { display: none; }
.ah-writer { flex: 0 0 calc((100% - 48px) / 5); scroll-snap-align: start; text-align: center; background: #fff; border: 1px solid var(--ah-line); padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; }
.ah-writer img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; }
.ah-writer__name { color: var(--ah-red); font-weight: 500; font-size: 15px; line-height: 1.35; }
.ah-writer__date { color: var(--ah-muted); font-size: 13px; margin: 6px 0; }
.ah-writer__title { color: var(--ah-ink); font-weight: 700; font-size: 15px; line-height: 1.35; }
.ah-writers__nav { display: flex; gap: 6px; }
.ah-writers__nav button { width: 32px; height: 32px; border: 0; background: var(--ah-red); color: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.ah-writers__nav button:hover { background: var(--ah-red-dark); }

/* ---------- İçerik + kenar ---------- */
.ah-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ah-sidebar .widget { background: #fff; padding: 14px; margin-bottom: 16px; }
.ah-sidebar .widget-title, .ah-sidebar h2 { font-family: var(--ah-cond); font-size: 16px; text-transform: uppercase; color: #fff; background: var(--ah-red); margin: -14px -14px 12px; padding: 10px 14px; }
.ah-sidebar ul, .ah-sidebar ol { list-style: none; margin: 0; padding: 0; }
.ah-sidebar li { padding: 9px 0; border-bottom: 1px solid var(--ah-line); }
.ah-sidebar li:last-child { border-bottom: 0; }
.ah-mostread li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-weight: 500; }
.ah-mostread li span { color: var(--ah-red); font-family: var(--ah-cond); font-weight: 700; font-size: 22px; line-height: 1.05; }

/* ---------- Haber detay ---------- */
.ah-article { background: #fff; padding: 22px; }
.ah-crumbs { font-size: 14px; color: var(--ah-muted); margin-bottom: 10px; }
.ah-crumbs a { color: var(--ah-red); font-weight: 700; }
.ah-article__title { font-size: 34px; margin-bottom: 10px; }
.ah-article__lead { font-size: 19px; font-weight: 500; color: #333; border-left: 4px solid var(--ah-red); padding-left: 14px; margin: 0 0 16px; }
.ah-article__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ah-muted); font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ah-line); margin-bottom: 18px; }
.ah-article__meta a { color: var(--ah-red); font-weight: 700; }
.ah-article__media { margin: 0 0 18px; }
.ah-article__content { font-size: 18px; line-height: 1.75; }
.ah-article__content h2 { font-size: 22px; margin-top: 1.2em; }
.ah-article__content a { color: var(--ah-red); text-decoration: underline; word-break: break-word; }
.ah-article__content img { margin: 10px auto; }
.ah-share { display: flex; gap: 8px; margin: 24px 0 0; flex-wrap: wrap; }
.ah-share a { padding: 8px 14px; color: #fff; font-weight: 700; font-size: 14px; }
.ah-share .x { background: #111; } .ah-share .fb { background: #1877f2; } .ah-share .wa { background: #25d366; } .ah-share .tg { background: #229ed9; }
.ah-share a:hover { opacity: .88; color: #fff; }
.ah-author-box { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: center; padding: 16px; background: #f4f4f4; margin: 0 0 20px; }
.ah-author-box img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.ah-author-box strong a { color: var(--ah-red); }

/* ---------- Arşiv ---------- */
.ah-archive { background: #fff; padding: 18px; }
.ah-archive__title { font-size: 24px; text-transform: uppercase; }
.ah-list { display: grid; gap: 18px; }
.ah-list .ah-card--row > a:first-child { flex-basis: 240px; }
.ah-list .ah-card--row .ah-card__title { font-size: 20px; }
.ah-pagination { margin-top: 24px; display: flex; gap: 4px; flex-wrap: wrap; }
.ah-pagination .page-numbers { padding: 7px 12px; background: #111; color: #fff; font-weight: 700; }
.ah-pagination .current, .ah-pagination a:hover { background: var(--ah-red); color: #fff; }
.ah-empty { padding: 40px; text-align: center; background: #fff; color: var(--ah-muted); }

/* ---------- Alt bilgi ---------- */
.ah-footer { background: #1b1b1b; color: #bbb; padding: 36px 0 0; font-size: 15px; }
.ah-footer a { color: #e6e6e6; }
.ah-footer a:hover { color: #fff; text-decoration: underline; }
.ah-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.ah-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; }
.ah-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.ah-footer li { padding: 3px 0; }
.ah-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 14px 0; font-size: 13px; }
.ah-totop { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; background: var(--ah-red); color: #fff; display: none; align-items: center; justify-content: center; font-size: 22px; }
.ah-totop.is-visible { display: flex; }
.ah-totop:hover { color: #fff; background: var(--ah-red-dark); }

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
	.ah-layout, .ah-catbox { grid-template-columns: 1fr; }
	.ah-writer { flex-basis: calc((100% - 24px) / 3); }
	.ah-slider--hero h2 { font-size: 28px; }
}
@media (max-width: 782px) {
	.admin-bar .ah-header { top: 0; position: relative; }
}
@media (max-width: 760px) {
	body { font-size: 15px; }
	.ah-header__main { height: 60px; gap: 12px; justify-content: space-between; }
	.ah-logo img { height: 32px; }
	.ah-nav { display: none; }
	.ah-subbar__date, .ah-subbar__social { display: none; }
	.ah-grid--2, .ah-grid--3 { grid-template-columns: 1fr; }
	.ah-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ah-card--upper .ah-card__title { font-size: 14px; }
	.ah-slider--hero .ah-slide { height: auto; }
	.ah-slider--hero .ah-media { position: relative; width: 100%; aspect-ratio: 16 / 9; }
	.ah-slider--hero .ah-slide::before { display: none; }
	.ah-slider--hero .ah-slide__caption { position: relative; left: 0; width: auto; padding: 12px 14px 16px 44px; background: #000; }
	.ah-slider--hero h2 { font-size: 21px; }
	.ah-slider--hero .ah-slider__dots { top: auto; bottom: 12px; transform: none; }
	.ah-sontab { display: none; }
	.ah-slider--image h2 { font-size: 20px; }
	.ah-slider--image .ah-slide__caption { padding: 0 14px; }
	.ah-writer { flex-basis: 70%; }
	.ah-article { padding: 16px; }
	.ah-article__title { font-size: 25px; }
	.ah-article__content { font-size: 17px; }
	.ah-list .ah-card--row > a:first-child { flex-basis: 120px; }
	.ah-list .ah-card--row .ah-card__title { font-size: 16px; }
	.ah-list .ah-excerpt { display: none; }
	.ah-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ah-ticker__track { animation: none; }
}
