/*
Theme Name: YamakTech
Theme URI: https://example.com/yamaktech
Author: YamakTech
Author URI: https://example.com
Description: Modern, minimal bir blog temasi. Kart tabanli anasayfa, temiz tipografi ve responsive tasarim.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yamaktech
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* -------------------------------------------------- */
/* 1. Reset & Base                                     */
/* -------------------------------------------------- */
:root {
	--color-bg: #ffffff;
	--color-text: #1a1a1a;
	--color-muted: #6b7280;
	--color-border: #e5e7eb;
	--color-primary: #2563eb;
	--color-primary-dark: #1d4ed8;
	--color-surface: #f9fafb;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading: Georgia, "Times New Roman", serif;
	--max-width: 1120px;
	--radius: 10px;
}

* {
	box-sizing: border-box;
}

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

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

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

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

a:hover {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 700;
}

p {
	margin: 0 0 1.2em;
}

ul, ol {
	padding-left: 1.4em;
}

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

/* -------------------------------------------------- */
/* 2. Layout                                           */
/* -------------------------------------------------- */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.site-content {
	flex: 1;
	padding: 48px 0 64px;
}

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 48px;
}

@media (max-width: 860px) {
	.content-layout {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------- */
/* 3. Header                                           */
/* -------------------------------------------------- */
.site-header {
	border-bottom: 1px solid var(--color-border);
	padding: 22px 0;
	background: var(--color-bg);
	position: sticky;
	top: 0;
	z-index: 50;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-branding .site-title {
	margin: 0;
	font-size: 26px;
	letter-spacing: -0.02em;
}

.site-branding .site-title a {
	color: var(--color-text);
	text-decoration: none;
}

.site-branding .site-description {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--color-muted);
	font-family: var(--font-body);
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: var(--color-text);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.main-navigation a:hover {
	color: var(--color-primary);
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 20px;
	cursor: pointer;
}

@media (max-width: 700px) {
	.menu-toggle {
		display: block;
	}
	.main-navigation {
		display: none;
		width: 100%;
		order: 3;
	}
	.main-navigation.is-open {
		display: block;
	}
	.main-navigation ul {
		flex-direction: column;
		gap: 4px;
		padding-top: 16px;
	}
	.header-inner {
		flex-wrap: wrap;
	}
}

/* -------------------------------------------------- */
/* 4. Post cards (archive/home)                        */
/* -------------------------------------------------- */
.post-grid {
	display: grid;
	gap: 32px;
}

.post-card {
	border-bottom: 1px solid var(--color-border);
	padding-bottom: 32px;
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 24px;
}

.post-card:last-child {
	border-bottom: none;
}

.post-card .post-thumbnail {
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-surface);
}

.post-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

@media (max-width: 620px) {
	.post-card {
		grid-template-columns: 1fr;
	}
}

.post-card.no-thumbnail {
	grid-template-columns: 1fr;
}

.entry-meta {
	font-size: 13px;
	color: var(--color-muted);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.entry-meta a {
	color: var(--color-muted);
}

.entry-title {
	font-size: 24px;
	margin: 0 0 10px;
}

.entry-title a {
	color: var(--color-text);
}

.entry-summary p {
	color: #374151;
	margin: 0;
}

.read-more {
	display: inline-block;
	margin-top: 10px;
	font-weight: 600;
	font-size: 14px;
}

/* -------------------------------------------------- */
/* 5. Single post                                      */
/* -------------------------------------------------- */
.single-post-header {
	margin-bottom: 28px;
}

.single-post-header .entry-title {
	font-size: 38px;
}

.post-thumbnail-full {
	margin-bottom: 28px;
	border-radius: var(--radius);
	overflow: hidden;
}

.entry-content {
	font-size: 18px;
}

.entry-content h2 {
	font-size: 28px;
	margin-top: 1.6em;
}

.entry-content h3 {
	font-size: 22px;
	margin-top: 1.4em;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 24px;
	border-left: 4px solid var(--color-primary);
	color: var(--color-muted);
	font-style: italic;
}

.entry-content pre {
	background: #0f172a;
	color: #e2e8f0;
	padding: 18px;
	border-radius: var(--radius);
	overflow-x: auto;
}

.entry-footer {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
	font-size: 14px;
	color: var(--color-muted);
}

.tags-links a {
	display: inline-block;
	background: var(--color-surface);
	border-radius: 999px;
	padding: 4px 12px;
	margin: 0 6px 6px 0;
	font-size: 13px;
	color: var(--color-text);
	text-decoration: none;
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
}

.post-navigation a {
	font-weight: 600;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--color-muted);
	font-weight: 400;
	margin-bottom: 4px;
}

/* -------------------------------------------------- */
/* 6. Sidebar & widgets                                */
/* -------------------------------------------------- */
.widget {
	margin-bottom: 36px;
	background: var(--color-surface);
	padding: 22px;
	border-radius: var(--radius);
}

.widget-title {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 16px;
	font-family: var(--font-body);
}

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

.widget li {
	margin-bottom: 10px;
	font-size: 15px;
}

.widget input[type="search"], .widget input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 15px;
}

/* -------------------------------------------------- */
/* 7. Comments                                         */
/* -------------------------------------------------- */
.comments-area {
	margin-top: 48px;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-body {
	padding: 18px 0;
	border-bottom: 1px solid var(--color-border);
}

.comment-author {
	font-weight: 600;
	font-size: 15px;
}

.comment-metadata {
	font-size: 13px;
	color: var(--color-muted);
	margin-bottom: 8px;
}

.comment-form input, .comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-family: var(--font-body);
	font-size: 15px;
	margin-bottom: 14px;
}

.comment-form textarea {
	min-height: 120px;
}

/* -------------------------------------------------- */
/* 8. Buttons & pagination                             */
/* -------------------------------------------------- */
.btn, input[type="submit"], button[type="submit"] {
	display: inline-block;
	background: var(--color-primary);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.btn:hover, input[type="submit"]:hover, button[type="submit"]:hover {
	background: var(--color-primary-dark);
	color: #fff;
	text-decoration: none;
}

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

.pagination a, .pagination span {
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--color-text);
	text-decoration: none;
}

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

/* -------------------------------------------------- */
/* 9. Footer                                           */
/* -------------------------------------------------- */
.site-footer {
	border-top: 1px solid var(--color-border);
	padding: 32px 0;
	background: var(--color-surface);
}

.footer-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 14px;
	color: var(--color-muted);
}

