/* Training Member Area — Premium tasarım sistemi (onaylı mockup: Revizyon 2)
   Hem ön yüzde hem blok editöründe yüklenir; bloklar iki tarafta da aynı görünür. */

:root {
	--tmap-navy: #101a38;
	--tmap-navy-2: #16255c;
	--tmap-blue: #2e5ce6;
	--tmap-warm: #ea5b3c;
	--tmap-ink: #101a38;
	--tmap-muted: #5e6a82;
	--tmap-card: #ffffff;
	--tmap-hair: rgba(16, 26, 56, 0.10);
	--tmap-grad-a: #e3ecf8;
	--tmap-grad-b: #f9fbfe;
	--tmap-r-sm: 10px;
	--tmap-r-md: 16px;
	--tmap-r-lg: 22px;
	--tmap-shadow-card: 0 2px 6px rgba(16, 26, 56, 0.05), 0 16px 40px rgba(16, 26, 56, 0.08);
	--tmap-font: 'Montserrat', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Ders sayfası kabuğu (course content pages) ---------- */
body.tma-lesson-page {
	background: linear-gradient(168deg, var(--tmap-grad-a), var(--tmap-grad-b) 60%) fixed;
}
.tma-lesson-shell {
	font-family: var(--tmap-font);
	color: var(--tmap-ink);
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 4px 40px;
}

/* Modül navigatörü (pill) */
.tma-nav-pill-wrap { display: flex; justify-content: center; margin: 18px 0 30px; position: relative; }
.tma-nav-pill {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--tmap-navy); color: #fff !important;
	font-family: var(--tmap-font); font-weight: 600; font-size: 13px; letter-spacing: 0.01em;
	padding: 11px 22px; border-radius: 99px; border: 0; cursor: pointer;
	box-shadow: 0 8px 24px rgba(16, 26, 56, 0.22);
	transition: background 0.18s ease;
}
.tma-nav-pill:hover { background: var(--tmap-blue); }
.tma-nav-pill svg { opacity: 0.6; }
.tma-nav-menu {
	position: absolute; top: calc(100% + 8px); z-index: 40;
	background: var(--tmap-card); border: 1px solid var(--tmap-hair); border-radius: var(--tmap-r-md);
	box-shadow: var(--tmap-shadow-card); padding: 8px; min-width: 300px; max-width: 92vw;
	display: none;
}
.tma-nav-menu.is-open { display: block; }
.tma-nav-menu a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 12px; border-radius: 8px; text-decoration: none;
	font-family: var(--tmap-font); font-size: 13px; font-weight: 600; color: var(--tmap-ink);
}
.tma-nav-menu a:hover { background: #eef2fa; }
.tma-nav-menu a.is-current { background: #eef2fa; color: var(--tmap-blue); }
.tma-nav-menu a .pct { font-size: 11px; color: var(--tmap-muted); font-weight: 600; }
.tma-nav-menu a.is-locked { color: var(--tmap-muted); opacity: 0.7; }

/* Önceki / Sonraki */
.tma-prevnext {
	display: flex; justify-content: space-between; gap: 12px;
	max-width: 860px; margin: 44px auto 0; font-family: var(--tmap-font);
}
.tma-prevnext a {
	display: inline-flex; align-items: center; gap: 9px;
	background: var(--tmap-card); border: 1px solid var(--tmap-hair); border-radius: var(--tmap-r-sm);
	padding: 12px 18px; text-decoration: none; color: var(--tmap-ink);
	font-size: 13px; font-weight: 600; box-shadow: var(--tmap-shadow-card);
	transition: border-color 0.15s ease, transform 0.12s ease;
	max-width: 48%;
}
.tma-prevnext a:hover { border-color: var(--tmap-blue); }
.tma-prevnext a:active { transform: scale(0.98); }
.tma-prevnext a span { color: var(--tmap-muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; display: block; }
.tma-prevnext .spacer { flex: 1; }

/* ---------- Bloklar ---------- */
.tmab-eyebrow {
	font-family: var(--tmap-font) !important;
	font-size: 11px !important; font-weight: 600 !important;
	text-transform: uppercase !important; letter-spacing: 0.16em !important;
	color: var(--tmap-blue) !important; text-align: center; margin: 0 0 8px !important;
}
h1.tmab-title, h2.tmab-title, h3.tmab-title {
	font-family: var(--tmap-font) !important;
	font-weight: 600 !important; letter-spacing: -0.02em !important;
	font-size: clamp(22px, 3.2vw, 30px) !important; line-height: 1.25 !important;
	color: var(--tmap-ink) !important; text-align: center;
	margin: 0 0 12px !important; text-wrap: balance;
}
p.tmab-lead {
	font-family: var(--tmap-font) !important;
	max-width: 62ch; margin: 0 auto 10px !important; text-align: center;
	color: var(--tmap-muted) !important; font-size: 15px !important; line-height: 1.75 !important;
}
p.tmab-text {
	font-family: var(--tmap-font) !important;
	max-width: 68ch; margin: 0 auto 14px !important;
	color: var(--tmap-ink) !important; font-size: 15px !important; line-height: 1.75 !important;
}

/* Video bloğu: koyu çerçeve */
.tmab-video {
	max-width: 680px; margin: 28px auto !important;
	background: linear-gradient(150deg, var(--tmap-card-a, #1b2850) 0%, var(--tmap-card-b, #0c1428) 70%);
	border-radius: var(--tmap-r-md); padding: 10px;
	box-shadow: 0 22px 50px rgba(11, 19, 45, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tmab-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: calc(var(--tmap-r-md) - 6px); }
/* Ayraç çizgisi */
hr.tmab-divider {
	border: 0; height: 1px; max-width: 720px; margin: 34px auto;
	background: linear-gradient(90deg, transparent, rgba(16,26,56,0.18), transparent);
}
.tmab-video .wp-block-embed__wrapper { position: relative; }

/* Turuncu aksiyon butonu */
.tmab-cta { display: flex; justify-content: center; margin: 22px auto !important; }
.tmab-cta .wp-block-button__link, a.tmab-cta-link {
	background: var(--tmap-warm) !important; color: #fff !important;
	font-family: var(--tmap-font) !important; font-weight: 600 !important; font-size: 14px !important;
	letter-spacing: 0.01em; padding: 13px 26px !important; border-radius: var(--tmap-r-sm) !important;
	border: 0 !important; text-decoration: none !important;
	box-shadow: 0 10px 26px rgba(234, 91, 60, 0.24);
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
	display: inline-flex; align-items: center; gap: 9px;
}
.tmab-cta .wp-block-button__link:hover, a.tmab-cta-link:hover { background: #d84f31 !important; box-shadow: 0 12px 30px rgba(234, 91, 60, 0.3); }
.tmab-cta .wp-block-button__link:active, a.tmab-cta-link:active { transform: scale(0.98); }

/* Lacivert ikincil buton */
.tmab-btn .wp-block-button__link {
	background: var(--tmap-navy) !important; color: #fff !important;
	font-family: var(--tmap-font) !important; font-weight: 600 !important; font-size: 14px !important;
	padding: 13px 26px !important; border-radius: var(--tmap-r-sm) !important; border: 0 !important;
	transition: background 0.18s ease, transform 0.12s ease;
}
.tmab-btn .wp-block-button__link:hover { background: var(--tmap-blue) !important; }

/* Bilgi kutusu */
.tmab-infobox {
	max-width: 640px; margin: 24px auto !important;
	background: var(--tmap-card); border: 1px solid var(--tmap-hair); border-radius: var(--tmap-r-md);
	padding: 18px 22px 18px 24px !important; box-shadow: var(--tmap-shadow-card);
	position: relative; overflow: hidden;
	font-family: var(--tmap-font);
}
.tmab-infobox::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tmap-warm); }
.tmab-infobox > *:first-child { margin-top: 0 !important; }
.tmab-infobox > *:last-child { margin-bottom: 0 !important; }
.tmab-infobox strong { font-weight: 600; font-size: 13.5px; color: var(--tmap-ink); }
.tmab-infobox p { font-size: 13.5px !important; line-height: 1.65 !important; color: var(--tmap-muted) !important; margin: 5px 0 0 !important; font-family: var(--tmap-font) !important; }

/* Görsel bloğu */
.tmab-image { max-width: 680px; margin: 26px auto !important; }
.tmab-image img { border-radius: var(--tmap-r-md); box-shadow: var(--tmap-shadow-card); height: auto; }

/* Bölüm ayracı boşluğu */
.tmab-spacer { height: 34px; }

/* ---------- Eğitim kartları (kütüphane + eğitim menüsü) ---------- */
.tma-cardgrid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
	gap: 18px; margin-top: 26px; font-family: var(--tmap-font);
}
/* Sabit sütun sayısı (tasarımcıdan: 1 satırda N kutu) */
.tma-cardgrid--fixed { grid-template-columns: repeat(var(--tma-cols, 4), minmax(0, 1fr)); }
@media (max-width: 900px) { .tma-cardgrid--fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tma-cardgrid--fixed { grid-template-columns: 1fr; } }
/* Menü genişliği */
.tma-course-menu--dar  { max-width: 720px; margin-left: auto; margin-right: auto; }
.tma-course-menu--orta { max-width: 940px; margin-left: auto; margin-right: auto; }
.tma-course-menu--genis { max-width: none; }
.tma-course-menu__title { text-align: center; margin: 0 0 4px; }

/* Menü stili: AÇIK (beyaz kartlar) */
.tma-course-menu--stil-acik .tma-lcard {
	background: linear-gradient(150deg, #ffffff 0%, #f4f6fb 100%);
	color: var(--tmap-navy) !important;
	box-shadow: 0 10px 28px rgba(16, 26, 56, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(16, 26, 56, 0.08);
}
.tma-course-menu--stil-acik .tma-lcard::after { display: none; }
.tma-course-menu--stil-acik .tma-lcard .no { color: var(--tmap-blue); }
.tma-course-menu--stil-acik .tma-lcard .badge { color: #33405e; background: rgba(16,26,56,0.05); }
.tma-course-menu--stil-acik .tma-lcard .bar { background: rgba(16, 26, 56, 0.08); }
.tma-course-menu--stil-acik .tma-lcard--img { color: #fff !important; }

/* Menü stili: LİSTE (satır görünümü) */
.tma-course-menu--stil-liste .tma-cardgrid { grid-template-columns: 1fr !important; gap: 12px; max-width: 780px; margin-left: auto; margin-right: auto; }
.tma-course-menu--stil-liste .tma-lcard {
	flex-direction: row; align-items: center; justify-content: flex-start;
	aspect-ratio: auto; min-height: 0; padding: 18px 22px; text-align: left; gap: 16px;
}
.tma-course-menu--stil-liste .tma-lcard .no { margin-bottom: 0; flex: 0 0 auto; min-width: 86px; }
.tma-course-menu--stil-liste .tma-lcard .t { max-width: none; }
.tma-course-menu--stil-liste .tma-lcard .badge { position: static; margin-left: auto; }
.tma-lcard {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: linear-gradient(150deg, var(--tmap-card-a, #1b2850) 0%, var(--tmap-card-b, #0e1732) 70%);
	border-radius: var(--tmap-r-md); aspect-ratio: 16 / 10;
	color: #fff !important; text-align: center; padding: 20px; text-decoration: none !important;
	box-shadow: 0 14px 34px rgba(11, 19, 45, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.09);
	overflow: hidden;
}
.tma-lcard::after {
	content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px;
	border-radius: 50%; background: radial-gradient(closest-side, rgba(90, 130, 235, 0.18), transparent);
}
.tma-lcard--img { background-size: cover; background-position: center; }
.tma-lcard--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(13, 21, 46, 0.55), rgba(13, 21, 46, 0.82)); }
.tma-lcard > * { position: relative; z-index: 1; }
.tma-lcard .no { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: #8fa5da; margin-bottom: 7px; }
.tma-lcard .t { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; max-width: 24ch; text-wrap: balance; }
.tma-lcard .badge {
	position: absolute; top: 12px; left: 12px; z-index: 2;
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em;
	padding: 4px 10px; border-radius: 99px;
	background: rgba(255, 255, 255, 0.1); color: #c9d6f2; backdrop-filter: blur(4px);
}
.tma-lcard .badge i { width: 5px; height: 5px; border-radius: 50%; background: #7aa0f0; display: inline-block; }
.tma-lcard .badge--done { color: #bfe8cf; } .tma-lcard .badge--done i { background: #37c274; }
.tma-lcard .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.09); z-index: 2; }
.tma-lcard .bar i { display: block; height: 100%; background: linear-gradient(90deg, #3f6cf0, #7aa0f0); box-shadow: 0 0 12px rgba(90, 130, 235, 0.55); }
.tma-lcard--locked { filter: saturate(0.35); }
.tma-lcard--locked .t { opacity: 0.75; }
.tma-lcard .lock {
	position: absolute; top: 12px; right: 12px; z-index: 2;
	font-size: 10.5px; font-weight: 600; color: #aeb9d6;
	background: rgba(255, 255, 255, 0.08); border-radius: 99px; padding: 4px 10px;
	display: inline-flex; align-items: center; gap: 5px;
}
@media (prefers-reduced-motion: no-preference) {
	.tma-lcard { transition: transform 0.2s ease, box-shadow 0.2s ease; }
	a.tma-lcard:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(11, 19, 45, 0.3); }
}

/* Kütüphane üst bölümü */
.tma-lib { font-family: var(--tmap-font); }
.tma-lib .hello { text-align: center; }
.tma-lib .hello .tmab-eyebrow { margin-bottom: 6px !important; }
.tma-lib-logo { display: flex; justify-content: center; margin: 0 0 12px; }
.tma-lib-logo img { max-height: 52px; width: auto; display: block; }
.tma-lib .hello h1, .tma-lib .hello h2 {
	font-size: clamp(21px, 3vw, 27px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; color: var(--tmap-ink);
}
.tma-lib .hello p { color: var(--tmap-muted); margin: 0; font-size: 14px; }
.tma-resume {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--tmap-card); border: 1px solid var(--tmap-hair); border-radius: var(--tmap-r-md);
	padding: 18px 22px; margin: 26px auto 6px; max-width: 620px; box-shadow: var(--tmap-shadow-card);
}
.tma-resume b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--tmap-ink); }
.tma-resume .k { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--tmap-blue); margin-bottom: 4px; }
.tma-resume .m { display: block; font-size: 12.5px; color: var(--tmap-muted); margin-top: 2px; }
.tma-btn-navy {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--tmap-navy); color: #fff !important;
	font-family: var(--tmap-font); font-weight: 600; font-size: 13.5px;
	padding: 12px 22px; border-radius: var(--tmap-r-sm); text-decoration: none !important;
	transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
}
.tma-btn-navy:hover { background: var(--tmap-blue); box-shadow: 0 10px 26px rgba(46, 92, 230, 0.28); }
.tma-btn-navy:active { transform: scale(0.98); }

@media (max-width: 640px) {
	.tma-prevnext { flex-direction: column; }
	.tma-prevnext a { max-width: 100%; }
}

/* ---------- Tam sayfa (temasız) ders görünümü ---------- */
body.tma-fullpage-lesson { margin: 0; background: linear-gradient(168deg, var(--tmap-grad-a), var(--tmap-grad-b) 60%) fixed; font-family: var(--tmap-font); }
.tma-fp-bar {
	position: sticky; top: 0; z-index: 100;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px 24px; background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--tmap-hair);
}
.tma-fp-logo { display: inline-flex; align-items: center; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--tmap-navy); text-decoration: none; }
.tma-fp-logo img { max-height: 30px; width: auto; display: block; }
.tma-fp-nav { display: flex; align-items: center; gap: 6px; }
.tma-fp-nav a {
	font-size: 13px; font-weight: 600; color: var(--tmap-muted); text-decoration: none;
	padding: 8px 12px; border-radius: 8px; transition: color 0.15s ease, background 0.15s ease;
}
.tma-fp-nav a:hover { color: var(--tmap-navy); background: rgba(16,26,56,0.05); }
.tma-fp-nav a:last-child { color: var(--tmap-warm); }
.tma-fp-main { max-width: 1060px; margin: 0 auto; padding: 34px 20px 72px; }
@media (max-width: 640px) {
	.tma-fp-bar { padding: 10px 16px; }
	.tma-fp-nav a { padding: 6px 8px; }
	.tma-fp-main { padding: 22px 14px 48px; }
}

/* Sistem sayfaları (giriş/hesap/kütüphane) — eklenen premium başlık blokları
   ortalanır; çekirdek widget'lar (form/liste/panel) kendi düzeninde kalır. */
.tma-sys-main #tma-live > .tmab-eyebrow,
.tma-sys-main #tma-live > .tmab-title,
.tma-sys-main #tma-live > .tmab-lead { text-align: center; }
.tma-sys-main #tma-live > .tmab-lead { margin-left: auto; margin-right: auto; }
/* Üye girişi: ortalanmış dar kolon */
.tma-sys-main--login { max-width: 480px; padding-top: 48px; }
.tma-sys-page--login .tma-fp-bar { justify-content: center; }

/* Yönetici düzenleme çubuğu (sadece admin görür) */
.tma-fp-admin {
	position: fixed; right: 18px; bottom: 18px; z-index: 200;
	display: flex; align-items: center; gap: 6px;
	background: var(--tmap-navy); border-radius: 99px; padding: 6px 6px 6px 6px;
	box-shadow: 0 10px 30px rgba(11,19,45,0.35);
}
.tma-fp-admin__edit {
	display: inline-flex; align-items: center; gap: 8px;
	color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
	padding: 8px 16px; border-radius: 99px; background: rgba(255,255,255,0.08);
	transition: background 0.15s ease;
}
.tma-fp-admin__edit:hover { background: var(--tmap-blue); }
.tma-fp-admin__link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; color: #c9d6f2;
	text-decoration: none; transition: background 0.15s ease, color 0.15s ease;
}
.tma-fp-admin__link:hover { background: rgba(255,255,255,0.1); color: #fff; }
@media (max-width: 640px) {
	.tma-fp-admin { right: 12px; bottom: 12px; }
	.tma-fp-admin__edit span, .tma-fp-admin__edit { font-size: 12px; }
}

/* ---------- Kilitli özel kartlar (drip / zamanlı içerik) ---------- */
.tma-lcard--custom.tma-lcard--drip {
	cursor: default;
	filter: none;
	position: relative;
}
.tma-lcard--custom.tma-lcard--drip::before {
	content: "";
	position: absolute; inset: 0;
	background: rgba(7, 11, 24, 0.48);
	border-radius: inherit;
	z-index: 1;
}
.tma-lcard--custom.tma-lcard--drip > * { position: relative; z-index: 2; }
.tma-lcard--custom.tma-lcard--drip .t,
.tma-lcard--custom.tma-lcard--drip .no { opacity: 0.55; }
.tma-lock-badge {
	position: absolute; top: 12px; right: 12px; z-index: 3;
	width: 26px; height: 26px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.12); color: #dfe5f5;
	backdrop-filter: blur(3px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
/* Üzerine gelince: kartın İÇİNDE zarif açıklama kaplaması (taşma/kırpılma yok).
   İlk satır: "X gün sonra açılır" — ikinci satır: erken açma daveti. */
/* Kilit mesajı — GERÇEK eleman (pseudo ::after aspect-ratio'lu kartta
   yanlış yükseklik veriyordu; gerçek eleman kartla birebir hizalanır). */
.tma-lcard__lockmsg {
	position: absolute; inset: 0; z-index: 10; box-sizing: border-box;
	display: flex; align-items: center; justify-content: center;
	padding: 18px 22px; text-align: center;
	background: #0b1020;
	color: #eef1f8;
	font-family: var(--tmap-font); font-size: 12.5px; font-weight: 500;
	line-height: 1.65; letter-spacing: 0.005em;
	border-radius: inherit;
	opacity: 0; pointer-events: none;
	transition: opacity 0.18s ease;
}
.tma-lcard--drip:hover .tma-lcard__lockmsg { opacity: 1; }
.tma-lcard--drip:hover { transform: none !important; box-shadow: 0 14px 34px rgba(11, 19, 45, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important; }

/* ---------- Ödeme aşaması (2. ödeme) kartları ---------- */
/* 2. aşamaya atanmış kartlar: ince kehribar üst çizgi + kehribar üst etiket
   (kilitli olsun olmasın hafifçe ayrışır, tasarım dili bozulmaz). */
.tma-lcard[data-part="2"],
.tma-lcard--part {
	box-shadow: 0 14px 34px rgba(11, 19, 45, 0.24),
		inset 0 2px 0 0 rgba(217, 119, 6, 0.85),
		inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.tma-lcard[data-part="2"] .no,
.tma-lcard--part .no { color: #f0b35c; }
/* Aşama kilidi: rozet ve kilit yazısı kehribar */
.tma-lcard--part .tma-lock-badge,
.tma-lcard--part .lock { color: #f0b35c; }
.tma-lcard--part .tma-lcard__lockmsg {
	background: #180e04;
	color: #f6e8d4;
}
