/*
 * Antalya Haber - Ana Stil Dosyası
 * Mobil öncelikli, minimum CSS, kütüphanesiz (madde 8, 12, 24).
 */

:root {
	--ah-accent: #c0392b;
	--ah-text: #1a1a1a;
	--ah-muted: #6b6b6b;
	--ah-bg: #ffffff;
	--ah-bg-alt: #f5f5f5;
	--ah-border: #e2e2e2;
	--ah-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ah-container-width: 1200px;
	--ah-radius: 6px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

/* Mobilde içeriğin ekran kenarına taşmasını önleyen genel güvenlik ağı. */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, embed, object, table {
	max-width: 100%;
	height: auto;
}
pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.alignwide, .alignfull { max-width: 100%; }

body {
	margin: 0;
	font-family: var(--ah-font);
	color: var(--ah-text);
	background: var(--ah-bg);
	line-height: 1.55;
	font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
}

.ah-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--ah-accent);
	color: #fff;
	padding: 10px 16px;
	z-index: 1000;
}
.ah-skip-link:focus { left: 0; }

.ah-container {
	width: 100%;
	max-width: var(--ah-container-width);
	margin: 0 auto;
	padding: 0 16px;
}

/* ---------- Header ---------- */
.ah-site-header { background: var(--ah-bg); }
.ah-site-header__branding-row {
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.ah-site-header__branding { flex: 1; text-align: center; }
/* Mobilde hamburger butonuyla görsel dengeyi sağlamak için sağda görünmez
   bir boşluk (spacer) - logo tam ortada kalsın diye hamburger'ın genişliği
   kadar yer kaplar. */
.ah-site-header__branding-spacer { display: block; width: 44px; flex-shrink: 0; }
.ah-site-header__nav-row { background: var(--ah-bg-alt); border-top: 1px solid var(--ah-border); border-bottom: 3px solid var(--ah-accent); }
.ah-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px 16px;
	min-height: 48px;
}
.ah-site-title { font-size: 1.4rem; font-weight: 800; color: var(--ah-accent); }
.ah-site-logo, .ah-footer-logo { display: inline-block; text-decoration: none; }
.ah-site-logo img, .ah-footer-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 200px;
	max-height: 40px;
}
@media (min-width: 600px) {
	.ah-site-logo img, .ah-footer-logo img { max-width: 260px; max-height: 48px; }
}
@media (min-width: 900px) {
	.ah-site-logo img, .ah-footer-logo img { max-width: 320px; max-height: 56px; }
}
.ah-logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.ah-logo-text__main { color: var(--ah-text); }
.ah-logo-text__tld { color: var(--ah-accent); }
.ah-primary-nav { display: none; }
.ah-primary-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.ah-primary-nav__list a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 4px;
	font-weight: 600;
	font-size: .92rem;
	color: var(--ah-text);
}
.ah-primary-nav__list a:hover { background: var(--ah-bg); color: var(--ah-accent); text-decoration: none; }
.ah-header-search { display: none; }
.ah-mobile-menu-toggle {
	position: relative;
	background: var(--ah-bg);
	border: 1px solid var(--ah-border);
	border-radius: 6px;
	cursor: pointer;
	width: 44px;
	height: 40px;
	flex-shrink: 0;
}
/* 3 çizgili "hamburger" ikonu: orta çizgi .ah-mobile-menu-toggle__bar span'i,
   üst/alt çizgiler ::before/::after ile üretilir. Koyu renk (var(--ah-text))
   kullanılır ki açık renkli header üzerinde net görünsün. */
