/*
Theme Name: TeknoGuc Aku Modern
Theme URI: https://guckaynagiakusu.com/
Author: TeknoGuc
Description: Güç kaynağı aküsü ürün kataloğu için modern, mobil uyumlu WordPress teması.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 7.0
Text Domain: teknoguc-aku-modern
*/

:root {
	--color-ink: #17202a;
	--color-muted: #607080;
	--color-line: #dfe7ef;
	--color-soft: #f4f7fa;
	--color-panel: #ffffff;
	--color-brand: #c7172f;
	--color-brand-dark: #9c1024;
	--color-accent: #0f6b78;
	--shadow-card: 0 14px 34px rgba(20, 32, 44, 0.1);
	--radius: 8px;
	--wrap: 1180px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	color: var(--color-ink);
	background: #eef3f7;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

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

a {
	color: var(--color-brand);
	text-decoration: none;
}

a:hover {
	color: var(--color-brand-dark);
}

.wrap {
	width: min(var(--wrap), calc(100% - 32px));
	margin: 0 auto;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 12px;
	z-index: 20;
	padding: 10px 14px;
	background: #fff;
	color: #000;
}

.skip-link:focus {
	left: 12px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.site-top {
	background: #111820;
	color: #d9e2ea;
	font-size: 14px;
}

.site-top__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0;
}

.site-top a {
	color: #fff;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.96);
	border-bottom: 1px solid var(--color-line);
	backdrop-filter: blur(12px);
}

.site-header__inner {
	display: flex;
	gap: 22px;
	align-items: center;
	justify-content: space-between;
	min-height: 86px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var(--color-ink);
}

.brand img {
	display: block;
	width: 214px;
	max-height: 64px;
	object-fit: contain;
}

.brand__text {
	display: none;
	font-weight: 700;
}

.site-nav-details {
	flex: 1;
	min-width: 0;
}

.nav-toggle-check,
.nav-toggle {
	display: none;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav li {
	position: relative;
}

.site-nav a {
	display: flex;
	align-items: center;
	min-height: 42px;
	padding: 8px 10px;
	color: var(--color-ink);
	font-size: 14px;
	font-weight: 700;
	border-radius: 6px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
	background: var(--color-soft);
	color: var(--color-brand);
}

.site-nav .sub-menu {
	position: absolute;
	left: 0;
	top: 100%;
	display: none;
	width: 210px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-card);
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
	display: block;
}

.site-nav .sub-menu a {
	justify-content: flex-start;
}

.header-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--color-brand);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--color-brand-dark);
	color: #fff;
}

.button--ghost {
	background: #fff;
	color: var(--color-brand);
	border: 1px solid var(--color-line);
}

.button--ghost:hover {
	background: var(--color-soft);
	color: var(--color-brand-dark);
}

.hero {
	background: linear-gradient(135deg, #17202a 0%, #243746 48%, #0f6b78 100%);
	color: #fff;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
	gap: 42px;
	align-items: center;
	padding: 54px 0;
}

.eyebrow {
	margin: 0 0 10px;
	color: #bfe9ef;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.hero h1 {
	max-width: 680px;
	margin: 0;
	font-size: clamp(34px, 6vw, 62px);
	line-height: 1.04;
}

.hero p {
	max-width: 660px;
	margin: 18px 0 0;
	color: #dbe8ee;
	font-size: 18px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.hero__panel {
	display: grid;
	gap: 12px;
	padding: 22px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--radius);
}

.hero-stat {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 14px;
	align-items: center;
	padding: 14px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 6px;
}

.hero-stat strong {
	font-size: 22px;
	line-height: 1;
}

.section {
	padding: 42px 0;
}

.section--white {
	background: #fff;
}

.section__head {
	display: flex;
	gap: 16px;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 20px;
}

.section__head h2,
.archive-title,
.entry-title {
	margin: 0;
	font-size: clamp(24px, 4vw, 36px);
	line-height: 1.15;
}

.section__head p {
	max-width: 620px;
	margin: 6px 0 0;
	color: var(--color-muted);
}

.term-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 14px;
}

.term-card {
	display: flex;
	min-height: 116px;
	flex-direction: column;
	justify-content: space-between;
	padding: 16px;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	color: var(--color-ink);
}

.term-card:hover {
	border-color: #bac7d3;
	box-shadow: var(--shadow-card);
}

.term-card strong {
	font-size: 18px;
}

.term-card span {
	color: var(--color-muted);
	font-size: 14px;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.product-card {
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	background: var(--color-panel);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: 0 1px 0 rgba(20, 32, 44, 0.04);
}

.product-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-card);
}

.product-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	padding: 18px;
	background: #f8fafc;
}

.product-card__image img {
	max-width: 92%;
	max-height: 210px;
	object-fit: contain;
}

.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px;
}

.product-card__terms {
	margin-bottom: 8px;
	color: var(--color-accent);
	font-size: 13px;
	font-weight: 700;
}

.product-card h3 {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
}

.product-card h3 a {
	color: var(--color-ink);
}

.product-card h3 a:hover {
	color: var(--color-brand);
}

.product-card__excerpt {
	margin: 10px 0 0;
	color: var(--color-muted);
	font-size: 14px;
	line-height: 1.5;
}

