/**
 * QwickQR — Frontend Landing Page Styles
 *
 * Mobile-first, clean design for QR scan landing pages.
 *
 * @package DynamicQRManager
 */

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body.dqr-landing {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: #f8f9fb;
	color: #1e293b;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	-webkit-font-smoothing: antialiased;
}

/* ─── Container ──────────────────────────────────────────────── */
.dqr-container {
	max-width: 680px;
	width: 100%;
	margin: 0 auto;
	padding: 24px 16px;
	flex: 1;
}

/* ─── Card ───────────────────────────────────────────────────── */
.dqr-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 32px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ─── Title ──────────────────────────────────────────────────── */
.dqr-title {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 20px;
	line-height: 1.3;
	text-align: center;
}

/* ─── Text Content ───────────────────────────────────────────── */
.dqr-content {
	font-size: 16px;
	line-height: 1.7;
	color: #334155;
}

.dqr-content p {
	margin-bottom: 16px;
}

.dqr-content a {
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dqr-content a:hover {
	color: #1d4ed8;
}

.dqr-content h1, .dqr-content h2, .dqr-content h3, .dqr-content h4 {
	color: #0f172a;
	margin: 24px 0 12px;
	line-height: 1.3;
}

.dqr-content ul, .dqr-content ol {
	margin: 12px 0;
	padding-left: 24px;
}

.dqr-content li {
	margin-bottom: 6px;
}

.dqr-content blockquote {
	border-left: 3px solid #2563eb;
	padding: 12px 16px;
	margin: 16px 0;
	background: #f0f6fc;
	border-radius: 0 8px 8px 0;
	color: #475569;
}

.dqr-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.dqr-content pre, .dqr-content code {
	background: #f1f5f9;
	border-radius: 6px;
	font-family: 'SF Mono', 'Fira Code', monospace;
	font-size: 14px;
}

.dqr-content pre {
	padding: 16px;
	overflow-x: auto;
}

.dqr-content code {
	padding: 2px 6px;
}

/* ─── Media Viewer ───────────────────────────────────────────── */
.dqr-media-viewer {
	margin-top: 16px;
}

.dqr-media-image {
	text-align: center;
}

.dqr-responsive-img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dqr-media-video {
	margin-bottom: 16px;
}

.dqr-video-player {
	width: 100%;
	max-width: 100%;
	border-radius: 12px;
	background: #000;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dqr-media-pdf {
	margin-bottom: 16px;
}

.dqr-pdf-viewer {
	width: 100%;
	height: 80vh;
	min-height: 500px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.dqr-media-download {
	text-align: center;
	margin-top: 20px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
}

.dqr-file-meta {
	display: block;
	font-size: 14px;
	color: #64748b;
	margin-bottom: 12px;
	font-weight: 500;
	letter-spacing: 0.5px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.dqr-btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.dqr-btn--primary {
	background: #2563eb;
	color: #ffffff;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.dqr-btn--primary:hover {
	background: #1d4ed8;
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* ─── Error ──────────────────────────────────────────────────── */
.dqr-error {
	text-align: center;
	padding: 32px;
	color: #64748b;
	font-size: 16px;
}

/* ─── Ad Slots ───────────────────────────────────────────────── */
.dqr-ad-slot {
	max-width: 680px;
	margin: 0 auto;
	padding: 8px 16px;
	text-align: center;
}

.dqr-ad-slot--header {
	padding-top: 16px;
}

.dqr-ad-slot--mid {
	margin-top: 20px;
}

.dqr-ad-slot--footer {
	margin-bottom: 8px;
}

/* ─── Footer / Branding ──────────────────────────────────────── */
.dqr-footer {
	padding: 16px;
	text-align: center;
}

.dqr-branding {
	font-size: 12px;
	color: #94a3b8;
	margin: 0;
}

.dqr-branding a {
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
}

.dqr-branding a:hover {
	color: #2563eb;
	text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (min-width: 640px) {
	.dqr-container {
		padding: 40px 24px;
	}

	.dqr-card {
		padding: 40px 36px;
	}

	.dqr-title {
		font-size: 28px;
	}
}

@media (min-width: 1024px) {
	.dqr-container {
		padding: 60px 24px;
	}
}

/* ─── Dark Mode Support ──────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
	body.dqr-landing {
		background: #0f172a;
		color: #e2e8f0;
	}

	.dqr-card {
		background: #1e293b;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	}

	.dqr-title {
		color: #f1f5f9;
	}

	.dqr-content {
		color: #cbd5e1;
	}

	.dqr-content a {
		color: #60a5fa;
	}

	.dqr-content blockquote {
		background: #1e3a5f;
		border-left-color: #3b82f6;
		color: #94a3b8;
	}

	.dqr-content pre, .dqr-content code {
		background: #0f172a;
	}

	.dqr-media-download {
		background: #1e293b;
		border-color: #334155;
	}

	.dqr-responsive-img {
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
	}

	.dqr-branding {
		color: #475569;
	}

	.dqr-branding a {
		color: #64748b;
	}
}
