/*
Theme Name: Teknoloji Haber
Theme URI: https://example.com/teknoloji-haber
Author: 
Author URI: 
Description: Sade, hızlı ve SEO odaklı bir teknoloji/haber blog temasi. Dogru canonical/robots/Open Graph etiketleri, kendi alan adinizin disindaki gorselleri otomatik reddeden guvenlik onlemi ve ana sayfa ile tekil yazi meta verilerinin birbirine karismasini engelleyen ayri islenmis SEO cikti fonksiyonlari icerir.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: teknoloji-haber
*/

/* =========================================================
   0. Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
	background: var(--th-bg);
	color: var(--th-text);
	line-height: 1.65;
	transition: background .2s ease, color .2s ease;
}
img { max-width: 100%; height: auto; display: block; border-radius: var(--th-radius); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--th-accent); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, textarea { font-family: inherit; }

/* =========================================================
   1. Degiskenler / Tema renkleri
   ========================================================= */
:root {
	--th-accent: #e8380d;
	--th-accent-dark: #c22e08;
	--th-bg: #ffffff;
	--th-surface: #f7f7f8;
	--th-border: #e9e9ec;
	--th-text: #16171a;
	--th-text-muted: #6b6f76;
	--th-radius: 10px;
	--th-container: 1180px;
}
[data-theme="dark"] {
	--th-bg: #101114;
	--th-surface: #17181c;
	--th-border: #2a2b30;
	--th-text: #f2f2f3;
	--th-text-muted: #a2a5ab;
}

/* =========================================================
   2. Genel yerlesim
   ========================================================= */
.wrap { max-width: var(--th-container); margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* =========================================================
   3. Ust bar / Site basligi
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--th-bg);
	border-bottom: 1px solid var(--th-border);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding: 14px 0;
}
.site-branding__title {
	font-size: 22px; font-weight: 800; margin: 0;
}
.site-branding__title a { display: flex; align-items: center; gap: 10px; }
.site-branding__logo { height: 34px; width: auto; border-radius: 6px; }
.site-branding__tagline { font-size: 12px; color: var(--th-text-muted); margin: 0; }

.primary-navigation { display: flex; }
.primary-navigation ul { display: flex; gap: 4px; flex-wrap: wrap; }
.primary-navigation a {
	display: block; padding: 8px 12px; border-radius: 999px;
	font-size: 14px; font-weight: 600; color: var(--th-text);
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a { background: var(--th-surface); color: var(--th-accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--th-border);
	background: var(--th-bg); cursor: pointer; color: var(--th-text);
}
.icon-btn:hover { border-color: var(--th-accent); color: var(--th-accent); }
.menu-toggle { display: none; }

/* =========================================================
   4. Ozet / Kart grid
   ========================================================= */
.content-area { padding: 32px 0 60px; }
.post-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.card {
	background: var(--th-bg); border: 1px solid var(--th-border);
	border-radius: var(--th-radius); overflow: hidden;
	display: flex; flex-direction: column;
	transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,.06); }
.card__thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--th-surface); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.card__body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card__cat {
	display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
	letter-spacing: .04em; color: var(--th-accent); margin-bottom: 8px;
}
.card__title { font-size: 17px; margin-bottom: 8px; }
.card__excerpt { font-size: 14px; color: var(--th-text-muted); flex: 1; }
.card__meta { font-size: 12px; color: var(--th-text-muted); margin-top: 12px; }

/* Ana sayfa oncelikli (featured) yazi */
.featured-post {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px;
	align-items: center; margin-bottom: 40px;
	border: 1px solid var(--th-border); border-radius: var(--th-radius); overflow: hidden;
	background: var(--th-surface);
}
.featured-post__thumb { aspect-ratio: 16/10; overflow: hidden; }
.featured-post__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.featured-post__body { padding: 10px 30px 10px 0; }
.featured-post__title { font-size: 28px; }
.featured-post__excerpt { color: var(--th-text-muted); font-size: 15px; }

.section-title {
	display: flex; align-items: baseline; justify-content: space-between;
	margin: 46px 0 20px;
}
.section-title h2 { font-size: 20px; }
.section-title a { font-size: 13px; font-weight: 700; color: var(--th-accent); }

/* =========================================================
   5. Tekil yazi
   ========================================================= */
