/**
 * UniteElements Developer & Commerce SaaS Tool Suite Stylesheet
 * Brand White Glassmorphism + Space Grotesk Typography + Mobile Optimized
 *
 * @package UniteElements_Theme
 * @author Jyotirmay Ray <https://jyotirmayray.in/>
 */

/* Hero */
.ue-tool-page-main {
	background: #FAFAFC;
	min-height: 100vh;
}

.ue-tool-hero {
	padding: clamp(40px, 6vw, 72px) 0 32px;
	background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
	border-bottom: 1px solid #E2E8F0;
	text-align: center;
}

.ue-tool-hero-inner {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.ue-tool-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 9999px;
	background: rgba(43, 93, 245, 0.08);
	border: 1px solid rgba(43, 93, 245, 0.2);
	color: #2B5DF5;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ue-tool-pill-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #2B5DF5;
	flex-shrink: 0;
}

.ue-tool-hero-title {
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: clamp(26px, 4.5vw, 42px);
	font-weight: 800;
	color: #0F172A;
	letter-spacing: -0.03em;
	margin: 0;
	line-height: 1.15;
}

.ue-tool-hero-subtitle {
	font-size: clamp(14px, 2vw, 16px);
	color: #64748B;
	margin: 0;
	line-height: 1.6;
	max-width: 720px;
}

/* Stage Section */
.ue-tool-stage-section {
	padding: clamp(32px, 5vw, 64px) 0;
}

.ue-schema-studio-card {
	background: #FFFFFF;
	border: 1.5px solid #E2E8F0;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

/* Schema Type Tabs Bar */
.ue-schema-type-bar {
	padding: 14px 20px;
	background: #F8FAFC;
	border-bottom: 1.5px solid #E2E8F0;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.ue-schema-bar-label {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 800;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.ue-schema-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ue-schema-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 9999px;
	background: #FFFFFF;
	border: 1.5px solid #CBD5E1;
	color: #334155;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.15s ease;
	outline: none;
}

.ue-schema-tab-btn:hover {
	border-color: #2B5DF5;
	color: #2B5DF5;
}

.ue-schema-tab-btn.is-active {
	background: #2B5DF5;
	border-color: #2B5DF5;
	color: #FFFFFF;
	box-shadow: 0 2px 8px rgba(43, 93, 245, 0.25);
}

/* Dual Grid */
.ue-schema-dual-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	min-height: 520px;
}

.ue-schema-form-pane {
	padding: 0;
	background: #FFFFFF;
	display: flex;
	flex-direction: column;
	border-right: 1.5px solid #E2E8F0;
}

.ue-pane-header {
	padding: 14px 20px;
	background: #FAFAFC;
	border-bottom: 1px solid #E2E8F0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ue-pane-title {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	color: #0F172A;
}

.ue-pane-status {
	font-size: 11px;
	font-weight: 800;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.1);
	color: #059669;
	text-transform: uppercase;
}

.ue-schema-form-content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	overflow-y: auto;
	max-height: 600px;
}

/* Form Elements */
.ue-tools-form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ue-tools-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ue-tools-form-label {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	color: #334155;
	margin: 0;
}

.ue-tools-form-input,
.ue-tools-form-select,
.ue-tools-form-textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1.5px solid #CBD5E1;
	border-radius: 8px;
	background: #FFFFFF;
	font-size: 13.5px;
	color: #0F172A;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.ue-tools-form-input:focus,
.ue-tools-form-select:focus,
.ue-tools-form-textarea:focus {
	border-color: #2B5DF5;
	box-shadow: 0 0 0 3px rgba(43, 93, 245, 0.12);
}

.ue-tools-add-row-btn {
	padding: 8px 14px;
	border-radius: 8px;
	background: #F1F5F9;
	border: 1px dashed #CBD5E1;
	color: #2B5DF5;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
}

.ue-tools-add-row-btn:hover {
	background: rgba(43, 93, 245, 0.08);
	border-color: #2B5DF5;
}

/* Right Code Terminal Pane */
.ue-schema-code-pane {
	background: #0B1120;
	display: flex;
	flex-direction: column;
	position: relative;
}