.ah-mobile-menu-toggle__bar,
.ah-mobile-menu-toggle__bar::before,
.ah-mobile-menu-toggle__bar::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 20px;
	height: 2px;
	background: var(--ah-text);
	border-radius: 2px;
	transform: translateX(-50%);
}
.ah-mobile-menu-toggle__bar { top: 50%; margin-top: -1px; }
.ah-mobile-menu-toggle__bar::before { top: -7px; }
.ah-mobile-menu-toggle__bar::after { top: 7px; }
.ah-mobile-nav[hidden] { display: none; }
.ah-mobile-nav__list { list-style: none; margin: 0; padding: 8px 16px 16px; background: var(--ah-bg); }
.ah-mobile-nav__list li { border-bottom: 1px solid var(--ah-border); }
.ah-mobile-nav__list a { display: block; padding: 10px 0; }

@media (min-width: 900px) {
	.ah-primary-nav { display: block; }
	.ah-header-search { display: block; }
	.ah-mobile-menu-toggle { display: none; }
	.ah-mobile-nav { display: none !important; }
	.ah-site-header__branding-spacer { display: none; }
}

/* ---------- Breaking news (tek satır, tek haber, fade ile döner) ---------- */
.ah-breaking-news { background: var(--ah-accent); color: #fff; overflow: hidden; }
.ah-breaking-news__inner { display: flex; align-items: center; gap: 12px; padding: 8px 16px; }
.ah-breaking-news__label { font-weight: 800; white-space: nowrap; font-size: .8rem; flex-shrink: 0; }
.ah-breaking-news__list {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1 1 0;
	min-width: 0;
	height: 1.4em;
	line-height: 1.4em;
	overflow: hidden;
}
.ah-breaking-news__list li {
	position: absolute;
	top: 0; left: 0; right: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ah-breaking-news__list li.is-active { opacity: 1; visibility: visible; }
.ah-breaking-news__list a { color: #fff; font-size: .9rem; }

/* ---------- Breadcrumb ---------- */
.ah-breadcrumb { font-size: .82rem; color: var(--ah-muted); margin: 12px 0; }
.ah-breadcrumb a { color: var(--ah-muted); }

/* ---------- Grid / Cards ---------- */
.ah-news-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
	margin: 16px 0;
}
@media (min-width: 640px) { .ah-news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ah-news-grid { grid-template-columns: repeat(3, 1fr); } }

.ah-news-card { background: var(--ah-bg); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); overflow: hidden; }
.ah-news-card__thumb { display: block; overflow: hidden; }
.ah-news-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.ah-news-card:hover .ah-news-card__thumb img { transform: scale(1.04); }
.ah-news-card__body { padding: 12px 14px; }
.ah-news-card__cat { color: var(--ah-accent); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.ah-news-card__title { font-size: 1.05rem; margin: 6px 0; line-height: 1.35; }
.ah-news-card__excerpt { color: var(--ah-muted); font-size: .9rem; margin: 0 0 8px; }
.ah-news-card__date { color: var(--ah-muted); font-size: .78rem; }

.ah-home-section { padding: 24px 0; border-top: 1px solid var(--ah-border); }
.ah-home-section__title { font-size: 1.3rem; border-left: 4px solid var(--ah-accent); padding-left: 10px; margin-bottom: 4px; }

/* ---------- Headline (manşet) ---------- */
.ah-headline { padding: 16px 0; }
.ah-headline__article { display: grid; gap: 14px; }
.ah-headline__thumb img { width: 100%; height: auto; display: block; border-radius: var(--ah-radius); }
.ah-headline__title { font-size: 1.6rem; line-height: 1.25; margin: 10px 0 8px; }
.ah-headline__excerpt { color: var(--ah-muted); }
@media (min-width: 900px) {
	.ah-headline__article { grid-template-columns: 1.4fr 1fr; align-items: center; }
}

/* ---------- Single haber ---------- */
.ah-single-news__header { padding-top: 16px; }
.ah-single-news__category { display: inline-block; color: #fff; background: var(--ah-accent); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 3px; text-transform: uppercase; }
.ah-single-news__title { font-size: 1.8rem; line-height: 1.3; margin: 10px 0; }
.ah-single-news__summary { font-size: 1.05rem; color: var(--ah-muted); }
.ah-single-news__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ah-muted); font-size: .85rem; margin-bottom: 14px; }
.ah-single-news__featured-image img { width: 100%; height: auto; display: block; border-radius: var(--ah-radius); }

.ah-single-news__layout { display: grid; gap: 24px; padding-top: 20px; padding-bottom: 40px; }
.ah-single-news__content-wrap { min-width: 0; }

/* ---------- Sonsuz kaydırma (infinite scroll) ---------- */
.ah-infinite-sentinel { height: 1px; }
.ah-infinite-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 20px 0;
	color: var(--ah-muted);
	font-size: .9rem;
}
.ah-infinite-loading[hidden] { display: none; }
.ah-infinite-loading__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--ah-border);
	border-top-color: var(--ah-accent);
	border-radius: 50%;
	animation: ah-spin .7s linear infinite;
}
@keyframes ah-spin {
	to { transform: rotate(360deg); }
}

