/*
 * frame.css — Land Tools custom page frame
 * Covers: body reset, header, drawer, FAB, bottom bar,
 *         hub grid, tool cards, placeholder screen, dark mode.
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ── Reset ──────────────────────────────────────────────────────────────── */
body.lt-body {
	margin: 0;
	padding: 0;
	background: #f4f6f9;
	font-family: 'Noto Serif Bengali', 'Inter', sans-serif;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}
.lt-dark body.lt-body,
body.lt-body.lt-dark-applied { background: #0f172a; }

.lt-frame *,
.lt-frame *::before,
.lt-frame *::after { box-sizing: border-box; }

.lt-frame { min-height: 100vh; display: flex; flex-direction: column; }

/* Dark mode root toggle */
.lt-dark .lt-frame { color-scheme: dark; }

/* ── Typography ─────────────────────────────────────────────────────────── */
.lt-frame h1, .lt-frame h2, .lt-frame h3,
.lt-frame p, .lt-frame a { font-family: 'Noto Serif Bengali', sans-serif; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.lt-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid rgba(226,232,240,.8);
	box-shadow: 0 1px 6px rgba(0,0,0,.06);
	height: 60px;
	flex-shrink: 0;
}
.lt-dark .lt-header {
	background: #1e293b;
	border-bottom-color: rgba(51,65,85,.7);
	box-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.lt-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
}

/* Logo */
.lt-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}
.lt-logo:hover { opacity: .85; }

.lt-logo-icon {
	width: 38px;
	height: 38px;
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	border-radius: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 17px;
	flex-shrink: 0;
	box-shadow: 0 2px 8px rgba(79,70,229,.35);
}

.lt-logo-text strong {
	display: block;
	font-size: 15px;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.15;
	font-family: 'Inter', sans-serif;
}
.lt-dark .lt-logo-text strong { color: #f1f5f9; }

.lt-logo-text small {
	display: block;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .08em;
	color: #94a3b8;
	font-family: 'Inter', sans-serif;
	text-transform: uppercase;
}

/* Header action buttons */
.lt-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.lt-btn-icon {
	width: 38px;
	height: 38px;
	border: 1.5px solid #e2e8f0;
	border-radius: 10px;
	background: transparent;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #475569;
	font-size: 14px;
	transition: background .15s, color .15s, border-color .15s;
	padding: 0;
	line-height: 1;
}
.lt-dark .lt-btn-icon {
	border-color: #334155;
	color: #94a3b8;
}
.lt-btn-icon:hover {
	background: #f1f5f9;
	color: #1e293b;
	border-color: #cbd5e1;
}
.lt-dark .lt-btn-icon:hover {
	background: #334155;
	color: #f1f5f9;
	border-color: #475569;
}

.lt-lang-btn .lt-lang-label {
	font-size: 12px;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	letter-spacing: .03em;
}

/* ── Drawer ─────────────────────────────────────────────────────────────── */
.lt-drawer {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	height: 100vh;
	background: #fff;
	z-index: 300;
	transition: right .28s cubic-bezier(.4,0,.2,1);
	box-shadow: -6px 0 24px rgba(0,0,0,.1);
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}
.lt-dark .lt-drawer { background: #1e293b; }

.lt-drawer.lt-open { right: 0; }

.lt-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15,23,42,.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 299;
	display: none;
	cursor: pointer;
}
.lt-drawer-overlay.lt-open { display: block; }

.lt-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #e2e8f0;
	font-weight: 700;
	font-size: 15px;
	color: #1e293b;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
	flex-shrink: 0;
}
.lt-dark .lt-drawer-header {
	border-bottom-color: #334155;
	color: #f1f5f9;
	background: #1e293b;
}

.lt-drawer-nav {
	padding: 10px 8px 80px;
	flex: 1;
}

