/*
Theme Name:   GP Magazin
Theme URI:    https://generatepress.com
Description:  GeneratePress (ücretsiz) için dergi/blog tarzı ana sayfa: manşet ızgarası, kategori blokları ve "En Popüler" widget'ı.
Author:       GP Magazin
Template:     generatepress
Version:      1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  gp-magazin
*/

/* =========================================================
   Değişkenler
   ========================================================= */
:root {
	--mag-text: #1b1b1f;
	--mag-muted: #6b6f76;
	--mag-accent: #1e3a5f;
	--mag-line: #e3e5e8;
	--mag-radius: 0px;
	--mag-gap: 8px;
	--mag-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
	font-family: var(--mag-font);
	color: var(--mag-text);
}

/* =========================================================
   Header (GeneratePress üst menü ince ayarı)
   ========================================================= */
.site-header {
	border-bottom: 1px solid var(--mag-line);
}
.main-title {
	font-weight: 700;
	font-size: 22px;
}
.main-navigation .main-nav ul li a {
	font-size: 14px;
	font-weight: 500;
}

/* =========================================================
   Ortak kart parçaları
   ========================================================= */
.mag-cats {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.5;
	margin-bottom: 6px;
	color: var(--mag-muted);
}
.mag-cats a {
	color: inherit;
	text-decoration: none;
}
.mag-cats a:hover {
	text-decoration: underline;
}
.mag-meta {
	font-size: 12px;
	color: var(--mag-muted);
}
.mag-meta .mag-author {
	margin-left: 14px;
}
.mag-title {
	margin: 0 0 6px;
	font-weight: 600;
	line-height: 1.3;
}
.mag-title a {
	color: inherit;
	text-decoration: none;
}
.mag-title a:hover {
	color: var(--mag-accent);
}
.mag-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #cfd5dc, #8f99a6);
	border-radius: var(--mag-radius);
}
.mag-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.mag-thumb:hover img,
.mag-hero-item:hover img {
	transform: scale(1.04);
}

/* =========================================================
   Manşet (hero) ızgarası
   ========================================================= */
.mag-hero-wrap {
	padding: 30px 40px 0;
}
.separate-containers .mag-hero-wrap {
	padding: 20px 0 0;
}
.mag-hero {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: var(--mag-gap);
	height: 420px;
}
.mag-hero-item {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #59626e, #22272e);
	border-radius: var(--mag-radius);
	color: #fff;
}
.mag-hero-item.is-main {
	grid-row: 1 / span 2;
}
.mag-hero-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.mag-hero-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 45%, rgba(0, 0, 0, .05) 100%);
	pointer-events: none;
}
.mag-hero-link {
	position: absolute;
	inset: 0;
	z-index: 2;
}
.mag-hero-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 14px;
	z-index: 3;
	pointer-events: none;
}
.mag-hero-content a {
	pointer-events: auto;
}
.mag-hero-item .mag-cats,
.mag-hero-item .mag-meta {
	color: rgba(255, 255, 255, .88);
}
.mag-hero-item .mag-title {
	font-size: 14px;
	color: #fff;
	margin: 0;
}
.mag-hero-item.is-main .mag-hero-content {
	padding: 28px 24px;
}
.mag-hero-item.is-main .mag-title {
	font-size: 26px;
	font-weight: 700;
	margin-bottom: 12px;
}
.mag-hero-item.is-main .mag-cats {
	font-size: 11px;
}

/* =========================================================
   Bölüm başlıkları (GLOBAL INFO ———— More >)
   ========================================================= */
.separate-containers .mag-sections {
	background: #fff;
	padding: 40px;
}
.mag-section {
	margin-bottom: 50px;
}
.mag-section:last-child {
	margin-bottom: 0;
}
.mag-section-head,
.mag-widget-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}
.mag-section-title,
.sidebar .widget .mag-widget-head .widget-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--mag-text);
}
.mag-section-line {
	flex: 1;
	height: 2px;
	background: var(--mag-accent);
	align-self: flex-end;
	margin-bottom: 4px;
}
.mag-more {
	font-size: 11px;
	font-weight: 500;
	color: var(--mag-muted);
	text-decoration: none;
	white-space: nowrap;
	align-self: flex-end;
}
.mag-more:hover {
	color: var(--mag-accent);
}
.mag-more::after {
	content: "\203A";
	font-size: 15px;
	margin-left: 6px;
	color: var(--mag-text);
	line-height: 1;
}

/* =========================================================
   Bölüm gövdesi: solda büyük yazı, sağda liste
   ========================================================= */
.mag-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}
.mag-feature .mag-thumb {
	aspect-ratio: 4 / 3;
	margin-bottom: 14px;
}
.mag-feature .mag-title {
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 10px;
}
.mag-feature .mag-excerpt {
	font-size: 13px;
	line-height: 1.6;
	color: #3c4046;
	margin-top: 12px;
}
.mag-feature .mag-excerpt p {
	margin: 0;
}

.mag-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.mag-list-item {
	display: grid;
	grid-template-columns: 82px 1fr;
	gap: 14px;
	align-items: center;
	margin: 0;
}
.mag-list-item .mag-thumb {
	aspect-ratio: 1 / 1;
	width: 82px;
}
.mag-list-item .mag-title {
	font-size: 12.5px;
	margin-bottom: 4px;
}
.mag-list-item .mag-meta {
	font-size: 11px;
}

/* Liste düzeni: büyük yazı yoksa (yalnız ızgara) */
.mag-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.mag-grid .mag-thumb {
	aspect-ratio: 16 / 10;
	margin-bottom: 10px;
}
.mag-grid .mag-title {
	font-size: 15px;
}

/* =========================================================
   Sidebar: En Popüler widget'ı
   ========================================================= */
.sidebar .widget {
	font-size: 14px;
}
.sidebar .widget select {
	width: 100%;
	padding: 8px 10px;
	font-size: 13px;
	border: 1px solid var(--mag-line);
	background: #fff;
}
.mag-widget-head {
	margin-bottom: 18px;
}
.mag-widget-head .mag-section-line {
	height: 1px;
	background: var(--mag-line);
}
.mag-popular {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mag-popular li {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	margin: 0 0 16px;
}
.mag-popular .mag-thumb {
	width: 64px;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}
.mag-popular .mag-cats {
	font-size: 9px;
	margin-bottom: 3px;
}
.mag-popular .mag-title {
	font-size: 12.5px;
	margin: 0;
}

/* =========================================================
   Duyarlı (responsive)
   ========================================================= */
@media (max-width: 1024px) {
	.mag-hero {
		height: 380px;
	}
	.mag-hero-item.is-main .mag-title {
		font-size: 22px;
	}
}
@media (max-width: 768px) {
	.mag-hero-wrap {
		padding: 20px 20px 0;
	}
	.separate-containers .mag-hero-wrap {
		padding: 10px 10px 0;
	}
	.mag-hero {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 300px 170px 170px;
		height: auto;
	}
	.mag-hero-item.is-main {
		grid-column: 1 / span 2;
		grid-row: auto;
	}
	.mag-block,
	.mag-grid {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 480px) {
	.mag-hero {
		grid-template-columns: 1fr;
		grid-template-rows: none;
		grid-auto-rows: auto;
	}
	.mag-hero-item {
		height: 200px;
	}
	.mag-hero-item.is-main {
		grid-column: auto;
		height: 280px;
	}
	.mag-hero-item.is-main .mag-title {
		font-size: 20px;
	}
}