/* Sürekli okuma ile eklenen bir sonraki haberi görsel olarak ayır. */
.ah-single-news__content-wrap .ah-single-news + .ah-single-news {
	border-top: 4px solid var(--ah-border);
	margin-top: 40px;
	padding-top: 6px;
}
.ah-single-news__content-wrap .ah-single-news + .ah-single-news .ah-single-news__header {
	position: relative;
}
.ah-single-news__content-wrap .ah-single-news + .ah-single-news .ah-single-news__header::before {
	content: "Sıradaki Haber";
	display: inline-block;
	background: var(--ah-accent);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	padding: 4px 12px;
	border-radius: 4px;
	margin-bottom: 12px;
}
@media (min-width: 960px) {
	.ah-single-news__layout { grid-template-columns: 2.2fr 1fr; align-items: start; }
	/* Sidebar (Son Haberler/Çok Okunanlar) sonsuz kaydırmayla sonraki
	   haberlere geçildiğinde de ekranda kalsın diye sabitlenir (sticky).
	   NOT: overflow-y/max-height KULLANILMAZ - bu çirkin bir native
	   tarayıcı scrollbar'ı oluşturur. Sadece "sticky" yeterlidir; içerik
	   viewport'tan uzunsa tarayıcı bunu kendiliğinden, scrollbar
	   göstermeden doğal şekilde yönetir. */
	.ah-single-news__sidebar-col {
		position: sticky;
		top: 20px;
	}
}

.ah-single-news__content { font-size: 1.08rem; line-height: 1.75; }
.ah-single-news__content p { margin: 0 0 1.2em; }
.ah-single-news__content img { border-radius: 6px; margin: 1em 0; }