.lt-drawer-divider {
	height: 1px;
	background: #e2e8f0;
	margin: 6px 8px;
}
.lt-dark .lt-drawer-divider { background: #334155; }

.lt-drawer-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 10px;
	text-decoration: none;
	color: #334155;
	font-size: 13px;
	font-weight: 500;
	transition: background .12s;
}
.lt-dark .lt-drawer-link { color: #cbd5e1; }
.lt-drawer-link:hover { background: #f1f5f9; color: #1e293b; }
.lt-dark .lt-drawer-link:hover { background: #0f172a; color: #f1f5f9; }

.lt-drawer-link-text small {
	display: inline;
	font-size: 11px;
	color: #94a3b8;
	margin-left: 3px;
	font-weight: 400;
}

.lt-drawer-home { font-weight: 700; }

.lt-drawer-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
}

/* ── Main content ───────────────────────────────────────────────────────── */
.lt-main {
	flex: 1;
	padding-bottom: 90px; /* room for fixed bottom bar */
	width: 100%;
}

/* ── Free-tool wrapper ──────────────────────────────────────────────────── */
.lt-free-tool-wrap {
	padding: 16px 16px 0;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.lt-free-tool-wrap { padding: 24px 24px 0; }
}

/* ── FAB ─────────────────────────────────────────────────────────────────── */
.lt-fab {
	position: fixed;
	bottom: 22px;
	left: 22px;
	width: 50px;
	height: 50px;
	background: #1e293b;
	color: #fff;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0,0,0,.22);
	z-index: 50;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.lt-dark .lt-fab { background: #334155; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.lt-fab:hover { transform: scale(1.07); box-shadow: 0 8px 24px rgba(0,0,0,.28); background: #0f172a; }
.lt-dark .lt-fab:hover { background: #475569; }
.lt-fab i { transition: transform .2s; }
.lt-fab:hover i { transform: rotate(45deg); }

/* ── Bottom bar ──────────────────────────────────────────────────────────── */
.lt-bottom-bar {
	position: fixed;
	bottom: 22px;
	right: 22px;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 50;
}

.lt-bottom-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 50px;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	transition: transform .14s, box-shadow .14s, opacity .14s;
	white-space: nowrap;
}
.lt-bottom-btn:hover { transform: scale(1.05); }

.lt-yt-btn {
	width: 46px;
	height: 46px;
	background: #ff0000;
	color: #fff;
	border-radius: 13px;
	justify-content: center;
	font-size: 19px;
	box-shadow: 0 3px 14px rgba(255,0,0,.35);
}
.lt-yt-btn:hover { box-shadow: 0 5px 20px rgba(255,0,0,.45); color: #fff; }

.lt-contact-btn {
	padding: 11px 18px;
	background: #4f46e5;
	color: #fff;
	box-shadow: 0 3px 14px rgba(79,70,229,.35);
	border-radius: 12px;
}
.lt-contact-btn:hover { background: #4338ca; box-shadow: 0 5px 20px rgba(79,70,229,.45); color: #fff; }
.lt-dark .lt-contact-btn { background: #6366f1; }
.lt-dark .lt-contact-btn:hover { background: #4f46e5; }

/* ── Hub grid ────────────────────────────────────────────────────────────── */
.lt-hub {
	padding: 14px 14px 20px;
	max-width: 1080px;
	margin: 0 auto;
	width: 100%;
}

.lt-hub-header {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 14px;
	padding: 6px 2px;
}
.lt-dark .lt-hub-header { color: #f1f5f9; }
.lt-hub-header i { color: #4f46e5; font-size: 20px; }

.lt-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

@media (max-width: 680px) {
	.lt-hub-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 380px) {
	.lt-hub-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.lt-hub { padding: 10px 10px 16px; }
}

/* ── Tool card ───────────────────────────────────────────────────────────── */
.lt-tool-card {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	padding: 18px 12px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(226,232,240,.7);
	box-shadow: 0 1px 5px rgba(0,0,0,.05);
	transition: transform .18s cubic-bezier(.4,0,.2,1), box-shadow .18s;
	cursor: pointer;
}
.lt-dark .lt-tool-card {
	background: #1e293b;
	border-color: rgba(51,65,85,.6);
}
.lt-tool-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,.1);
	text-decoration: none;
}
.lt-dark .lt-tool-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.35); }

/* Info button */
.lt-card-info {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 24px;
	height: 24px;
	background: none;
	border: none;
	cursor: pointer;
	color: #cbd5e1;
	font-size: 13px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: color .15s, background .15s;
	z-index: 2;
}
.lt-card-info:hover { color: #4f46e5; background: #ede9fe; }
.lt-dark .lt-card-info { color: #475569; }
.lt-dark .lt-card-info:hover { color: #818cf8; background: rgba(99,102,241,.15); }

/* Icon circle */
.lt-card-icon {
	width: 62px;
	height: 62px;
	border-radius: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	flex-shrink: 0;
}

/* Card title */
.lt-card-title {
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	color: #334155;
	line-height: 1.45;
}
.lt-dark .lt-card-title { color: #cbd5e1; }

.lt-card-subtitle {
	display: block;
	font-size: 11px;
	color: #64748b;
	font-weight: 400;
	margin-top: 2px;
}
.lt-dark .lt-card-subtitle { color: #475569; }

/* ── Placeholder screen ──────────────────────────────────────────────────── */
.lt-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 65vh;
	gap: 22px;
	text-align: center;
	padding: 40px 20px;
}

.lt-ph-icon {
	width: 96px;
	height: 96px;
	border-radius: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 44px;
	box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.lt-ph-title {
	font-size: 22px;
	font-weight: 800;
	color: #1e293b;
	margin: 0;
	line-height: 1.4;
}
.lt-dark .lt-ph-title { color: #f1f5f9; }

.lt-ph-sub {
	font-size: 16px;
	font-weight: 500;
	color: #64748b;
}

.lt-ph-msg {
	color: #64748b;
	font-size: 15px;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 7px;
}
.lt-dark .lt-ph-msg { color: #94a3b8; }
.lt-ph-msg i { color: #f59e0b; }

.lt-ph-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #4f46e5;
	color: #fff;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	transition: background .15s, transform .15s;
	box-shadow: 0 3px 12px rgba(79,70,229,.3);
}
.lt-ph-back:hover { background: #4338ca; transform: translateY(-2px); color: #fff; }

/* ── Dark mode global vars ───────────────────────────────────────────────── */
.lt-dark body.lt-body { background: #0f172a; color: #e2e8f0; }

/* scrollbar */
.lt-drawer::-webkit-scrollbar { width: 4px; }
.lt-drawer::-webkit-scrollbar-track { background: transparent; }
.lt-drawer::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.lt-dark .lt-drawer::-webkit-scrollbar-thumb { background: #475569; }

/* ── Responsive header on very small screens ─────────────────────────────── */
@media (max-width: 380px) {
	.lt-logo-text strong { font-size: 13px; }
	.lt-logo-text small { display: none; }
	.lt-btn-icon { width: 34px; height: 34px; font-size: 13px; }
}
