/*
Theme Name: Ahmet Aydınlık Blog
Theme URI: https://ahmetaydinlik.com
Author: Ahmet Aydınlık
Description: Modern, hızlı ve reklam performansı odaklı blog teması. Google AdSense ve Admatic alanları yerleşiktir.
Version: 1.0.0
Text Domain: aydinlik
*/

:root {
	--ink: #0f172a;
	--ink-soft: #334155;
	--muted: #64748b;
	--line: #e6e9f0;
	--bg: #f6f7fb;
	--surface: #ffffff;
	--accent: #e11d48;
	--accent-dark: #be123c;
	--navy: #0b1224;
	--radius: 16px;
	--shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
	--shadow-hover: 0 22px 46px rgba(15, 23, 42, 0.13);
	--header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-soft);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }

.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 9999;
	background: #fff;
	padding: 10px 16px;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

/* ----------------------------- HEADER ---------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 4px 22px rgba(15, 23, 42, 0.04);
	transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12); }

.header-inner {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 28px;
}

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .custom-logo { max-height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.6px;
	color: var(--ink);
}
.brand-title::after {
	content: '';
	display: block;
	width: 34px;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
	margin-top: 6px;
}
.brand-tagline { font-size: 11px; color: var(--muted); margin-top: 5px; }

.main-nav { display: flex; align-items: center; }
.nav-list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-list li { position: relative; }
.nav-list > li > a {
	display: block;
	padding: 9px 13px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 650;
	color: var(--ink-soft);
	text-transform: uppercase;
	letter-spacing: .03em;
	transition: color .2s, background .2s;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a {
	color: var(--accent);
	background: rgba(225, 29, 72, .07);
}
.nav-list ul {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 200px;
	background: var(--surface);
	list-style: none;
	margin: 0;
	padding: 8px;
	border-radius: 12px;
	box-shadow: var(--shadow);
	border: 1px solid var(--line);
}
.nav-list li:hover > ul { display: block; }
.nav-list ul a { display: block; padding: 8px 12px; border-radius: 7px; font-size: 13px; }
.nav-list ul a:hover { background: var(--bg); color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	background: var(--surface);
	border-radius: 10px;
	color: var(--ink);
	transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--ink); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.menu-toggle { display: none; }
.menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	margin: 2px 0;
	transition: transform .25s, opacity .25s;
}

.search-panel {
	border-top: 1px solid var(--line);
	background: var(--surface);
	padding: 16px 0;
}
.search-panel .search-form { max-width: 620px; margin-inline: auto; }

.search-form { display: flex; gap: 8px; }
.search-field {
	flex: 1;
	padding: 12px 16px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--bg);
	color: var(--ink);
	font-size: 14px;
	outline: none;
}
.search-field:focus { border-color: var(--accent); background: #fff; }
.search-submit {
	width: 48px;
	border: 0;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	display: grid;
	place-items: center;
}
.search-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ----------------------------- HERO ------------------------------------ */
.hero { padding: 30px 0 8px; }
.section-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 750;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--accent);
	margin-bottom: 16px;
}
.section-kicker span { width: 26px; height: 2px; background: var(--accent); display: inline-block; }

