/* =========================================================
   Özel Elementor Widgetları – Post Grid
   ========================================================= */

/* ── Grid container ── */
.oew-post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* fallback – Elementor bunu inline override eder */
	width: 100%;
	box-sizing: border-box;
}

/* ── Kart ── */
.oew-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	box-sizing: border-box;
}

.oew-card:hover {
	transform: translateY(-4px);
}

/* Kartın tamamı tıklanabilir olduğunda */
.oew-card--full-link {
	cursor: pointer;
}

.oew-card-full-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ── Kart içi ── */
.oew-card-inner {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px;
}

/* ── Üst meta (kategori + tarih) ── */
.oew-card-meta-top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.oew-card-category {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #6b7280;
	line-height: 1;
}

.oew-card-date {
	font-size: 12px;
	color: #9ca3af;
}

/* ── Başlık ── */
.oew-card-title {
	margin: 0 0 12px;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.4;
}

.oew-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.oew-card-title a:hover {
	text-decoration: underline;
}

/* ── Özet ── */
.oew-card-excerpt {
	flex: 1;
	margin-bottom: 16px;
}

.oew-card-excerpt p {
	margin: 0;
	color: #6b7280;
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* ── Footer / Buton ── */
.oew-card-footer {
	margin-top: auto;
	padding-top: 8px;
}

.oew-card-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ── Boş durum bildirimi (editörde) ── */
.oew-empty-notice {
	padding: 24px;
	text-align: center;
	background: #f9fafb;
	border: 2px dashed #d1d5db;
	border-radius: 8px;
	color: #6b7280;
	font-size: 0.9rem;
}

/* =========================================================
   Responsive – Elementor kendi breakpoint'lerini yönetir,
   bu kurallar yedek ve varsayılan olarak kalır.
   ========================================================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
	.oew-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobil (≤ 767px) */
@media (max-width: 767px) {
	.oew-post-grid {
		grid-template-columns: 1fr;
	}

	.oew-card-inner {
		padding: 18px;
	}

	.oew-card-title {
		font-size: 1rem;
	}
}

/* Çok küçük ekranlar (≤ 360px) */
@media (max-width: 360px) {
	.oew-card-inner {
		padding: 14px;
	}
}
