/*
 * MADEF Sekmeli İçerik
 * Tüm kurallar .mtp kapsamında — tema (The7/WPBakery) ile çakışmaz.
 */

.mtp {
	--mtp-accent: #e0761b;
	--mtp-cols: 3;
	--mtp-gap: 26px;
	--mtp-radius: 16px;
	--mtp-ink: #16202b;
	--mtp-muted: #6b7785;
	--mtp-line: #e6e9ee;
	--mtp-surface: #fff;
	--mtp-bg: #f6f7f9;

	box-sizing: border-box;
	font-family: inherit;
	color: var(--mtp-ink);
	line-height: 1.5;
}
.mtp *, .mtp *::before, .mtp *::after { box-sizing: border-box; }

/* tema kalıntılarını sıfırla */
.mtp p, .mtp h3, .mtp ul, .mtp li, .mtp figure { margin: 0; padding: 0; }
.mtp ul, .mtp li { list-style: none !important; }
.mtp li::before, .mtp li::after { content: none !important; }
.mtp a { text-decoration: none; box-shadow: none; border: 0; color: inherit; }
.mtp a:hover, .mtp a:focus { text-decoration: none; box-shadow: none; }
.mtp img { max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; display: block; }
.mtp button { font: inherit; color: inherit; background: none; border: 0; margin: 0; cursor: pointer; }

/* ---------------- sekmeler ---------------- */
.mtp__tabs {
	position: relative;
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	border-bottom: 1px solid var(--mtp-line);
	margin-bottom: 28px;
	padding: 0 0 0 2px;
	-webkit-overflow-scrolling: touch;
}
.mtp__tabs::-webkit-scrollbar { display: none; }

.mtp__tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	padding: 14px 20px 16px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .01em;
	color: var(--mtp-muted);
	white-space: nowrap;
	transition: color .18s ease;
}
.mtp__tab:hover { color: var(--mtp-ink); }
.mtp__tab.is-active { color: var(--mtp-accent); }
.mtp__tab:focus-visible { outline: 2px solid var(--mtp-accent); outline-offset: -4px; border-radius: 8px; }

.mtp__tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--mtp-bg);
	color: var(--mtp-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: background .18s ease, color .18s ease;
}
.mtp__tab.is-active .mtp__tab-count {
	background: color-mix(in srgb, var(--mtp-accent) 14%, #fff);
	color: var(--mtp-accent);
}

.mtp__indicator {
	position: absolute;
	bottom: -1px;
	left: 0;
	height: 3px;
	width: 0;
	border-radius: 3px 3px 0 0;
	background: var(--mtp-accent);
	transition: transform .28s cubic-bezier(.4, 0, .2, 1), width .28s cubic-bezier(.4, 0, .2, 1);
	pointer-events: none;
}

/* ---------------- paneller ---------------- */
.mtp__panel[hidden] { display: none; }
.mtp__panel { animation: mtp-fade .3s ease both; }
@keyframes mtp-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.mtp__panel { animation: none; }
	.mtp__indicator { transition: none; }
}

.mtp__grid {
	display: grid;
	gap: var(--mtp-gap);
	grid-template-columns: repeat(var(--mtp-cols), minmax(0, 1fr));
}
@media (max-width: 1100px) { .mtp__grid { grid-template-columns: repeat(min(var(--mtp-cols), 3), minmax(0, 1fr)); } }
@media (max-width: 860px)  { .mtp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --mtp-gap: 18px; } }
@media (max-width: 540px)  { .mtp__grid { grid-template-columns: 1fr; } }

/* ---------------- kart ---------------- */
.mtp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--mtp-surface);
	border: 1px solid var(--mtp-line);
	border-radius: var(--mtp-radius);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mtp-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 14px 34px -12px rgba(16, 24, 40, .22), 0 2px 6px rgba(16, 24, 40, .06);
}

