/* Matrixat global frontend theme — Font Awesome palette & components */

:root {
	--mx-fa-navy: #031832;
	--mx-fa-ink: #0e1c2f;
	--mx-fa-muted: #5c6f82;
	--mx-fa-surface: #f5f8fc;
	--mx-fa-surface-2: #eef3f9;
	--mx-fa-border: #d4dee8;
	--mx-fa-yellow: #face12;
	--mx-fa-mint: #5ce1c6;
	--mx-fa-mint-hover: #3fd4b6;
	--mx-fa-coral: #ff6b6b;
	--mx-fa-purple: #7c6cf0;
	--mx-radius: 1rem;
	--mx-radius-lg: 1.25rem;
	--mx-radius-pill: 999px;
	--mx-shadow: 0 14px 40px rgba(3, 24, 50, 0.09);
	--mx-shadow-sm: 0 4px 16px rgba(3, 24, 50, 0.06);
}

body.mx-frontend {
	font-family: 'Inter', var(--font-family-sans-serif);
	color: var(--mx-fa-ink);
	background: #fff;
}

body.mx-frontend h1,
body.mx-frontend h2,
body.mx-frontend h3,
body.mx-frontend h4,
body.mx-frontend h5,
body.mx-frontend .mx-nav__brand {
	font-family: 'Inter', var(--font-family-sans-serif);
	letter-spacing: -0.02em;
}

/* Bootstrap token overrides (frontend only) */
body.mx-frontend {
	--primary: var(--mx-fa-mint);
	--primary-50: #edfcf8;
	--primary-100: #d4f9f0;
	--primary-600: #14b8a6;
	--primary-700: #0f9a8a;
	--primary-800: #0d7c70;
}

body.mx-frontend .btn-primary {
	background: var(--mx-fa-mint);
	border: 2px solid var(--mx-fa-navy);
	color: var(--mx-fa-navy);
	font-weight: 700;
	border-radius: var(--mx-radius-pill);
}

body.mx-frontend .btn-primary:hover,
body.mx-frontend .btn-primary:focus {
	background: var(--mx-fa-mint-hover);
	border-color: var(--mx-fa-navy);
	color: var(--mx-fa-navy);
	box-shadow: var(--mx-shadow-sm);
}

body.mx-frontend .btn-gray-200,
body.mx-frontend .btn-light {
	background: #fff;
	border: 2px solid var(--mx-fa-navy);
	color: var(--mx-fa-navy);
	font-weight: 700;
	border-radius: var(--mx-radius-pill);
}

body.mx-frontend .btn-gray-200:hover {
	background: var(--mx-fa-surface);
	color: var(--mx-fa-navy);
}

body.mx-frontend .card {
	border: 2px solid var(--mx-fa-border);
	border-radius: var(--mx-radius-lg);
	box-shadow: var(--mx-shadow-sm);
}

body.mx-frontend .form-control {
	border: 2px solid var(--mx-fa-border);
	border-radius: 0.75rem;
}

body.mx-frontend .form-control:focus {
	border-color: var(--mx-fa-mint-hover);
	box-shadow: 0 0 0 0.2rem rgba(92, 225, 198, 0.25);
}

body.mx-frontend .form-control-lg {
	border-radius: var(--mx-radius-pill);
}

/* Announcement + nav (shared with homepage) */
.mx-announce {
	background: linear-gradient(90deg, var(--mx-fa-navy) 0%, #0a2a4a 100%);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	padding: 0.65rem 1rem;
}

.mx-announce a {
	color: var(--mx-fa-yellow);
	font-weight: 700;
	text-decoration: none;
}

.mx-announce a:hover {
	text-decoration: underline;
}

.mx-nav-wrap {
	position: sticky;
	top: 0;
	z-index: 1030;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mx-fa-border);
}

.mx-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
}

.mx-nav__brand {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--mx-fa-navy) !important;
	text-decoration: none !important;
	letter-spacing: 0.02em;
}

.mx-nav__links .nav-link {
	color: var(--mx-fa-ink) !important;
	font-weight: 600;
	font-size: 0.92rem;
	padding: 0.45rem 0.85rem !important;
	border-radius: var(--mx-radius-pill);
}

.mx-nav__links .nav-link:hover,
.mx-nav__links .nav-link.active {
	background: var(--mx-fa-surface);
	color: var(--mx-fa-navy) !important;
}

.mx-nav__cta .btn {
	font-weight: 700;
	border-radius: var(--mx-radius-pill);
	padding: 0.55rem 1.2rem;
	border-width: 2px;
}