.hero-slider {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: var(--shadow);
}
.hero-track { display: flex; transition: transform .65s cubic-bezier(.22, .8, .3, 1); }
.hero-slide {
	flex: 0 0 100%;
	position: relative;
	min-height: 430px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(9, 16, 36, .94) 0%, rgba(9, 16, 36, .76) 42%, rgba(9, 16, 36, .12) 100%);
}
.hero-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1e293b, #0b1224); }
.hero-body { position: relative; z-index: 2; padding: 54px 56px; max-width: 680px; color: #fff; }
.pill {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 5px 12px;
	border-radius: 6px;
}
.pill a { color: #fff; }
.hero-body h2 {
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.18;
	margin: 18px 0 12px;
	letter-spacing: -1px;
}
.hero-body h2 a:hover { color: #ffd9e2; }
.hero-body p { color: rgba(255, 255, 255, .78); font-size: 15px; margin: 0 0 18px; }
.hero-meta { display: flex; gap: 18px; font-size: 12px; color: rgba(255, 255, 255, .65); }
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, .35);
	background: rgba(9, 16, 36, .35);
	color: #fff;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	display: grid;
	place-items: center;
	backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow--prev { left: 18px; }
.hero-arrow--next { right: 18px; }
.hero-dots { position: absolute; bottom: 20px; right: 28px; z-index: 3; display: flex; gap: 8px; }
.hero-dots button {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .45);
}
.hero-dots button.active { background: var(--accent); width: 22px; border-radius: 6px; }

.tools-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 30px;
	padding-top: 44px;
}
.tool-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-tile {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tool-tile:hover { transform: translateY(-3px); border-color: #fecdd3; box-shadow: var(--shadow); }
.tile-icon, .fav-icon {
	flex: 0 0 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 9px;
	background: rgba(225, 29, 72, .08);
	color: var(--accent);
	font-size: 16px;
	font-weight: 700;
}
.tile-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.tile-text strong { font-size: 13px; color: var(--ink); }
.tile-text small { font-size: 11px; color: var(--muted); margin-top: 3px; }
.tile-arrow { margin-left: auto; color: #b6bfcc; font-size: 14px; }
.tool-tile:hover .tile-arrow { color: var(--accent); }

.favorite-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 8px 16px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
}
.favorite-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ink-soft);
	border-bottom: 1px dashed var(--line);
}
.favorite-link:last-child { border-bottom: 0; }
.favorite-link .fav-icon { flex-basis: 28px; height: 28px; font-size: 13px; }
.fav-arrow { margin-left: auto; color: #b6bfcc; }
.favorite-link:hover { color: var(--accent); padding-left: 4px; }

/* ----------------------------- LAYOUT ---------------------------------- */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
	padding-top: 42px;
	padding-bottom: 60px;
}
.content { min-width: 0; }
.sidebar { min-width: 0; }

.section-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}
.section-heading h2 {
	font-size: 22px;
	letter-spacing: -.4px;
	margin: 0;
	white-space: nowrap;
}
.section-heading-line { flex: 1; height: 1px; background: var(--line); }

/* ----------------------------- CARDS ----------------------------------- */
.post-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
.post-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow);
	transition: transform .28s ease, box-shadow .28s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e9edf4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .card-media img { transform: scale(1.05); }
