/**
 * Sociq Developer Platform & Documentation Styles: dev.css
 * High-tech, serious, clean typography, responsive, dark/light theme ready
 */

.dev-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 16px 80px;
}

/* -------------------------------------------------------------------------
 * 1. High-Tech Hero Header
 * ------------------------------------------------------------------------- */
.dev-hero {
	position: relative;
	background: linear-gradient(135deg, #090e17 0%, #111a2e 50%, #0d1527 100%);
	color: #f8fafc;
	border-radius: 20px;
	padding: 40px;
	margin-bottom: 32px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dev-hero-backdrop {
	position: absolute;
	top: -50%;
	right: -20%;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(14, 165, 233, 0.08) 40%, transparent 70%);
	pointer-events: none;
	border-radius: 50%;
}

.dev-hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 32px;
}

.dev-hero-content {
	flex: 1 1 560px;
}

.dev-hero-topline {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.dev-hero-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(16, 185, 129, 0.12);
	border: 1px solid rgba(16, 185, 129, 0.28);
	color: #34d399;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}

.dev-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
	animation: devPulse 2s infinite;
}

@keyframes devPulse {
	0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
	70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
	100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.dev-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #94a3b8;
}

.dev-breadcrumb i {
	font-size: 10px;
	opacity: 0.6;
}

.dev-breadcrumb .active {
	color: #38bdf8;
	font-weight: 600;
}

.dev-hero-title {
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.6px;
	line-height: 1.22;
	margin-bottom: 14px;
	color: #ffffff;
}

.dev-hero-subtitle {
	font-size: 15px;
	line-height: 1.6;
	color: #94a3b8;
	margin-bottom: 24px;
	max-width: 640px;
}

.dev-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.dev-btn-hero {
	font-size: 13.5px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.dev-hero-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	flex: 0 0 auto;
}

.dev-stat-card {
	position: relative;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 14px;
	padding: 18px 22px;
	min-width: 140px;
	cursor: pointer;
	overflow: hidden;
	transition: all 0.2s ease;
}

.dev-stat-card:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(56, 189, 248, 0.3);
	transform: translateY(-2px);
}

.dev-stat-val {
	font-size: 28px;
	font-weight: 800;
	color: #38bdf8;
	line-height: 1;
	margin-bottom: 6px;
}

.dev-stat-lbl {
	font-size: 12px;
	color: #94a3b8;
	font-weight: 500;
}

.dev-stat-bg-icon {
	position: absolute;
	right: 12px;
	bottom: -4px;
	font-size: 40px;
	color: rgba(255, 255, 255, 0.04);
	pointer-events: none;
}

/* -------------------------------------------------------------------------
 * 2. Navigation Tabs
 * ------------------------------------------------------------------------- */
.dev-tabs-wrapper {
	margin-bottom: 32px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 14px;
}

.dev-nav-pills {
	gap: 8px;
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
}

.dev-tab-btn {
	color: #475569;
	font-weight: 600;
	font-size: 14px;
	border-radius: 10px;
	padding: 9px 18px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 1px solid transparent;
	cursor: pointer;
}

.dev-tab-btn:hover {
	color: #0f172a;
	background: #f1f5f9;
}

.dev-tab-btn.active {
	color: #ffffff !important;
	background: #2563eb !important;
	border-color: #2563eb !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.dev-tab-btn.active .badge {
	background: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	border-color: transparent !important;
}

/* Tab panes */
.dev-tab-pane {
	display: none;
}

.dev-tab-pane.active {
	display: block;
	animation: devTabFadeIn 0.25s ease-out;
}

@keyframes devTabFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------------------
 * 3. Feature Cards (Overview)
 * ------------------------------------------------------------------------- */
.dev-feature-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 26px;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.dev-feature-card:hover {
	transform: translateY(-3px);
	border-color: #cbd5e1;
	box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.06);
}

.dev-feature-icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 18px;
}

.dev-feature-icon.tone-primary {
	background: #eff6ff;
	color: #2563eb;
}

.dev-feature-icon.tone-success {
	background: #ecfdf5;
	color: #10b981;
}

.dev-feature-icon.tone-warning {
	background: #fffbeb;
	color: #f59e0b;
}

.dev-feature-card h3 {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #0f172a;
}

.dev-feature-card p {
	font-size: 14px;
	color: #64748b;
	line-height: 1.55;
	flex-grow: 1;
	margin-bottom: 18px;
}