.btn-outline-mx {
	border: 2px solid var(--mx-fa-navy);
	color: var(--mx-fa-navy);
	background: #fff;
}

.btn-outline-mx:hover {
	background: var(--mx-fa-navy);
	color: #fff;
}

.btn-mx-primary {
	background: var(--mx-fa-mint);
	border: 2px solid var(--mx-fa-navy);
	color: var(--mx-fa-navy);
}

.btn-mx-primary:hover {
	background: var(--mx-fa-mint-hover);
	color: var(--mx-fa-navy);
}

.mx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-weight: 700;
	font-size: 1rem;
	padding: 0.8rem 1.75rem;
	border-radius: var(--mx-radius-pill);
	border: 2px solid var(--mx-fa-navy);
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	color: var(--mx-fa-navy);
}

.mx-btn:hover {
	transform: translateY(-1px);
	box-shadow: var(--mx-shadow-sm);
	color: var(--mx-fa-navy);
}

.mx-btn--primary {
	background: var(--mx-fa-mint);
	color: var(--mx-fa-navy);
}

.mx-btn--primary:hover {
	background: var(--mx-fa-mint-hover);
	color: var(--mx-fa-navy);
}

.mx-btn--ghost {
	background: #fff;
	color: var(--mx-fa-navy);
}

.mx-btn--ghost:hover {
	background: var(--mx-fa-surface);
	color: var(--mx-fa-navy);
}

/* Page shell (tools, blog, plan, contact, etc.) */
.mx-shell {
	padding: 2rem 0 3rem;
}

.mx-shell--hero {
	padding: 3rem 0 2.5rem;
	background:
		radial-gradient(ellipse 70% 50% at 50% -5%, rgba(92, 225, 198, 0.14), transparent 60%),
		linear-gradient(180deg, var(--mx-fa-surface) 0%, #fff 100%);
	border-bottom: 1px solid var(--mx-fa-border);
	margin-bottom: 2rem;
}

.mx-shell__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 800;
	color: var(--mx-fa-navy);
	margin-bottom: 0.5rem;
}

.mx-shell__lead {
	font-size: 1.05rem;
	color: var(--mx-fa-muted);
	max-width: 42rem;
}

.mx-shell__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mx-fa-navy);
	background: rgba(250, 206, 18, 0.35);
	border: 1px solid rgba(3, 24, 50, 0.1);
	border-radius: var(--mx-radius-pill);
	padding: 0.3rem 0.75rem;
	margin-bottom: 0.75rem;
}

/* Tool pages */
body.mx-tool-page main {
	background: linear-gradient(180deg, var(--mx-fa-surface) 0%, #fff 280px);
}

body.mx-tool-page main .container {
	max-width: 960px;
}

body.mx-tool-page .custom-breadcrumbs {
	background: #fff;
	border: 1px solid var(--mx-fa-border);
	border-radius: var(--mx-radius-pill);
	padding: 0.5rem 1rem;
	margin-bottom: 1.25rem;
}

body.mx-tool-page .custom-breadcrumbs a {
	color: var(--mx-fa-muted);
	font-weight: 600;
}

body.mx-tool-page .custom-breadcrumbs .active {
	color: var(--mx-fa-navy);
	font-weight: 700;
}

body.mx-frontend .h3,
body.mx-frontend .h4,
body.mx-frontend h1.h3,
body.mx-frontend h1.h4 {
	font-weight: 800;
	color: var(--mx-fa-navy);
}

body.mx-frontend .mx-shell h1.h3,
body.mx-frontend .mx-shell h1.h4 {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
}

body.mx-tool-page .card .card-body {
	padding: 1.5rem;
}

body.mx-tool-page label {
	font-weight: 600;
	color: var(--mx-fa-ink);
}

body.mx-tool-page .small.font-weight-bold.text-uppercase.text-muted {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: var(--mx-fa-purple) !important;
	font-weight: 800 !important;
}

body.mx-tool-page .tool-icon-wrapper .tool-icon {
	border-radius: 0.85rem;
	border: 2px solid var(--mx-fa-border);
}

/* Share block */
body.mx-tool-page .mx-share__title {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mx-fa-navy);
	font-weight: 800;
	margin-bottom: 0.75rem;
}

body.mx-tool-page .mx-share__url .form-control {
	border: 2px solid var(--mx-fa-border);
	border-radius: var(--mx-radius-pill) 0 0 var(--mx-radius-pill);
	background: var(--mx-fa-surface);
	font-size: 0.9rem;
	color: var(--mx-fa-ink);
}