.mtp-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--mtp-bg);
}
/* aspect-ratio desteklemeyen eski tarayıcılar için */
@supports not (aspect-ratio: 16/9) {
	.mtp-card__media { height: 0; padding-bottom: 56.25%; }
	.mtp-card__media > * { position: absolute; inset: 0; }
}
.mtp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .6, .2, 1);
}
.mtp-card:hover .mtp-card__media img { transform: scale(1.06); }

/* görsel yoksa: başlığa göre üretilen degrade + baş harf */
.mtp-card__ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(120% 120% at 20% 15%, hsl(var(--mtp-hue, 30) 42% 62%) 0%, hsl(var(--mtp-hue, 30) 46% 38%) 60%, hsl(var(--mtp-hue, 30) 50% 28%) 100%);
}
.mtp-card__ph::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 22px 22px;
}
.mtp-card__ph-letter {
	position: relative;
	z-index: 1;
	font-size: 46px;
	font-weight: 800;
	color: rgba(255, 255, 255, .92);
	text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

/* video oynat rozeti */
.mtp-card__play {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--mtp-accent);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
	padding-left: 3px;
	transition: transform .25s ease, background .25s ease;
}
.mtp-card:hover .mtp-card__play {
	transform: translate(-50%, -50%) scale(1.09);
	background: #fff;
}

/* galeri sayısı rozeti */
.mtp-card__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(12, 18, 28, .68);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.mtp-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 9px;
	padding: 18px 20px 20px;
}
.mtp-card__date {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--mtp-muted);
}
.mtp-card__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--mtp-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mtp-card__title a { color: inherit; transition: color .18s ease; }
.mtp-card:hover .mtp-card__title a { color: var(--mtp-accent); }

.mtp-card__excerpt {
	font-size: 14px;
	color: var(--mtp-muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mtp-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--mtp-accent);
}
.mtp-card__more svg { transition: transform .22s ease; }
.mtp-card:hover .mtp-card__more svg { transform: translateX(4px); }

/* ---------------- görsel üstü yazı stili ---------------- */
.mtp-card--overlay { border: 0; }
.mtp-card--overlay .mtp-card__media { aspect-ratio: 3 / 4; }
.mtp-card--overlay .mtp-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 15, 22, .88) 0%, rgba(10, 15, 22, .45) 40%, rgba(10, 15, 22, 0) 72%);
}
.mtp-card--overlay .mtp-card__body {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 2;
	padding: 22px;
	pointer-events: none;
}
.mtp-card--overlay .mtp-card__body a { pointer-events: auto; }
.mtp-card--overlay .mtp-card__title,
.mtp-card--overlay .mtp-card__title a { color: #fff; }
.mtp-card--overlay .mtp-card__date,
.mtp-card--overlay .mtp-card__excerpt { color: rgba(255, 255, 255, .78); }
.mtp-card--overlay .mtp-card__more { color: #fff; }
.mtp-card--overlay:hover .mtp-card__title a { color: #fff; }

/* ---------------- alt kısım ---------------- */
.mtp__footer { display: flex; justify-content: center; margin-top: 30px; }
.mtp__loadmore {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 28px;
	border: 1.5px solid var(--mtp-line);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: var(--mtp-ink);
	background: var(--mtp-surface);
	transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.mtp__loadmore:hover {
	border-color: var(--mtp-accent);
	color: var(--mtp-accent);
	box-shadow: 0 6px 18px -8px rgba(16, 24, 40, .3);
}
.mtp__loadmore[disabled] { opacity: .55; cursor: default; }
.mtp__spinner {
	display: none;
	width: 15px;
	height: 15px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: mtp-spin .7s linear infinite;
}
.mtp__loadmore.is-loading .mtp__spinner { display: inline-block; }
@keyframes mtp-spin { to { transform: rotate(360deg); } }

.mtp__empty {
	padding: 44px 20px;
	text-align: center;
	color: var(--mtp-muted);
	background: var(--mtp-bg);
	border-radius: var(--mtp-radius);
	font-size: 15px;
}

/* yeni yüklenen kartların girişi */
.mtp-card.is-new { animation: mtp-fade .35s ease both; }