/* Stepper */
.dev-quickstart-card {
	background: #ffffff;
	border-radius: 16px;
	border-color: #e2e8f0;
}

.dev-step-box {
	position: relative;
	padding-left: 56px;
}

.dev-step-num {
	position: absolute;
	left: 0;
	top: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #eff6ff;
	color: #2563eb;
	font-weight: 800;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #bfdbfe;
}

.dev-step-box h5 {
	font-size: 16px;
	margin-bottom: 6px;
	color: #0f172a;
}

/* -------------------------------------------------------------------------
 * 4. Cards for WebApps and Bots
 * ------------------------------------------------------------------------- */
.dev-item-card {
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	transition: all 0.2s ease;
	background: #ffffff;
}

.dev-item-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.06);
	border-color: #cbd5e1;
}

.dev-item-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	object-fit: cover;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.text-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dev-empty-box,
.dev-auth-placeholder {
	background: #f8fafc;
	border: 2px dashed #cbd5e1;
	border-radius: 16px;
	padding: 56px 24px;
}

/* -------------------------------------------------------------------------
 * 5. Documentation Section Styles
 * ------------------------------------------------------------------------- */
.dev-docs-nav {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.dev-docs-nav-header {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #475569;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 6px;
}

.dev-docs-toc-list .nav-link {
	font-size: 13.5px;
	color: #475569;
	font-weight: 500;
	padding: 8px 12px;
	border-radius: 8px;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dev-docs-toc-list .nav-link i {
	font-size: 14px;
	color: #94a3b8;
}

.dev-docs-toc-list .nav-link:hover {
	color: #0f172a;
	background: #f1f5f9;
}

.dev-docs-toc-list .nav-link.active {
	color: #2563eb;
	background: #eff6ff;
	font-weight: 600;
}

.dev-docs-toc-list .nav-link.active i {
	color: #2563eb;
}

/* Doc Article */
.dev-doc-article {
	padding-bottom: 32px;
	border-bottom: 1px solid #e2e8f0;
}

.dev-doc-article:last-child {
	border-bottom: none;
}

.dev-doc-header {
	margin-bottom: 18px;
}

.dev-doc-article h2 {
	font-size: 24px;
	letter-spacing: -0.4px;
	color: #0f172a;
	margin-bottom: 6px;
}

.dev-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dev-checklist li {
	position: relative;
	padding-left: 28px;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}

.dev-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 1px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ecfdf5;
	color: #10b981;
	font-weight: 800;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #a7f3d0;
}

/* -------------------------------------------------------------------------
 * 6. Code Boxes & Snippets
 * ------------------------------------------------------------------------- */
.dev-code-box {
	background: #0b0f19;
	border-radius: 12px;
	border: 1px solid #1e293b;
	overflow: hidden;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dev-code-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 16px;
	background: #111827;
	border-bottom: 1px solid #1f2937;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
}

.dev-code-copy {
	background: rgba(255, 255, 255, 0.08);
	color: #cbd5e1;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.dev-code-copy:hover {
	background: #2563eb;
	color: #ffffff;
	border-color: #2563eb;
}

.dev-code-box pre {
	margin: 0;
	padding: 16px;
	background: transparent;
	color: #e2e8f0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 13px;
	line-height: 1.55;
	overflow-x: auto;
}

.dev-code-box code {
	color: inherit;
	background: transparent;
	padding: 0;
	font-family: inherit;
}

.dev-code-tabs .nav-link {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	padding: 6px 14px;
	border-radius: 8px;
	background: #f1f5f9;
}

.dev-code-tabs .nav-link.active {
	background: #2563eb;
	color: #ffffff;
}

.dev-tab-content-border {
	margin-top: 8px;
}

/* -------------------------------------------------------------------------
 * 7. Tables in Docs
 * ------------------------------------------------------------------------- */
.dev-table th,
.dev-table-docs th,
.dev-table-params th {
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #475569;
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
	padding: 10px 14px;
}

.dev-table td,
.dev-table-docs td,
.dev-table-params td {
	padding: 12px 14px;
	font-size: 13.5px;
	color: #334155;
}

/* API Method Cards */
.dev-api-card .card-header {
	padding: 12px 18px;
}

.dev-api-card .card-body {
	padding: 20px;
}

/* -------------------------------------------------------------------------
 * 8. Interactive API Console (Sandbox)
 * ------------------------------------------------------------------------- */
.dev-console-card {
	background: #ffffff;
	border-radius: 14px;
	overflow: hidden;
}

.dev-console-output {
	background: #0b0f19;
	color: #38bdf8;
	padding: 16px;
	border-radius: 10px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12.5px;
	line-height: 1.5;
	max-height: 280px;
	overflow-y: auto;
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 9. Dark Theme Support (html[data-bs-theme="dark"])
 * ------------------------------------------------------------------------- */
html[data-bs-theme="dark"] .dev-container {
	color: #e2e8f0;
}

html[data-bs-theme="dark"] .dev-tabs-wrapper {
	border-bottom-color: #1e293b;
}

html[data-bs-theme="dark"] .dev-tab-btn {
	color: #94a3b8;
}

html[data-bs-theme="dark"] .dev-tab-btn:hover {
	color: #f8fafc;
	background: #1e293b;
}

html[data-bs-theme="dark"] .dev-feature-card,
html[data-bs-theme="dark"] .dev-quickstart-card,
html[data-bs-theme="dark"] .dev-item-card,
html[data-bs-theme="dark"] .dev-docs-nav,
html[data-bs-theme="dark"] .dev-console-card {
	background: #0f172a;
	border-color: #1e293b;
}

html[data-bs-theme="dark"] .dev-feature-card h3,
html[data-bs-theme="dark"] .dev-step-box h5,
html[data-bs-theme="dark"] .dev-doc-article h2 {
	color: #f8fafc;
}

html[data-bs-theme="dark"] .dev-feature-card p,
html[data-bs-theme="dark"] .dev-checklist li {
	color: #94a3b8;
}

html[data-bs-theme="dark"] .dev-step-num {
	background: #1e293b;
	border-color: #334155;
	color: #60a5fa;
}

html[data-bs-theme="dark"] .dev-empty-box,
html[data-bs-theme="dark"] .dev-auth-placeholder {
	background: #0b132b;
	border-color: #1e293b;
}

html[data-bs-theme="dark"] .dev-docs-nav-header {
	color: #94a3b8;
	border-bottom-color: #1e293b;
}

html[data-bs-theme="dark"] .dev-docs-toc-list .nav-link {
	color: #94a3b8;
}

html[data-bs-theme="dark"] .dev-docs-toc-list .nav-link:hover {
	color: #f8fafc;
	background: #1e293b;
}

html[data-bs-theme="dark"] .dev-docs-toc-list .nav-link.active {
	color: #60a5fa;
	background: rgba(37, 99, 235, 0.15);
}

html[data-bs-theme="dark"] .dev-doc-article {
	border-bottom-color: #1e293b;
}

html[data-bs-theme="dark"] .dev-table th,
html[data-bs-theme="dark"] .dev-table-docs th,
html[data-bs-theme="dark"] .dev-table-params th {
	background: #1e293b;
	border-bottom-color: #334155;
	color: #cbd5e1;
}

html[data-bs-theme="dark"] .dev-table td,
html[data-bs-theme="dark"] .dev-table-docs td,
html[data-bs-theme="dark"] .dev-table-params td {
	color: #e2e8f0;
	border-color: #1e293b;
}

html[data-bs-theme="dark"] .dev-arch-visual {
	background: #0f172a !important;
	border-color: #1e293b !important;
}

html[data-bs-theme="dark"] .dev-arch-visual .bg-white {
	background: #1e293b !important;
	border-color: #334155 !important;
	color: #f8fafc;
}

html[data-bs-theme="dark"] .card {
	background: #0f172a;
	border-color: #1e293b;
}

html[data-bs-theme="dark"] .card-header.bg-light {
	background: #1e293b !important;
	border-bottom-color: #334155;
	color: #f8fafc;
}

/* -------------------------------------------------------------------------
 * 10. Responsive Breakpoints
 * ------------------------------------------------------------------------- */
@media (max-width: 992px) {
	.dev-hero {
		padding: 28px;
	}
	.dev-hero-title {
		font-size: 26px;
	}
	.dev-hero-stats {
		width: 100%;
		grid-template-columns: repeat(2, 1fr);
	}
	.dev-docs-nav {
		position: static !important;
		margin-bottom: 24px;
	}
}

@media (max-width: 576px) {
	.dev-hero {
		padding: 20px;
		border-radius: 16px;
	}
	.dev-hero-title {
		font-size: 22px;
	}
	.dev-hero-stats {
		grid-template-columns: 1fr;
	}
	.dev-hero-actions {
		flex-direction: column;
		width: 100%;
	}
	.dev-btn-hero {
		width: 100%;
		justify-content: center;
	}
}