/* ---------- Haber etiketleri ---------- */
.ah-post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0; padding-top: 14px; border-top: 1px solid var(--ah-border); }
.ah-post-tags__label { font-weight: 700; font-size: .88rem; color: var(--ah-muted); }
.ah-post-tags__list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.ah-post-tags__list a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 16px;
	background: var(--ah-bg-alt);
	border: 1px solid var(--ah-border);
	font-size: .82rem;
	color: var(--ah-text);
}
.ah-post-tags__list a:hover { background: var(--ah-accent); color: #fff; border-color: var(--ah-accent); text-decoration: none; }

/* ---------- Paylaşım (madde 6, 7) ---------- */
.ah-related-news__title, .ah-sidebar-latest__title { font-size: 1rem; margin: 18px 0 10px; }

.ah-share { padding: 14px 0; }
.ah-share__heading { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.ah-share__list {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}
.ah-share__list li { flex: 1 1 0; min-width: 0; margin: 0; }
.ah-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	padding: 9px 4px;
	border-radius: 20px;
	font-size: .8rem;
	font-weight: 600;
	color: #fff;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ah-share__btn svg { flex-shrink: 0; }
.ah-share__btn--facebook { background: #1877f2; }
.ah-share__btn--x { background: #000; }
.ah-share__btn--whatsapp { background: #25d366; }
.ah-share__btn--telegram { background: #29a9eb; }
.ah-share__btn:hover { opacity: .85; text-decoration: none; }

/* Çok dar ekranlarda (< 360px) 4 buton tek satırda daha rahat sığsın diye
   sadece ikon kalır, "Paylaş" yazısı gizlenir. */
@media (max-width: 360px) {
	.ah-share__btn span { display: none; }
	.ah-share__btn { padding: 10px 4px; }
}

/* ---------- Bizi Takip Edin (madde 7) - belirgin, marka renkli, boşluksuz tek satır ---------- */
.ah-follow-us { margin: 26px 0; padding: 20px; background: var(--ah-bg-alt); border-radius: var(--ah-radius); border: 1px solid var(--ah-border); }
.ah-follow-us__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.ah-follow-us__subtitle { color: var(--ah-muted); font-size: .92rem; margin: 0 0 14px; }
.ah-follow-us__list {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
	width: 100%;
	border-radius: 4px;
	overflow: hidden;
}
.ah-follow-us__list li { flex: 1 1 0; min-width: 0; margin: 0; }
.ah-follow-us__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 46px;
	padding: 10px 4px;
	font-size: .85rem;
	font-weight: 700;
	color: #fff;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ah-follow-us__btn:hover { opacity: .9; text-decoration: none; }
.ah-follow-us__btn--facebook { background: #1877f2; }
.ah-follow-us__btn--instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.ah-follow-us__btn--x { background: #000; }
.ah-follow-us__btn--youtube { background: #ff0000; }
.ah-follow-us__btn--telegram { background: #29a9eb; }
.ah-follow-us__btn--tiktok { background: #010101; }

/* ---------- Mobil sabit paylaşım toolbar'ı (madde 6, 7) ---------- */
.ah-mobile-share-bar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 500;
	display: flex;
	box-shadow: 0 -2px 8px rgba(0,0,0,.15);
}
.ah-mobile-share-bar__btn {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 12px 4px;
	color: #fff;
	font-size: .82rem;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ah-mobile-share-bar__btn svg { flex-shrink: 0; }
.ah-mobile-share-bar__btn--facebook { background: #1877f2; }
.ah-mobile-share-bar__btn--x { background: #000; }
.ah-mobile-share-bar__btn--whatsapp { background: #25d366; }
.ah-mobile-share-bar__btn--telegram { background: #29a9eb; }
.ah-mobile-share-bar__btn:hover { text-decoration: none; opacity: .9; }

/* Sabit toolbar içerik altında kalmasın diye tekil haber sayfasında alt boşluk. */
.single-post .ah-main-content { padding-bottom: 56px; }

@media (min-width: 900px) {
	/* Masaüstünde sabit alt toolbar'a gerek yok, üst/alt paylaşım blokları zaten görünür. */
	.ah-mobile-share-bar { display: none; }
	.single-post .ah-main-content { padding-bottom: 0; }
}

/* ---------- Sidebar / related ---------- */
.ah-sidebar-latest__list { list-style: none; margin: 0; padding: 0; }
.ah-sidebar-latest__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ah-border); }
.ah-sidebar-latest__item:last-child { border-bottom: none; }
.ah-sidebar-latest__rank { flex: 0 0 auto; font-size: 1.1rem; font-weight: 800; color: var(--ah-accent); width: 22px; text-align: center; }
.ah-sidebar-latest__subtitle { color: var(--ah-muted); font-size: .78rem; margin: -4px 0 8px; }
.ah-home-section__subtitle { color: var(--ah-muted); font-size: .85rem; margin: 0 0 10px; }
.ah-sidebar-latest__thumb { flex: 0 0 auto; display: block; overflow: hidden; border-radius: 6px; }
.ah-sidebar-latest__thumb img { width: 96px; height: 68px; object-fit: cover; display: block; border-radius: 6px; transition: transform .25s ease; }
.ah-sidebar-latest__item:hover .ah-sidebar-latest__thumb img { transform: scale(1.06); }
.ah-sidebar-latest__body { min-width: 0; }
.ah-sidebar-latest__body a { font-size: .92rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; line-height: 1.3; }
.ah-sidebar-latest__body time { font-size: .75rem; color: var(--ah-muted); }
.ah-sidebar-popular { margin-top: 24px; }

/* ---------- Reklam alanları ---------- */
.ah-ad-slot { text-align: center; margin: 16px auto; overflow: hidden; }

/* ---------- Footer ---------- */
.ah-site-footer { background: #111; color: #ddd; margin-top: 40px; padding-top: 30px; }
.ah-site-footer__branding { text-align: center; padding-bottom: 20px; }
.ah-site-footer__branding .ah-logo-text__main { color: #fff; }
.ah-site-footer__branding .ah-logo-text__tld { color: var(--ah-accent); }
.ah-site-footer__widgets { display: grid; gap: 20px; grid-template-columns: 1fr; padding-bottom: 20px; }
@media (min-width: 700px) { .ah-site-footer__widgets { grid-template-columns: repeat(4, 1fr); } }
.ah-footer-title { font-size: .95rem; color: #fff; }
/* Footer'daki "Bizi Takip Edin" bloğu koyu zeminde de belirgin kalsın diye
   .ah-follow-us kutu arka planı burada şeffaflaştırılır; butonlar aynı
   canlı marka renkleriyle kalır (madde 7 - takip etmenin önemi). */
.ah-site-footer .ah-follow-us { background: transparent; border: none; padding: 0; }
.ah-site-footer .ah-follow-us__subtitle { color: #aaa; }
.ah-footer-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 0; margin: 0; border-top: 1px solid #333; }
.ah-site-footer__bottom { padding-top: 16px; padding-bottom: 24px; font-size: .82rem; color: #999; border-top: 1px solid #333; }

/* ---------- Form ---------- */
.ah-search-form { display: flex; }
.ah-search-form__input { flex: 1; padding: 8px 10px; border: 1px solid var(--ah-border); border-radius: 4px 0 0 4px; }
.ah-search-form__submit { border: 1px solid var(--ah-border); border-left: none; background: var(--ah-bg-alt); border-radius: 0 4px 4px 0; padding: 0 12px; cursor: pointer; }

/* ---------- Künye sayfası ---------- */
.ah-masthead-box { background: var(--ah-bg-alt); border: 1px solid var(--ah-border); border-radius: var(--ah-radius); padding: 20px; margin: 20px 0; }
.ah-masthead-box__row { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0; border-bottom: 1px solid var(--ah-border); }
.ah-masthead-box__row:last-child { border-bottom: none; }
.ah-masthead-box__row dt { font-weight: 700; min-width: 220px; margin: 0; }
.ah-masthead-box__row dd { margin: 0; color: var(--ah-muted); }
.ah-masthead-box__empty { color: var(--ah-muted); font-size: .9rem; margin: 0; }
.ah-masthead-box__list { margin: 0; }

/* ---------- İletişim sayfası ---------- */
.ah-contact-layout { display: grid; gap: 30px; padding: 10px 0 40px; }
@media (min-width: 900px) { .ah-contact-layout { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.ah-contact-info-list { list-style: none; margin: 20px 0 0; padding: 0; }
.ah-contact-info-list li { padding: 10px 0; border-bottom: 1px solid var(--ah-border); }
.ah-contact-form__honeypot { position: absolute; left: -9999px; }
.ah-contact-form__row { margin: 0 0 16px; }
.ah-contact-form__row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.ah-contact-form__row input, .ah-contact-form__row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--ah-border);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
}
.ah-contact-form__submit {
	background: var(--ah-accent);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}
.ah-contact-form__submit:hover { opacity: .9; }
.ah-contact-notice { padding: 12px 16px; border-radius: 4px; margin-bottom: 18px; font-size: .95rem; }
.ah-contact-notice--success { background: #e6f9ee; color: #1a7f4b; border: 1px solid #b6ead0; }
.ah-contact-notice--error { background: #fdeaea; color: #b23131; border: 1px solid #f5c2c2; }