.product-card__meta {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: center;
	margin-top: auto;
	padding-top: 16px;
}

.status-pill {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 6px 10px;
	background: #17202a;
	color: #fff;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.post-card {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: 0 1px 0 rgba(20, 32, 44, 0.04);
}

.post-card:hover {
	box-shadow: var(--shadow-card);
}

.post-card__image {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	background: #f8fafc;
}

.post-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px;
}

.post-card__date {
	margin-bottom: 8px;
	color: var(--color-accent);
	font-size: 13px;
	font-weight: 700;
}

.post-card h3 {
	margin: 0;
	font-size: 20px;
	line-height: 1.28;
}

.post-card h3 a {
	color: var(--color-ink);
}

.post-card p {
	margin: 10px 0 16px;
	color: var(--color-muted);
	font-size: 14px;
}

.text-link {
	margin-top: auto;
	font-weight: 700;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 310px;
	gap: 32px;
	align-items: start;
}

.content-card {
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 24px;
}

.content-card + .content-card {
	margin-top: 18px;
}

.form-page {
	max-width: 900px;
	margin: 0 auto;
}

.form-page__intro {
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--color-line);
}

.form-page__intro p:last-child {
	max-width: 720px;
	margin-bottom: 0;
	color: var(--color-muted);
}

.entry-content {
	color: #344454;
}

.entry-content p {
	margin: 0 0 16px;
}

.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content form,
.entry-content .wpcf7,
.entry-content .wpforms-container,
.entry-content .nf-form-cont,
.entry-content .gform_wrapper {
	max-width: 760px;
}

.entry-content form p,
.entry-content .wpcf7 p {
	margin-bottom: 14px;
}

.entry-content label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
	color: var(--color-ink);
}

.entry-content input[type="checkbox"],
.entry-content input[type="radio"] {
	width: auto;
	min-height: 0;
	margin-right: 8px;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"] {
	width: auto;
	min-width: 160px;
}

.form-notice {
	padding: 16px;
	background: #fff6e6;
	border: 1px solid #f0c36d;
	border-radius: var(--radius);
	color: #5d4210;
}

.source-note {
	color: var(--color-muted);
	font-size: 13px;
}

.entry-content th,
.entry-content td {
	padding: 10px;
	border: 1px solid var(--color-line);
}

.product-detail {
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
	gap: 28px;
	align-items: start;
}

.product-detail__image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	padding: 22px;
	background: #f8fafc;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
}

.product-detail__image img {
	max-height: 360px;
	object-fit: contain;
}

.product-detail__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 22px 0;
}

.sidebar-widget {
	margin-bottom: 18px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
}

.sidebar-widget h2,
.sidebar-widget h3 {
	margin: 0 0 10px;
	font-size: 18px;
}

.sidebar-widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-widget li + li {
	margin-top: 8px;
}

.site-footer {
	background: #111820;
	color: #c5d0da;
}

.site-footer__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 20px;
	align-items: center;
	padding: 28px 0;
}

.site-footer a {
	color: #fff;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 28px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 8px 12px;
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	color: var(--color-ink);
}

.pagination .current {
	background: var(--color-brand);
	color: #fff;
}

input,
textarea,
select {
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--color-line);
	border-radius: 6px;
	font: inherit;
}

textarea {
	min-height: 140px;
}

.search-form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 10px;
	align-items: end;
}

@media (max-width: 980px) {
	.site-header {
		position: static;
	}

	.site-header__inner,
	.hero__inner,
	.content-layout,
	.product-detail,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-header__inner {
		display: grid;
		gap: 12px;
		padding: 14px 0;
	}

	.site-nav-details {
		width: 100%;
	}

	.nav-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		min-height: 46px;
		padding: 10px 14px;
		background: #111820;
		color: #fff;
		border-radius: 6px;
		font-weight: 700;
		cursor: pointer;
	}

	.nav-toggle__icon {
		display: inline-grid;
		gap: 4px;
		width: 24px;
	}

	.nav-toggle__icon span {
		display: block;
		height: 2px;
		background: currentColor;
		border-radius: 999px;
	}

	.site-nav {
		display: none;
		margin-top: 8px;
		padding: 10px;
		background: #fff;
		border: 1px solid var(--color-line);
		border-radius: var(--radius);
	}

	.nav-toggle-check:checked ~ .site-nav {
		display: block;
	}

	.site-nav ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.site-nav .sub-menu {
		position: static;
		display: block;
		width: 100%;
		margin-top: 6px;
		padding: 6px;
		box-shadow: none;
	}

	.header-actions {
		justify-content: stretch;
	}

	.header-actions .button {
		flex: 1;
	}

	.term-grid,
	.product-grid,
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.wrap {
		width: min(100% - 22px, var(--wrap));
	}

	.site-top__inner,
	.section__head {
		display: block;
	}

	.brand img {
		width: 184px;
	}

	.site-nav ul,
	.term-grid,
	.product-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.hero__inner {
		padding: 36px 0;
	}

	.hero p {
		font-size: 16px;
	}

	.hero__actions,
	.product-detail__actions,
	.search-form {
		display: grid;
		grid-template-columns: 1fr;
	}

	.content-card {
		padding: 18px;
	}
}
