/* ==========================================================================
   DawsonyWeb – Client Tutorial Videos — Tutorial Viewer
   Brand: #36648b (steel blue) — shared Dawsony family
   ========================================================================== */

:root {
	--dctv-brand: #36648b;
	--dctv-brand-dark: #2a4f6e;
	--dctv-brand-bg: #edf2f7;
	--dctv-radius: 8px;
	--dctv-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
	--dctv-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ---------- Full-bleed Wrap ---------- */

.dctv-tutorials-wrap {
	margin: -8px 0 0 -20px;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	background: var(--dctv-brand-bg);
	min-height: 100vh;
}

/* ---------- Header ---------- */

.dctv-tutorials-header {
	background: linear-gradient(135deg, var(--dctv-brand) 0%, var(--dctv-brand-dark) 100%);
	padding: 0;
	margin-bottom: 0;
}

.dctv-tutorials-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
}

.dctv-tutorials-header-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.dctv-tutorials-header-logo {
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	background: #fff;
	padding: 2px;
}

.dctv-tutorials-header h1 {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 600;
	color: #fff;
	line-height: 1.3;
	letter-spacing: -0.01em;
	display: flex;
	align-items: center;
	gap: 10px;
}

.dctv-tutorials-header h1 svg {
	opacity: 0.8;
}

.dctv-tutorials-header-version {
	display: inline-block;
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.15);
	padding: 2px 8px;
	border-radius: 10px;
	margin-top: 2px;
}

/* ---------- Content ---------- */

.dctv-tutorials-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	min-height: 400px;
}

/* ---------- Intro text ---------- */

.dctv-tutorials-intro {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 3px solid var(--dctv-brand, #36648b);
	border-radius: 6px;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.6;
	color: #334155;
}

.dctv-tutorials-intro p:last-child {
	margin-bottom: 0;
}

/* ---------- Notice ---------- */

.dctv-notice {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-left: 4px solid var(--dctv-brand);
	padding: 16px 20px;
	border-radius: 0 var(--dctv-radius) var(--dctv-radius) 0;
	box-shadow: var(--dctv-shadow-sm);
}

.dctv-notice p {
	margin: 0;
	font-size: 14px;
	color: #475569;
}

/* ---------- Tutorial Grid ---------- */

.dctv-tutorials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
	gap: 20px;
}

/* ---------- Tutorial Card ---------- */

.dctv-tutorial-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--dctv-radius);
	overflow: hidden;
	box-shadow: var(--dctv-shadow-sm);
	transition: box-shadow 0.2s;
}

.dctv-tutorial-card:hover {
	box-shadow: var(--dctv-shadow);
}

.dctv-tutorial-video {
	background: #1e293b;
	line-height: 0;
}

.dctv-tutorial-video video {
	width: 100%;
	display: block;
	max-height: 320px;
}

.dctv-tutorial-body {
	padding: 18px 22px;
}

.dctv-tutorial-title {
	font-size: 16px;
	font-weight: 600;
	color: #1e293b;
	margin: 0 0 6px;
	line-height: 1.4;
}

.dctv-tutorial-desc {
	font-size: 13px;
	color: #64748b;
	line-height: 1.6;
}

.dctv-tutorial-desc p:first-child {
	margin-top: 0;
}

.dctv-tutorial-desc p:last-child {
	margin-bottom: 0;
}

/* ---------- Footer ---------- */

.dctv-tutorials-footer {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px 24px;
	text-align: center;
	font-size: 12px;
	color: #94a3b8;
}

.dctv-tutorials-footer a {
	color: var(--dctv-brand);
	text-decoration: none;
}

.dctv-tutorials-footer a:hover {
	text-decoration: underline;
}

/* ---------- Dashboard Widget ---------- */

.dctv-widget-empty {
	color: #64748b;
	font-style: italic;
}

.dctv-widget-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dctv-widget-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #f1f5f9;
}

.dctv-widget-item:last-child {
	border-bottom: none;
}

.dctv-widget-item svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: var(--dctv-brand);
}

.dctv-widget-item-text {
	min-width: 0;
}

.dctv-widget-item-text strong {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	color: #1e293b;
}

.dctv-widget-item-desc {
	display: block;
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	margin-top: 2px;
}

.dctv-widget-footer {
	margin: 10px 0 0;
	padding-top: 8px;
	border-top: 1px solid #f1f5f9;
	text-align: right;
}

.dctv-widget-footer a {
	font-size: 13px;
	text-decoration: none;
	color: var(--dctv-brand);
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 782px) {
	.dctv-tutorials-wrap {
		margin: -8px 0 0 -10px;
	}

	.dctv-tutorials-header-inner {
		padding: 16px;
	}

	.dctv-tutorials-content {
		padding: 16px;
	}

	.dctv-tutorials-grid {
		grid-template-columns: 1fr;
	}
}
