/*
Theme Name: Matching Theme
Theme URI: https://example.com/matching-theme
Description: Монгол–Япон танилцах сайтын theme — Matching Site plugin-тэй зохицсон, гурван хэлтэй (MN/JA/EN), романтик ягаан–улбар шар өнгөний схемтэй, responsive. Marketing хуудсууд (нүүр, тухай, үнэ, аюулгүй байдал, холбоо барих, 404) + plugin-ий гишүүний shortcode-уудыг ороож харуулна.
Author: Tsengenbayar
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: matching-theme
*/

/* ============================================================
   Design tokens (романтик ягаан → ягаан → улбар шар градиент,
   plugin-ий #7c3aed нил ягаантай нэгдмэл)
   ============================================================ */

:root {
	--mt-primary: #7c3aed;
	--mt-primary-dark: #6d28d9;
	--mt-pink: #ec4899;
	--mt-orange: #f97316;
	--mt-grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 55%, #f97316 100%);
	--mt-grad-soft: linear-gradient(135deg, #faf5ff 0%, #fdf2f8 50%, #fff7ed 100%);

	--mt-bg: #ffffff;
	--mt-alt: #faf7ff;
	--mt-card: #ffffff;
	--mt-text: #1f2937;
	--mt-muted: #6b7280;
	--mt-border: #ece9f2;
	--mt-radius: 16px;
	--mt-shadow: 0 10px 30px rgba(124, 58, 237, .10);
	--mt-max: 1120px;
	--mt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
		"Hiragino Sans", "Noto Sans JP", "Noto Sans Mongolian", Arial, sans-serif;
}

/* Dark mode (plugin toggles html.ms-dark; keep theme cohesive with it). */
html.ms-dark {
	--mt-bg: #0f1115;
	--mt-alt: #14121c;
	--mt-card: #1b1f27;
	--mt-text: #e5e7eb;
	--mt-muted: #9ca3af;
	--mt-border: #2c2836;
	--mt-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

/* ============================================================
   Base
   ============================================================ */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--mt-font);
	color: var(--mt-text);
	background: var(--mt-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--mt-primary); }

.mt-container {
	width: 100%;
	max-width: var(--mt-max);
	margin: 0 auto;
	padding: 0 20px;
}

.mt-skip-link {
	position: absolute;
	left: -9999px;
}
.mt-skip-link:focus {
	left: 12px; top: 12px;
	background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100000;
}

/* ============================================================
   Buttons
   ============================================================ */

.mt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .12s ease, box-shadow .12s ease, background .15s;
	white-space: nowrap;
}
.mt-btn:hover { transform: translateY(-1px); }
.mt-btn-lg { padding: 15px 32px; font-size: 17px; }

.mt-btn-primary {
	background: var(--mt-grad);
	color: #fff;
	box-shadow: 0 8px 20px rgba(236, 72, 153, .35);
}
.mt-btn-primary:hover { box-shadow: 0 12px 26px rgba(236, 72, 153, .45); color: #fff; }

.mt-btn-outline {
	background: transparent;
	color: var(--mt-primary);
	border-color: var(--mt-primary);
}
.mt-btn-outline:hover { background: rgba(124, 58, 237, .08); }

.mt-btn-ghost {
	background: transparent;
	color: var(--mt-text);
	border-color: var(--mt-border);
	padding: 8px 16px;
	font-size: 14px;
}
.mt-btn-ghost:hover { background: var(--mt-alt); }

.mt-btn-white {
	background: #fff;
	color: var(--mt-primary);
}
.mt-btn-white:hover { color: var(--mt-primary-dark); }

/* ============================================================
   Header
   ============================================================ */

.mt-header {
	position: sticky;
	top: 0;
	z-index: 999;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--mt-border);
}
html.ms-dark .mt-header { background: rgba(15, 17, 21, .85); }

.mt-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 66px;
}

.mt-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--mt-text);
}
.mt-logo-mark { font-size: 26px; }
.mt-logo-text { font-weight: 800; font-size: 18px; line-height: 1.1; }
.mt-logo-text small { display: block; font-weight: 500; font-size: 11px; color: var(--mt-muted); }