body.mx-tool-page .mx-share__url .btn-primary {
	border-radius: 0 var(--mx-radius-pill) var(--mx-radius-pill) 0;
	white-space: nowrap;
}

body.mx-tool-page .mx-share__buttons {
	gap: 0.5rem;
}

body.mx-tool-page .mx-share__btn {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50% !important;
	border: 2px solid var(--mx-fa-border) !important;
	font-size: 1rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.mx-tool-page .mx-share__btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--mx-shadow-sm);
}

/* Tool widgets */
body.mx-frontend .card.d-flex.flex-row.h-100 {
	border: 2px solid var(--mx-fa-border);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

body.mx-frontend .card.d-flex.flex-row.h-100:hover {
	transform: translateY(-2px);
	box-shadow: var(--mx-shadow-sm);
	border-color: var(--mx-fa-mint-hover);
}

/* Category hero (legacy index-background) */
body.mx-frontend .index-background {
	background:
		radial-gradient(ellipse 70% 50% at 50% -5%, rgba(92, 225, 198, 0.12), transparent 60%),
		linear-gradient(180deg, var(--mx-fa-surface) 0%, #fff 100%) !important;
	border-bottom: 1px solid var(--mx-fa-border);
}

body.mx-frontend .index-header {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	color: var(--mx-fa-navy) !important;
}

body.mx-frontend .index-subheader {
	color: var(--mx-fa-muted);
	font-size: 1.1rem;
}

body.mx-frontend .index-button {
	border-radius: var(--mx-radius-pill);
	border: 2px solid var(--mx-fa-navy);
	font-weight: 700;
}

/* Footer */
body.mx-frontend .app-footer {
	border-top: 2px solid var(--mx-fa-border);
	padding-top: 2rem;
	margin-top: 2rem;
}

body.mx-frontend .footer-heading {
	font-weight: 800;
	color: var(--mx-fa-navy) !important;
	text-decoration: none !important;
}

body.mx-frontend .app-footer a {
	color: var(--mx-fa-muted);
	font-weight: 600;
}

body.mx-frontend .app-footer a:hover {
	color: var(--mx-fa-navy);
}

/* Auth pages (basic_wrapper) */
body.mx-auth {
	background: var(--mx-fa-surface) !important;
	font-family: 'Inter', var(--font-family-sans-serif);
}

body.mx-auth .card.rounded-2x {
	border: 2px solid var(--mx-fa-navy);
	border-radius: var(--mx-radius-lg) !important;
	box-shadow: var(--mx-shadow);
}

body.mx-auth .card-body {
	padding: 2rem !important;
}

body.mx-auth .h3 {
	font-weight: 800;
	color: var(--mx-fa-navy);
}

body.mx-auth .btn-primary {
	width: 100%;
	padding: 0.75rem;
}

/* Account / app area */
body.mx-app main .container {
	padding-top: 1rem;
}

body.mx-app .card {
	border: 2px solid var(--mx-fa-border);
}

/* Pricing cards */
body.mx-frontend .pricing-card,
body.mx-frontend [class*="plan-"] .card {
	border: 2px solid var(--mx-fa-border);
	border-radius: var(--mx-radius-lg);
}

/* Blog */
body.mx-frontend .blog-post-image-small {
	border-radius: var(--mx-radius);
	border: 1px solid var(--mx-fa-border);
}

body.mx-frontend-light {
	color-scheme: light only;
}

/* Footer — Powered by Masfofat */
.mx-powered-by {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.9rem;
}

.mx-powered-by__label {
	color: var(--mx-fa-muted, #5c6f82);
	font-weight: 500;
}

.mx-powered-by__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	text-decoration: none !important;
	line-height: 1;
	transition: opacity 0.15s ease;
}

.mx-powered-by__link:hover {
	opacity: 0.85;
}

.mx-powered-by__mark {
	display: block;
	height: 1.75rem;
	width: auto;
	flex-shrink: 0;
	object-fit: contain;
}

.mx-powered-by__brand {
	font-size: 1rem;
	font-weight: 800;
	color: var(--mx-fa-navy, #031832);
	letter-spacing: 0.01em;
	line-height: 1;
}

@media (max-width: 991px) {
	.mx-nav__links {
		padding: 0.75rem 0;
	}

	.mx-nav__cta {
		padding-bottom: 0.75rem;
	}
}