.ue-terminal-topbar {
	padding: 12px 18px;
	background: #0F172A;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ue-terminal-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ue-terminal-dots .t-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.ue-terminal-dots .t-dot.r { background: #EF4444; }
.ue-terminal-dots .t-dot.y { background: #F59E0B; }
.ue-terminal-dots .t-dot.g { background: #10B981; }

.ue-terminal-filename {
	font-family: 'Fira Code', monospace;
	font-size: 12px;
	color: #94A3B8;
}

.ue-btn-terminal-copy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #2B5DF5;
	border: none;
	color: #FFFFFF;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ue-btn-terminal-copy:hover {
	background: #1D4ED8;
}

.ue-terminal-body {
	flex: 1;
	margin: 0;
	padding: 20px;
	background: #0B1120;
	color: #38BDF8;
	font-family: 'Fira Code', 'SF Mono', Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.6;
	overflow: auto;
	max-height: 480px;
}

.ue-terminal-footer {
	padding: 12px 18px;
	background: #0F172A;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ue-btn-tool-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #E2E8F0;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ue-btn-tool-secondary:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #FFFFFF;
}

/* Banner Ad Component */
.ue-tools-banner-ad-card {
	background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
	border: 1.5px solid rgba(43, 93, 245, 0.25);
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: 0 8px 24px rgba(43, 93, 245, 0.06);
	position: relative;
}

.ue-ad-badge-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.ue-ad-badge {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(43, 93, 245, 0.1);
	border: 1px solid rgba(43, 93, 245, 0.2);
	color: #2B5DF5;
	letter-spacing: 0.05em;
}

.ue-ad-discount {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 10.5px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.12);
	color: #059669;
}

.ue-ad-content-split {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ue-ad-text-block {
	flex: 1;
	min-width: 280px;
}

.ue-ad-title {
	font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 4px;
	line-height: 1.25;
}

.ue-ad-desc {
	font-size: 13.5px;
	color: #64748B;
	margin: 0;
	line-height: 1.5;
}

.ue-ad-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 9999px;
	background: linear-gradient(135deg, #2B5DF5 0%, #1D4ED8 100%);
	color: #FFFFFF;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(43, 93, 245, 0.25);
	transition: all 0.2s ease;
	white-space: nowrap;
}

.ue-ad-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(43, 93, 245, 0.35);
}

.ue-ad-dots-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.ue-ad-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #CBD5E1;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ue-ad-dot.is-active {
	width: 22px;
	border-radius: 999px;
	background: #2B5DF5;
}

/* In-Depth Article Guide Card */
.ue-tool-article-card {
	background: #FFFFFF;
	border: 1.5px solid #E2E8F0;
	border-radius: 16px;
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
	margin-top: 40px;
}

.ue-tool-article-card h2 {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: clamp(20px, 3vw, 26px);
	font-weight: 800;
	color: #0F172A;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}

.ue-tool-article-card h3 {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #1E293B;
	margin: 24px 0 10px;
}

.ue-tool-article-card p {
	font-size: 14.5px;
	line-height: 1.7;
	color: #475569;
	margin: 0 0 14px;
}

.ue-tool-callout-box {
	display: flex;
	gap: 14px;
	padding: 16px 20px;
	background: rgba(43, 93, 245, 0.05);
	border-left: 4px solid #2B5DF5;
	border-radius: 0 10px 10px 0;
	margin: 20px 0;
}

.ue-callout-icon { font-size: 20px; }
.ue-callout-text { font-size: 13.5px; line-height: 1.6; color: #334155; }

/* Modal Styles */
.ue-tools-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.ue-tools-modal-dialog {
	background: #FFFFFF;
	border-radius: 18px;
	width: 100%;
	max-width: 580px;
	padding: 28px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
}

.ue-tools-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #E2E8F0;
}

.ue-tools-modal-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(43, 93, 245, 0.1);
	color: #2B5DF5;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ue-tools-modal-title {
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: #0F172A;
	margin: 0 0 2px;
}

.ue-tools-modal-subtitle {
	font-size: 12.5px;
	color: #64748B;
	margin: 0;
}

.ue-tools-modal-close {
	background: #F1F5F9;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748B;
	cursor: pointer;
	transition: all 0.15s ease;
}

.ue-tools-modal-close:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.ue-tools-intent-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.ue-tools-intent-radio {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
}

.ue-tools-intent-radio input { margin: 0; }

.ue-tools-submit-btn {
	width: 100%;
	padding: 12px;
	border-radius: 9999px;
	background: linear-gradient(135deg, #2B5DF5 0%, #1D4ED8 100%);
	color: #FFFFFF;
	font-family: 'Space Grotesk', -apple-system, sans-serif;
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 14px rgba(43, 93, 245, 0.25);
	transition: all 0.2s ease;
}

.ue-tools-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(43, 93, 245, 0.35);
}

/* Mobile Responsive */
@media (max-width: 900px) {
	.ue-schema-dual-grid {
		grid-template-columns: 1fr;
	}

	.ue-schema-form-pane {
		border-right: none;
		border-bottom: 1.5px solid #E2E8F0;
	}
}

@media (max-width: 640px) {
	.ue-tools-form-row {
		grid-template-columns: 1fr;
	}

	.ue-tools-intent-grid {
		grid-template-columns: 1fr;
	}

	.ue-ad-content-split {
		flex-direction: column;
		align-items: flex-start;
	}

	.ue-ad-btn-primary {
		width: 100%;
		justify-content: center;
	}
}