.mt-nav {
	display: flex;
	align-items: center;
	gap: 22px;
}
.mt-nav-list {
	display: flex;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.mt-nav-list a {
	text-decoration: none;
	color: var(--mt-text);
	font-weight: 600;
	font-size: 15px;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
}
.mt-nav-list a:hover { color: var(--mt-primary); border-color: var(--mt-primary); }

.mt-header-actions { display: flex; align-items: center; gap: 10px; }

.mt-lang { display: inline-flex; gap: 2px; margin-right: 4px; }
.mt-lang-link {
	padding: 4px 8px;
	border-radius: 999px;
	text-decoration: none;
	color: var(--mt-muted);
	font-size: 12px;
	font-weight: 700;
}
.mt-lang-link:hover { color: var(--mt-primary); }
.mt-lang-active { background: var(--mt-primary); color: #fff !important; }

.mt-nav-toggle {
	display: none;
	border: none;
	background: transparent;
	font-size: 26px;
	cursor: pointer;
	color: var(--mt-text);
}

/* ============================================================
   Hero
   ============================================================ */

.mt-hero {
	position: relative;
	overflow: hidden;
	background: var(--mt-grad-soft);
	text-align: center;
	padding: 90px 0 100px;
}
html.ms-dark .mt-hero { background: linear-gradient(135deg, #1a1330, #2a1420, #241a10); }
.mt-hero-inner { position: relative; z-index: 2; max-width: 780px; }
.mt-hero-title {
	font-size: clamp(30px, 5vw, 52px);
	line-height: 1.15;
	margin: 0 0 18px;
	font-weight: 800;
	background: var(--mt-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.mt-hero-sub {
	font-size: clamp(16px, 2.2vw, 20px);
	color: var(--mt-muted);
	margin: 0 auto 32px;
	max-width: 620px;
}
.mt-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.mt-hero-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: .5;
	z-index: 1;
}
.mt-hero-blob-1 { width: 340px; height: 340px; background: #f9a8d4; top: -80px; left: -60px; }
.mt-hero-blob-2 { width: 300px; height: 300px; background: #c4b5fd; bottom: -90px; right: -50px; }

/* ============================================================
   Sections
   ============================================================ */

.mt-section { padding: 74px 0; }
.mt-section-alt { background: var(--mt-alt); }
.mt-section-title {
	text-align: center;
	font-size: clamp(24px, 3.4vw, 34px);
	margin: 0 0 12px;
	font-weight: 800;
}
.mt-section-title-light { color: #fff; }
.mt-section-sub { text-align: center; color: var(--mt-muted); margin: 0 auto 36px; max-width: 560px; }

/* How it works */
.mt-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 42px;
}
.mt-step {
	position: relative;
	background: var(--mt-card);
	border: 1px solid var(--mt-border);
	border-radius: var(--mt-radius);
	padding: 34px 24px 26px;
	text-align: center;
	box-shadow: var(--mt-shadow);
}
.mt-step-num {
	position: absolute;
	top: -18px; left: 50%;
	transform: translateX(-50%);
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--mt-grad);
	color: #fff;
	font-weight: 800;
	display: flex; align-items: center; justify-content: center;
}
.mt-step-emoji { font-size: 44px; margin-bottom: 10px; }
.mt-step h3 { margin: 0 0 8px; font-size: 20px; }
.mt-step p { margin: 0; color: var(--mt-muted); font-size: 15px; }

/* Stats */
.mt-stats-section { background: var(--mt-grad); }
.mt-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 34px;
}
.mt-stat { text-align: center; color: #fff; }
.mt-stat-num { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.mt-stat-label { font-size: 14px; opacity: .92; margin-top: 4px; }

/* Testimonials */
.mt-testimonials {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 42px;
}
.mt-testimonial {
	background: var(--mt-card);
	border: 1px solid var(--mt-border);
	border-radius: var(--mt-radius);
	padding: 26px 24px;
	margin: 0;
	box-shadow: var(--mt-shadow);
}
.mt-testimonial-avatar {
	width: 54px; height: 54px;
	border-radius: 50%;
	background: var(--mt-grad-soft);
	display: flex; align-items: center; justify-content: center;
	font-size: 26px;
	margin-bottom: 12px;
}
.mt-testimonial blockquote { margin: 0 0 12px; font-size: 15px; line-height: 1.6; }
.mt-testimonial figcaption { font-weight: 700; color: var(--mt-primary); }

/* CTA */
.mt-cta {
	background: var(--mt-grad);
	color: #fff;
	text-align: center;
	padding: 70px 0;
}
.mt-cta-inner h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; }
.mt-cta-inner p { margin: 0 0 26px; opacity: .95; font-size: 17px; }

/* ============================================================
   Inner page shells
   ============================================================ */

.mt-page-hero {
	background: var(--mt-grad-soft);
	padding: 60px 0 50px;
	text-align: center;
}
html.ms-dark .mt-page-hero { background: linear-gradient(135deg, #1a1330, #241a20); }
.mt-page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.mt-page-hero p { color: var(--mt-muted); margin: 0; font-size: 17px; }

.mt-prose { max-width: 760px; }
.mt-prose h2 { margin: 28px 0 10px; font-size: 24px; }
.mt-prose p { color: var(--mt-text); font-size: 16px; }
.mt-page-title { font-size: clamp(26px, 4vw, 36px); margin: 0 0 18px; }

/* Team */
.mt-team {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 36px;
}
.mt-team-card {
	background: var(--mt-card);
	border: 1px solid var(--mt-border);
	border-radius: var(--mt-radius);
	padding: 28px 20px;
	text-align: center;
	box-shadow: var(--mt-shadow);
}
.mt-team-avatar {
	width: 84px; height: 84px;
	border-radius: 50%;
	margin: 0 auto 14px;
	background: var(--mt-grad-soft);
	display: flex; align-items: center; justify-content: center;
	font-size: 40px;
}
.mt-team-name { font-weight: 700; font-size: 17px; }
.mt-team-role { color: var(--mt-muted); font-size: 14px; }

/* Pricing plans */
.mt-plans {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 380px));
	gap: 26px;
	justify-content: center;
	align-items: start;
}
.mt-plan {
	position: relative;
	background: var(--mt-card);
	border: 1px solid var(--mt-border);
	border-radius: var(--mt-radius);
	padding: 32px 28px;
	box-shadow: var(--mt-shadow);
	text-align: center;
}
.mt-plan-featured {
	border: 2px solid var(--mt-primary);
	transform: scale(1.03);
}
.mt-plan-badge {
	position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
	background: var(--mt-grad); color: #fff;
	padding: 4px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.mt-plan-name { font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.mt-plan-price { font-size: 40px; font-weight: 800; margin-bottom: 18px; }
.mt-plan-price span { font-size: 15px; font-weight: 600; color: var(--mt-muted); }
.mt-plan-features { list-style: none; margin: 0 0 22px; padding: 0; text-align: left; }
.mt-plan-features li { padding: 8px 0; border-bottom: 1px solid var(--mt-border); font-size: 15px; }
.mt-plan-off { color: var(--mt-muted); opacity: .7; }

/* Coin packages */
.mt-coins {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-top: 20px;
}
.mt-coin-card {
	position: relative;
	background: var(--mt-card);
	border: 1px solid var(--mt-border);
	border-radius: var(--mt-radius);
	padding: 28px 22px;
	text-align: center;
	box-shadow: var(--mt-shadow);
}
.mt-coin-best { border: 2px solid var(--mt-orange); }
.mt-coin-ribbon {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
	background: var(--mt-orange); color: #fff;
	padding: 3px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
	white-space: nowrap;
}
.mt-coin-amount { font-size: 30px; font-weight: 800; color: #d97706; }
.mt-coin-unit { color: var(--mt-muted); font-size: 13px; margin-bottom: 8px; }
.mt-coin-price { font-size: 22px; font-weight: 700; margin-bottom: 16px; }

/* Safety tips */
.mt-tips {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 22px;
}
.mt-tip {
	display: flex;
	gap: 16px;
	background: var(--mt-card);
	border: 1px solid var(--mt-border);
	border-radius: var(--mt-radius);
	padding: 22px 24px;
	box-shadow: var(--mt-shadow);
}
.mt-tip-icon {
	font-size: 34px;
	flex: 0 0 auto;
}
.mt-tip h3 { margin: 0 0 6px; font-size: 18px; }
.mt-tip p { margin: 0; color: var(--mt-muted); font-size: 15px; }

/* Contact */
.mt-contact-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 40px;
	align-items: start;
}
.mt-contact-form { display: flex; flex-direction: column; gap: 16px; }
.mt-contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.mt-contact-form input,
.mt-contact-form textarea {
	padding: 12px 14px;
	border: 1px solid var(--mt-border);
	border-radius: 10px;
	font-size: 15px;
	font-family: inherit;
	background: var(--mt-bg);
	color: var(--mt-text);
}
.mt-contact-info {
	background: var(--mt-alt);
	border-radius: var(--mt-radius);
	padding: 26px 24px;
}
.mt-contact-info h3 { margin-top: 0; }

.mt-notice { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.mt-notice-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.mt-notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Social */
.mt-social { display: flex; gap: 12px; font-size: 22px; margin-top: 12px; }
.mt-social a { text-decoration: none; }
.mt-social-dark a { filter: grayscale(.2); }

/* 404 */
.mt-404-inner { text-align: center; max-width: 520px; margin: 0 auto; }
.mt-404-emoji { font-size: 64px; }
.mt-404 h1 { font-size: 80px; margin: 6px 0 0; background: var(--mt-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mt-404 h2 { margin: 0 0 10px; }
.mt-404 p { color: var(--mt-muted); margin-bottom: 26px; }

/* ============================================================
   Footer
   ============================================================ */

.mt-footer { background: #14121c; color: #d1d5db; }
.mt-footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 32px;
	padding: 54px 20px 40px;
}
.mt-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.mt-footer ul { list-style: none; margin: 0; padding: 0; }
.mt-footer li { margin-bottom: 9px; }
.mt-footer a { color: #d1d5db; text-decoration: none; font-size: 14px; }
.mt-footer a:hover { color: #fff; }
.mt-footer-brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.mt-footer-about { font-size: 14px; color: #9ca3af; max-width: 300px; }
.mt-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 18px 0;
	font-size: 13px;
	color: #9ca3af;
	text-align: center;
}

/* Blog list (index fallback) */
.mt-post { padding: 20px 0; border-bottom: 1px solid var(--mt-border); }
.mt-post-title { margin: 0 0 6px; }
.mt-post-title a { text-decoration: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
	.mt-steps, .mt-testimonials, .mt-team, .mt-coins { grid-template-columns: 1fr; }
	.mt-stats { grid-template-columns: repeat(2, 1fr); }
	.mt-tips { grid-template-columns: 1fr; }
	.mt-plans { grid-template-columns: 1fr; }
	.mt-plan-featured { transform: none; }
	.mt-contact-grid { grid-template-columns: 1fr; }
	.mt-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	.mt-nav-toggle { display: block; }
	.mt-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--mt-card);
		border-bottom: 1px solid var(--mt-border);
		padding: 10px 20px 18px;
		display: none;
		box-shadow: var(--mt-shadow);
	}
	.mt-nav.mt-nav-open { display: flex; }
	.mt-nav-list { flex-direction: column; gap: 4px; }
	.mt-nav-list a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mt-border); }
	.mt-header-actions { flex-wrap: wrap; margin-top: 12px; }
	.mt-hero { padding: 64px 0 72px; }
	.mt-section { padding: 54px 0; }
}

@media (max-width: 480px) {
	.mt-stats, .mt-footer-grid { grid-template-columns: 1fr; }
	.mt-hero-cta { flex-direction: column; }
	.mt-hero-cta .mt-btn { width: 100%; }
}