.card-placeholder {
	position: relative;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	overflow: hidden;
	background:
		radial-gradient(circle at 22% 18%, rgba(225, 29, 72, .16), transparent 55%),
		linear-gradient(135deg, #16213d 0%, #0b1224 100%);
}
.card-placeholder::after {
	content: '';
	position: absolute;
	width: 220px;
	height: 220px;
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 50%;
	right: -60px;
	top: -80px;
}
.placeholder-monogram {
	font-size: 96px;
	line-height: 1;
	font-weight: 900;
	color: rgba(255, 255, 255, .14);
	letter-spacing: -6px;
}
.placeholder-brand {
	position: absolute;
	bottom: 14px;
	left: 16px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .18em;
	color: rgba(255, 255, 255, .55);
}
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pill--soft { background: rgba(225, 29, 72, .09); color: var(--accent); }
.pill--soft a { color: var(--accent); }
.card-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.card-title {
	font-size: 19px;
	line-height: 1.35;
	letter-spacing: -.3px;
	margin: 0 0 10px;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: 14px; margin: 0 0 18px; flex: 1; }
.read-more {
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
	align-self: flex-start;
}
.read-more span { display: inline-block; transition: transform .2s; }
.read-more:hover span { transform: translateX(5px); }

/* ----------------------------- ADS ------------------------------------- */
.ad-zone {
	position: relative;
	text-align: center;
	margin: 26px 0;
	min-height: 100px;
}
.ad-label {
	display: block;
	font-size: 9px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #a3acba;
	margin-bottom: 6px;
}
.ad-zone--header { margin: 18px auto 32px; min-height: 110px; }
.ad-zone--article_top, .ad-zone--article_inline, .ad-zone--article_bottom { margin: 34px 0; min-height: 120px; }
.ad-zone--sidebar { margin: 0 0 28px; min-height: 250px; }
.ad-zone--sticky { position: sticky; top: calc(var(--header-h) + 14px); }
.ad-zone--infeed { grid-column: 1 / -1; margin: 6px 0 14px; min-height: 230px; }
.ad-zone--footer { margin: 42px 0 10px; min-height: 220px; }
.ad-zone .adsbygoogle, .ad-zone .adm-ads-area { display: block; width: 100%; }

/* ----------------------------- PAGINATION ------------------------------ */
.pagination { margin: 44px 0 12px; }
.pagination .nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
}
.pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	font-size: 13px;
	font-weight: 700;
	color: var(--ink-soft);
	box-shadow: 0 3px 10px rgba(15, 23, 42, .03);
	transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.pagination .page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
}
.pagination .page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(225, 29, 72, .25);
}
.pagination .page-numbers.dots { border-color: transparent; background: transparent; box-shadow: none; cursor: default; }
.pagination .page-numbers.dots:hover { transform: none; color: var(--ink-soft); }
.pagination .prev, .pagination .next { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .prev:hover, .pagination .next:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ----------------------------- BREADCRUMBS ----------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: #cbd2dd; }
.breadcrumbs .current { color: var(--ink); }

/* ----------------------------- ARTICLE --------------------------------- */
.article {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 42px 48px 48px;
}
.article-header { margin-bottom: 30px; }
.article-kicker { color: var(--accent); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.article-kicker a { color: var(--accent); }
.article-title {
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.2;
	letter-spacing: -1.2px;
	color: var(--ink);
	margin: 14px 0 14px;
}
.article-lead { font-size: 17px; color: var(--muted); line-height: 1.7; margin: 0 0 22px; }
.article-byline { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.author-avatar img { border-radius: 50%; }
.byline-text { display: flex; flex-direction: column; line-height: 1.4; font-size: 13px; }
.byline-text strong { color: var(--ink); }
.byline-text span { color: var(--muted); font-size: 12px; }
.comments-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.comments-count a:hover { color: var(--accent); }
.article-cover { border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.article-cover img { width: 100%; }

.entry-content { font-size: 16.5px; line-height: 1.9; color: #283044; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink); line-height: 1.3; margin: 1.8em 0 .6em; letter-spacing: -.4px; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 21px; }
.entry-content p { margin: 0 0 1.4em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; margin: 24px auto; }
.entry-content blockquote {
	margin: 28px 0;
	padding: 18px 24px;
	border-left: 4px solid var(--accent);
	background: #fff5f7;
	border-radius: 0 10px 10px 0;
	font-style: italic;
	color: var(--ink-soft);
}
/* Kod bloklari - acik tema, net okunur */
.entry-content pre {
	background: #f6f8fc !important;
	color: #1e293b !important;
	padding: 20px 22px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow-x: auto;
	font: 13px/1.75 'Fira Code', 'Consolas', 'Courier New', monospace;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}
.entry-content .plain-code {
	margin: 26px 0 30px;
	background: #fbfcfe;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
}
.entry-content .plain-code pre { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.entry-content .syntaxhighlighter {
	margin: 26px 0 30px !important;
	background: #fbfcfe !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
	padding: 0 !important;
}
.entry-content .syntaxhighlighter table { width: 100% !important; margin: 0 !important; border: 0 !important; background: transparent !important; }
.entry-content .syntaxhighlighter td { border: 0 !important; padding: 0 !important; vertical-align: top !important; }
.entry-content .syntaxhighlighter .toolbar { display: none !important; }
.entry-content .syntaxhighlighter .gutter {
	background: #eef2f7 !important;
	border-right: 1px solid #e2e8f0 !important;
}
.entry-content .syntaxhighlighter .gutter .line {
	color: #94a3b8 !important;
	text-shadow: none !important;
	padding: 3px 14px 3px 12px !important;
	font: 12px/1.75 'Fira Code', 'Consolas', monospace !important;
}
.entry-content .syntaxhighlighter .code,
.entry-content .syntaxhighlighter .code .line,
.entry-content .syntaxhighlighter .code .line span {
	color: #1e293b !important;
}
.entry-content .syntaxhighlighter .code .line {
	padding: 3px 20px !important;
	font: 13px/1.75 'Fira Code', 'Consolas', monospace !important;
}
.entry-content .syntaxhighlighter .line,
.entry-content .syntaxhighlighter .line.alt1,
.entry-content .syntaxhighlighter .line.alt2 { background: transparent !important; }
.entry-content .syntaxhighlighter .keyword { color: #7c3aed !important; }
.entry-content .syntaxhighlighter .string { color: #15803d !important; }
.entry-content .syntaxhighlighter .comment { color: #64748b !important; font-style: italic; }
.entry-content .syntaxhighlighter .functions { color: #0369a1 !important; }
.entry-content .syntaxhighlighter .variable { color: #b45309 !important; }
.entry-content .syntaxhighlighter .numeric { color: #c2410c !important; }
.entry-content .syntaxhighlighter .operator { color: #334155 !important; }
.entry-content .syntaxhighlighter .constants { color: #be185d !important; }
.entry-content .syntaxhighlighter .preprocessor { color: #0e7490 !important; }
.entry-content .code-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: #eef2f7;
	border-bottom: 1px solid #e2e8f0;
}
.entry-content .code-lang {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #64748b;
}
.entry-content .code-lang::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f43f5e;
	box-shadow: 10px 0 0 #fbbf24, 20px 0 0 #34d399;
	margin-right: 24px;
	vertical-align: middle;
}
.entry-content .code-copy {
	margin-left: auto;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #475569;
	border-radius: 7px;
	padding: 5px 13px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	transition: background .2s, border-color .2s, color .2s;
}
/* SyntaxHighlighter'in !important sifirlama kurallarini as */
.entry-content .syntaxhighlighter div.code-header {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 16px !important;
	background: #eef2f7 !important;
	border-bottom: 1px solid #e2e8f0 !important;
	line-height: 1.4 !important;
}
.entry-content .syntaxhighlighter div.code-header .code-copy {
	border: 1px solid #cbd5e1 !important;
	background: #fff !important;
	color: #475569 !important;
	padding: 5px 13px !important;
	font: 700 11px/1.4 'Inter', sans-serif !important;
}
.entry-content .code-copy:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.entry-content .code-copy.done { background: #16a34a; border-color: #16a34a; color: #fff; }
.entry-content .syntaxhighlighter div.code-header .code-copy:hover { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.entry-content .syntaxhighlighter div.code-header .code-copy.done { background: #16a34a !important; border-color: #16a34a !important; color: #fff !important; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 1.4em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

.page-links { display: flex; gap: 8px; margin: 24px 0; }
.page-links a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; font-size: 13px; }
.article-tags > span { color: var(--muted); font-weight: 650; margin-right: 4px; }
.article-tags a {
	background: var(--bg);
	border: 1px solid var(--line);
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 12px;
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

.article-share { display: flex; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.share-btn { padding: 7px 14px; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; }
.share-whatsapp { background: #25d366; }
.share-x { background: #111827; }
.share-facebook { background: #1877f2; }

.post-navigation { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation a { font-size: 13px; color: var(--accent); font-weight: 650; }
.nav-next { text-align: right; }

.related-posts { margin-top: 52px; }
.post-grid--related .post-card { box-shadow: none; }

/* ----------------------------- ARCHIVE --------------------------------- */
.archive-header { margin-bottom: 34px; }
.page-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -1px; color: var(--ink); margin: 0 0 10px; }
.archive-description { color: var(--muted); font-size: 15px; margin: 0; }

/* ----------------------------- WIDGETS --------------------------------- */
.widget {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 24px;
	box-shadow: var(--shadow);
}
.widget-title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--ink);
	margin: 0 0 18px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--accent); }
.widget-post-link { display: flex; gap: 12px; align-items: center; }
.widget-thumb { flex: 0 0 64px; height: 52px; border-radius: 7px; overflow: hidden; }
.widget-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title { font-weight: 650; line-height: 1.4; }

.widget-categories li { position: relative; }
.widget-categories .count {
	float: right;
	color: #94a3b8;
	font-size: 11px;
	background: var(--bg);
	padding: 1px 8px;
	border-radius: 10px;
}
.widget-categories ul.children {
	padding-left: 16px !important;
	margin: 4px 0 6px !important;
	border-left: 2px solid var(--line);
}
.widget-categories ul.children li { border-bottom: 0; padding: 5px 0; font-size: 12px; }
.widget-categories ul.children li:last-child { padding-bottom: 0; }

.tag-cloud a { display: inline-block; margin: 0 4px 6px 0; padding: 4px 10px; border: 1px solid var(--line); border-radius: 16px; font-size: 12px !important; }

.tool-links { list-style: none; margin: 0; padding: 0; }
.tool-links li { border-bottom: 1px solid var(--line); }
.tool-links li:last-child { border-bottom: 0; }
.tool-links a {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 2px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}
.tool-icon {
	flex: 0 0 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border-radius: 7px;
	background: rgba(225, 29, 72, .09);
	font-size: 13px;
}
.tool-ext { margin-left: auto; color: #b6bfcc; font-size: 12px; }
.tool-links a:hover { color: var(--accent); padding-left: 6px; }
.tool-links a:hover .tool-icon { background: var(--accent); color: #fff; }
.widget--favorite .widget-title::after { content: ' ★'; color: var(--accent); }

/* ----------------------------- COMMENTS -------------------------------- */
#comments { margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.comment-reply-title { font-size: 20px; color: var(--ink); }
.comment-list { list-style: none; margin: 24px 0; padding: 0; }
.comment-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { padding-left: 28px; }
.comment-meta { font-size: 12px; color: var(--muted); }
.comment-author { color: var(--ink); font-weight: 700; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-body p { font-size: 14px; margin: 10px 0; }
.comment-form input, .comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: var(--bg);
	font-family: inherit;
	font-size: 14px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit {
	width: auto;
	background: var(--accent);
	color: #fff;
	border: 0;
	padding: 11px 22px;
	font-weight: 700;
}

/* ----------------------------- FOOTER ---------------------------------- */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 52px 0 0; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 40px; }
.footer-col .widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.footer-col .widget-title { color: #fff; border-color: var(--accent); }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; }
.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 22px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	color: #94a3b8;
}
.footer-bottom p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-links li:last-child { border-bottom: 0; }
.footer-links a { display: block; padding: 9px 0; font-size: 13px; }
.footer-links a:hover { color: #fff; padding-left: 6px; }
.footer-mail { display: inline-block; margin-top: 6px; font-size: 13px; color: #fda4af; font-weight: 600; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom-links a:hover { color: #fff; }

.to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 800;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	box-shadow: var(--shadow-hover);
	display: grid;
	place-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ----------------------------- 404 / EMPTY ----------------------------- */
.error-page { text-align: center; padding: 80px 20px 100px; }
.error-code { font-size: 110px; font-weight: 900; line-height: 1; color: var(--accent); letter-spacing: -6px; }
.error-page h1 { font-size: 30px; color: var(--ink); margin: 12px 0; }
.error-page p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.error-page .search-form { max-width: 520px; margin: 0 auto 24px; }
.btn-primary { display: inline-block; background: var(--accent); color: #fff; padding: 11px 24px; border-radius: 9px; font-weight: 700; font-size: 14px; }
.error-posts { max-width: 620px; margin: 60px auto 0; text-align: left; }
.error-list { list-style: none; padding: 0; margin: 0; }
.error-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.error-list a:hover { color: var(--accent); }
.no-content { text-align: center; padding: 60px 20px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.no-content h2 { color: var(--ink); }
.no-content .search-form { max-width: 480px; margin: 18px auto 0; }

/* ----------------------------- RESPONSIVE ------------------------------ */
@media (max-width: 1080px) {
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
	.article { padding: 32px 30px 36px; }
}

@media (max-width: 900px) {
	.menu-toggle { display: grid; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
		padding: 12px 20px 18px;
	}
	.main-nav.is-open { display: block; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-list ul { position: static; display: none; box-shadow: none; border: 0; padding-left: 12px; }
	.nav-list li:hover > ul { display: block; }
	.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
	.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
	.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
	.layout { grid-template-columns: 1fr; }
	.tools-showcase { grid-template-columns: 1fr; gap: 24px; }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.sidebar .ad-zone { grid-column: 1 / -1; }
	.ad-zone--sticky { position: static; }
	.footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.container { width: min(100% - 28px, 1240px); }
	.brand-title { font-size: 18px; }
	.brand-tagline { display: none; }
	.hero { padding-top: 18px; }
	.hero-slide { min-height: 380px; }
	.hero-body { padding: 30px 24px 56px; }
	.hero-body h2 { font-size: 26px; }
	.hero-dots { bottom: 14px; right: 16px; }
	.hero-arrow { width: 34px; height: 34px; font-size: 22px; }
	.layout { padding-top: 28px; }
	.post-grid { grid-template-columns: 1fr; gap: 18px; }
	.tools-showcase { padding-top: 28px; }
	.tool-tiles { grid-template-columns: 1fr; }
	.article { padding: 24px 20px 30px; border-radius: 12px; }
	.article-title { font-size: 27px; }
	.article-lead { font-size: 15px; }
	.entry-content { font-size: 15.5px; }
	.sidebar { grid-template-columns: 1fr; }
	.footer-widgets { grid-template-columns: 1fr; gap: 26px; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.ad-zone--header { min-height: 90px; }
	.ad-zone--sidebar, .ad-zone--infeed, .ad-zone--footer { min-height: 200px; }
	.to-top { right: 14px; bottom: 14px; }
}
