/*
 * software-tutorial.css — styles for [lt_software_tutorial] front-end
 * and admin software-tutorial tab.
 */

/* ── Page wrapper ─────────────────────────────────────────────────────── */
.lt-st-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 0 48px;
}

/* ── Section title ─────────────────────────────────────────────────────── */
.lt-st-section-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--lt-text, #1e293b);
	margin: 36px 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--lt-border, #e2e8f0);
}
.lt-dark .lt-st-section-title {
	color: var(--lt-text-dark, #f1f5f9);
	border-bottom-color: rgba(255,255,255,.1);
}
.lt-st-section-title i {
	color: var(--lt-accent, #6366f1);
}

/* ── Software grid ────────────────────────────────────────────────────── */
.lt-st-sw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 18px;
}

.lt-st-sw-card {
	background: var(--lt-card, #fff);
	border: 1px solid var(--lt-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s, transform .2s;
}
.lt-st-sw-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
	transform: translateY(-3px);
}
.lt-dark .lt-st-sw-card {
	background: var(--lt-card-dark, #1e293b);
	border-color: rgba(255,255,255,.08);
}

.lt-st-sw-card-top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lt-surface, #f8fafc);
	padding: 24px 16px 16px;
	min-height: 110px;
}
.lt-dark .lt-st-sw-card-top { background: rgba(255,255,255,.04); }

.lt-st-sw-logo {
	width: 68px;
	height: 68px;
	object-fit: contain;
	border-radius: 12px;
}
.lt-st-sw-logo-placeholder {
	width: 68px;
	height: 68px;
	border-radius: 12px;
	background: var(--lt-border, #e2e8f0);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--lt-muted, #94a3b8);
}

.lt-st-sw-type-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	padding: 3px 7px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.lt-st-sw-card-body {
	padding: 14px 16px 10px;
	flex: 1;
}
.lt-st-sw-name {
	font-size: .92rem;
	font-weight: 700;
	color: var(--lt-text, #1e293b);
	margin: 0 0 6px;
	line-height: 1.3;
}
.lt-dark .lt-st-sw-name { color: var(--lt-text-dark, #f1f5f9); }
.lt-st-sw-desc {
	font-size: .78rem;
	color: var(--lt-muted, #64748b);
	margin: 0;
	line-height: 1.5;
}

.lt-st-sw-card-footer {
	padding: 12px 16px 16px;
}
.lt-st-sw-dl-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	padding: 9px 14px;
	border-radius: 10px;
	background: var(--lt-accent, #6366f1);
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, opacity .2s;
}
.lt-st-sw-dl-btn:hover {
	background: var(--lt-accent-dark, #4f46e5);
	color: #fff;
}

/* ── Tutorial playlist ────────────────────────────────────────────────── */
.lt-st-tut-section { margin-top: 8px; }

.lt-st-playlist {
	margin-bottom: 36px;
	background: var(--lt-card, #fff);
	border: 1px solid var(--lt-border, #e2e8f0);
	border-radius: 14px;
	overflow: hidden;
}
.lt-dark .lt-st-playlist {
	background: var(--lt-card-dark, #1e293b);
	border-color: rgba(255,255,255,.08);
}

.lt-st-playlist-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: #fff;
}
.lt-st-playlist-header i { font-size: 1rem; opacity: .85; }
.lt-st-playlist-name {
	font-size: .95rem;
	font-weight: 700;
	flex: 1;
}
.lt-st-playlist-count {
	font-size: .75rem;
	opacity: .8;
	background: rgba(255,255,255,.2);
	padding: 3px 8px;
	border-radius: 20px;
}

.lt-st-tut-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0;
}
.lt-st-tut-grid .lt-st-tut-card {
	border-right: 1px solid var(--lt-border, #e2e8f0);
	border-bottom: 1px solid var(--lt-border, #e2e8f0);
}
.lt-dark .lt-st-tut-grid .lt-st-tut-card {
	border-color: rgba(255,255,255,.07);
}

.lt-st-tut-card {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: background .15s;
}
.lt-st-tut-card:hover { background: var(--lt-surface, #f8fafc); }
.lt-dark .lt-st-tut-card:hover { background: rgba(255,255,255,.04); }

.lt-st-tut-thumb-wrap {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #0f172a;
}
.lt-st-tut-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s;
}
.lt-st-tut-card:hover .lt-st-tut-thumb { transform: scale(1.04); }

.lt-st-tut-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: rgba(255,255,255,.3);
}

.lt-st-tut-play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.25);
	transition: background .2s;
}
.lt-st-tut-card:hover .lt-st-tut-play-overlay { background: rgba(0,0,0,.4); }
.lt-st-play-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1e293b;
	font-size: 15px;
	transition: transform .2s;
}
.lt-st-tut-card:hover .lt-st-play-btn { transform: scale(1.15); }
.lt-st-play-btn i { margin-left: 3px; }

.lt-st-yt-badge {
	position: absolute;
	bottom: 6px;
	left: 6px;
	background: #ff0000;
	color: #fff;
	border-radius: 4px;
	font-size: .6rem;
	padding: 2px 5px;
}
.lt-st-yt-badge i { font-size: .7rem; }

.lt-st-ep-num {
	position: absolute;
	top: 6px;
	right: 7px;
	font-size: .65rem;
	font-weight: 700;
	color: #fff;
	background: rgba(0,0,0,.55);
	border-radius: 4px;
	padding: 2px 6px;
}

.lt-st-tut-info {
	padding: 10px 12px;
}
.lt-st-tut-title {
	font-size: .78rem;
	font-weight: 600;
	color: var(--lt-text, #1e293b);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.lt-dark .lt-st-tut-title { color: var(--lt-text-dark, #f1f5f9); }

/* ── Empty state ─────────────────────────────────────────────────────── */
.lt-st-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--lt-muted, #94a3b8);
}
.lt-st-empty-state i { font-size: 48px; margin-bottom: 14px; display: block; }

/* ── Lightbox ────────────────────────────────────────────────────────── */
.lt-st-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lt-st-lightbox[hidden] { display: none; }
.lt-st-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.88);
}
.lt-st-lightbox-inner {
	position: relative;
	z-index: 1;
	width: min(860px, 96vw);
}
.lt-st-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s;
}
.lt-st-lightbox-close:hover { background: rgba(255,255,255,.3); }
.lt-st-lightbox-video-wrap { aspect-ratio: 16/9; }
.lt-st-lightbox-video-wrap iframe,
.lt-st-lightbox-video-wrap video {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	border: none;
}

/* ─────────────────────────────────────────────────────────────────────── */
/*  ADMIN STYLES                                                           */
/* ─────────────────────────────────────────────────────────────────────── */

.lt-st-admin { padding: 16px 0; }

.lt-st-pagebar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: #f6f7f7;
	border: 1px solid #ddd;
	border-radius: 6px;
	margin-bottom: 24px;
}
.lt-st-pagebar__status {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: .85rem;
}
.lt-st-pagebar__status--ok  { color: #00a32a; }
.lt-st-pagebar__status--none { color: #d63638; }

.lt-st-section {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}
.lt-st-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}
.lt-st-section-header h2 {
	font-size: 1rem;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.lt-st-header-btns { display: flex; gap: 8px; }

.lt-st-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .85rem;
}
.lt-st-table th,
.lt-st-table td {
	padding: 9px 12px;
	border-bottom: 1px solid #f0f0f0;
	text-align: left;
	vertical-align: middle;
}
.lt-st-table th {
	background: #f6f7f7;
	font-weight: 600;
	color: #50575e;
}
.lt-st-logo-cell { width: 60px; }
.lt-st-logo-thumb, .lt-st-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #ddd;
}
.lt-st-logo-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #aaa;
}
.lt-st-thumb { border-radius: 4px; }
.lt-st-actions { width: 90px; white-space: nowrap; }
.lt-st-actions .button { margin-right: 4px; }
.lt-st-name { font-weight: 600; }
.lt-st-desc { color: #50575e; max-width: 280px; }
.lt-st-empty {
	color: #50575e;
	font-style: italic;
	padding: 8px 0;
}
.lt-st-empty--sm { padding: 8px 12px; font-size: .82rem; }
.lt-st-msg {
	min-height: 26px;
	font-size: .85rem;
	margin-bottom: 8px;
}
.lt-st-msg.is-success { color: #00a32a; }
.lt-st-msg.is-error   { color: #d63638; }

/* Badges */
.lt-st-badge {
	display: inline-block;
	font-size: .7rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 20px;
	color: #fff;
}
.lt-st-badge--apk    { background: #3ddc84; color: #1a1a1a; }
.lt-st-badge--win    { background: #0078d4; }
.lt-st-badge--link   { background: #6366f1; }
.lt-st-badge--yt     { background: #ff0000; }
.lt-st-badge--upload { background: #f59e0b; color: #1a1a1a; }

/* Category block */
.lt-st-cat-block {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}
.lt-st-cat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	background: #f6f7f7;
	border-bottom: 1px solid #e0e0e0;
}
.lt-st-cat-name {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	font-size: .88rem;
}
.lt-st-cat-count { color: #50575e; font-weight: 400; }
.lt-st-cat-actions { display: flex; gap: 6px; }
.lt-st-tut-table { margin: 0; border: none; }
.lt-st-tut-table th, .lt-st-tut-table td { padding: 8px 12px; }
.lt-st-tut-table th { background: #fafafa; }

/* Modal fields */
.lt-st-modal .lt-st-field {
	margin-bottom: 14px;
}
.lt-st-modal .lt-st-field label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	margin-bottom: 5px;
	color: #1d2327;
}
.lt-st-modal .lt-st-field input[type=text],
.lt-st-modal .lt-st-field textarea,
.lt-st-modal .lt-st-field select {
	width: 100%;
	box-sizing: border-box;
}
.lt-st-upload-row {
	display: flex;
	align-items: center;
	gap: 8px;
}
.lt-st-upload-row input[type=text] { flex: 1; }
.lt-st-file-input { display: none; }
.lt-st-img-preview {
	margin-top: 8px;
}
.lt-st-img-preview img {
	max-height: 64px;
	border-radius: 6px;
	border: 1px solid #ddd;
}
.lt-st-radio {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-right: 16px;
	font-size: .85rem;
	cursor: pointer;
}
.lt-st-modal--sm .lt-modal { max-width: 400px; }