.footer-inner a {
	color: var(--color-muted);
}

.footer-social {
	display: flex;
	gap: 16px;
}

.footer-social a {
	font-weight: 600;
}

/* -------------------------------------------------- */
/* 10. Home Bloklar (builder)                          */
/* -------------------------------------------------- */
.home-block {
	margin-bottom: 48px;
}

.home-block-title {
	font-size: 24px;
	margin-bottom: 20px;
}

.home-hero {
	background-color: var(--color-surface);
	background-size: cover;
	background-position: center;
	border-radius: var(--radius);
	padding: 64px 40px;
	text-align: center;
	color: #fff;
	position: relative;
}

.home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.55);
	border-radius: var(--radius);
}

.home-hero-inner {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
}

.home-hero-title {
	font-size: 36px;
	color: #fff;
	margin-bottom: 12px;
}

.home-hero-subtitle {
	font-size: 18px;
	margin-bottom: 20px;
}

.home-featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.home-featured-item {
	display: block;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--color-surface);
	text-decoration: none;
	color: var(--color-text);
}

.home-featured-item:hover {
	text-decoration: none;
}

.home-featured-thumb img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.home-featured-info {
	display: block;
	padding: 14px 16px;
}

.home-featured-cat {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	color: var(--color-muted);
	margin-bottom: 6px;
}

.home-featured-title {
	display: block;
	font-family: var(--font-heading);
	font-size: 17px;
	font-weight: 700;
}

.home-newsletter {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 40px;
	text-align: center;
}

.home-newsletter-form {
	display: flex;
	gap: 10px;
	max-width: 420px;
	margin: 20px auto 8px;
}

.home-newsletter-form input {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 15px;
}

.home-newsletter-note {
	font-size: 12px;
	color: var(--color-muted);
	margin: 0;
}