.single-post { max-width: 760px; margin: 0 auto; padding: 30px 0 60px; }
.breadcrumbs { font-size: 13px; color: var(--th-text-muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--th-text-muted); }
.single-post__category {
	display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
	color: #fff; background: var(--th-accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.single-post__title { font-size: 34px; margin-bottom: 14px; }
.single-post__meta {
	display: flex; align-items: center; gap: 10px; color: var(--th-text-muted);
	font-size: 14px; margin-bottom: 24px;
}
.single-post__meta img { width: 28px; height: 28px; border-radius: 50%; }
.single-post__thumb { margin-bottom: 28px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 24px; margin-top: 1.6em; }
.entry-content h3 { font-size: 20px; margin-top: 1.4em; }
.entry-content img { margin: 20px auto; border-radius: var(--th-radius); }
.entry-content blockquote {
	margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--th-accent);
	background: var(--th-surface); border-radius: 0 var(--th-radius) var(--th-radius) 0;
	font-style: italic;
}
.entry-content a { color: var(--th-accent); text-decoration: underline; }
.entry-tags { margin: 30px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.entry-tags a {
	font-size: 12px; padding: 6px 12px; border: 1px solid var(--th-border); border-radius: 999px;
}
.share-row { display: flex; gap: 8px; margin: 20px 0 40px; }
.share-row a {
	width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--th-border); border-radius: 999px;
}

.related-posts { margin-top: 50px; }
.author-box {
	display: flex; gap: 14px; align-items: center; padding: 18px;
	background: var(--th-surface); border-radius: var(--th-radius); margin: 30px 0;
}
.author-box img { width: 52px; height: 52px; border-radius: 50%; }

/* =========================================================
   6. Yorumlar
   ========================================================= */
.comments-area { margin-top: 40px; }
.comment-list { margin-top: 20px; }
.comment-list li { padding: 16px 0; border-top: 1px solid var(--th-border); }
.comment-form input, .comment-form textarea {
	width: 100%; padding: 10px 14px; border: 1px solid var(--th-border);
	border-radius: 8px; margin-bottom: 12px; background: var(--th-bg); color: var(--th-text);
}
.comment-form .form-submit input {
	width: auto; background: var(--th-accent); color: #fff; border: none;
	padding: 10px 22px; font-weight: 700; cursor: pointer;
}
.comment-form .form-submit input:hover { background: var(--th-accent-dark); }

/* =========================================================
   7. Sayfalama
   ========================================================= */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 46px; }
.pagination a, .pagination span {
	min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
	border: 1px solid var(--th-border); border-radius: 8px; font-size: 14px; font-weight: 600;
}
.pagination .current { background: var(--th-accent); color: #fff; border-color: var(--th-accent); }

/* =========================================================
   8. Kenar cubugu
   ========================================================= */
.widget { margin-bottom: 30px; padding: 20px; background: var(--th-surface); border-radius: var(--th-radius); }
.widget h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.widget ul li { padding: 6px 0; font-size: 14px; }

/* =========================================================
   9. Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--th-border); padding: 40px 0 26px; margin-top: 40px; background: var(--th-surface); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-grid ul li { padding: 4px 0; font-size: 14px; color: var(--th-text-muted); }
.site-footer__bottom {
	margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--th-border);
	display: flex; justify-content: space-between; font-size: 13px; color: var(--th-text-muted);
	flex-wrap: wrap; gap: 10px;
}

/* =========================================================
   10. 404 / arama
   ========================================================= */
.error-404, .no-results { text-align: center; padding: 90px 0; }
.error-404__code { font-size: 90px; font-weight: 800; color: var(--th-accent); margin: 0; }
.search-form { display: flex; gap: 8px; margin-top: 20px; justify-content: center; }
.search-form input[type="search"] {
	padding: 10px 16px; border: 1px solid var(--th-border); border-radius: 8px; min-width: 260px;
}
.search-form button {
	background: var(--th-accent); color: #fff; border: none; padding: 10px 18px; border-radius: 8px; cursor: pointer;
}

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 900px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.featured-post { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
	.primary-navigation { position: fixed; inset: 60px 0 0 0; background: var(--th-bg); flex-direction: column; padding: 20px; transform: translateY(-110%); transition: transform .2s ease; overflow-y: auto; }
	.primary-navigation.is-open { transform: translateY(0); }
	.primary-navigation ul { flex-direction: column; }
	.menu-toggle { display: inline-flex; }
	.post-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.single-post__title { font-size: 26px; }
}
