/*
 * 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; }

/* ── Global nav — injected on every non-lt page ─────────────────────────── */

/* Push body content below the sticky 60px header. */
body.lt-global-nav {
	/* padding-top: 60px !important; */
}

/* Hide the theme's own header so there's no double-header.
   Covers the most common theme header selectors across popular themes. */
body.lt-global-nav #masthead,
body.lt-global-nav #site-header,
body.lt-global-nav .site-header,
body.lt-global-nav header.header,
body.lt-global-nav .header-area,
body.lt-global-nav .main-header,
body.lt-global-nav #header,
body.lt-global-nav .hfeed > header:first-of-type,
body.lt-global-nav #wpadminbar ~ * > header:first-child {
	display: none !important;
}

/* Elementor full-width sections sometimes carry sticky headers — hide those too. */
body.lt-global-nav .elementor-location-header {
	display: none !important;
}

/* ── 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;
}


/* ── Account / Login / Logout buttons ───────────────────────────────────── */
.lt-account-btn,
.lt-login-btn,
.lt-logout-btn {
	width: auto;
	padding: 0 12px;
	gap: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Noto Serif Bengali', sans-serif;
	white-space: nowrap;
}

/* Account */
.lt-account-btn {
	color: #4f46e5;
	border-color: rgba(79,70,229,.3);
}
.lt-dark .lt-account-btn {
	color: #818cf8;
	border-color: rgba(99,102,241,.3);
}
.lt-account-btn:hover {
	background: #ede9fe;
	color: #4338ca;
	border-color: #a5b4fc;
}
.lt-dark .lt-account-btn:hover {
	background: rgba(99,102,241,.15);
	color: #c7d2fe;
	border-color: #6366f1;
}

/* Login */
.lt-login-btn {
	color: #0f766e;
	border-color: rgba(15,118,110,.3);
}
.lt-dark .lt-login-btn {
	color: #2dd4bf;
	border-color: rgba(45,212,191,.3);
}
.lt-login-btn:hover {
	background: #ccfbf1;
	color: #0d9488;
	border-color: #5eead4;
}
.lt-dark .lt-login-btn:hover {
	background: rgba(45,212,191,.12);
	color: #99f6e4;
	border-color: #14b8a6;
}

/* Logout */
.lt-logout-btn {
	color: #dc2626;
	border-color: rgba(220,38,38,.25);
}
.lt-dark .lt-logout-btn {
	color: #f87171;
	border-color: rgba(248,113,113,.25);
}
.lt-logout-btn:hover {
	background: #fee2e2;
	color: #b91c1c;
	border-color: #fca5a5;
}
.lt-dark .lt-logout-btn:hover {
	background: rgba(220,38,38,.12);
	color: #fca5a5;
	border-color: #ef4444;
}

/* Hide text label on small screens, keep icon */
@media (max-width: 480px) {
	.lt-btn-label { display: none; }
	.lt-account-btn,
	.lt-login-btn { width: 38px; padding: 0; }
	/* Logout moves into the drawer on mobile — hide it from the header */
	.lt-logout-btn { display: none; }
}

/* ── 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-logout { color: #dc2626; }
.lt-dark .lt-drawer-logout { color: #f87171; }
.lt-drawer-logout:hover { background: #fee2e2; color: #b91c1c; }
.lt-dark .lt-drawer-logout:hover { background: rgba(220,38,38,.12); color: #fca5a5; }

.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 speed-dial ──────────────────────────────────────────────────────── */
.lt-fab-dial {
	position: fixed;
	bottom: 22px;
	left: 22px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	z-index: 50;
}

.lt-fab {
	width: 50px;
	height: 50px;
	background: #1e293b;
	color: #fff;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0,0,0,.22);
	transition: background .15s, box-shadow .15s;
	flex-shrink: 0;
}
.lt-dark .lt-fab { background: #334155; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.lt-fab:hover { box-shadow: 0 8px 24px rgba(0,0,0,.3); background: #0f172a; }
.lt-dark .lt-fab:hover { background: #475569; }

/* Rotate + into × when dial is open */
.lt-fab i { transition: transform .25s cubic-bezier(.4,0,.2,1); }
.lt-fab-dial.lt-open .lt-fab i { transform: rotate(45deg); }

/* Dial items */
.lt-dial-items {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lt-dial-item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 16px 10px 12px;
	border-radius: 13px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	font-family: 'Inter', sans-serif;
	color: #fff;
	white-space: nowrap;
	opacity: 0;
	transform: translateY(10px) scale(.88);
	pointer-events: none;
	transition: opacity .22s cubic-bezier(.4,0,.2,1),
	            transform .22s cubic-bezier(.4,0,.2,1),
	            box-shadow .15s;
}
.lt-dial-item i { font-size: 15px; }

.lt-fab-dial.lt-open .lt-dial-item {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

/* Stagger: contact (bottom, closest to FAB) appears first */
.lt-fab-dial.lt-open .lt-dial-contact { transition-delay:  0ms; }
.lt-fab-dial.lt-open .lt-dial-yt      { transition-delay: 65ms; }

.lt-dial-yt {
	background: #e00000;
	box-shadow: 0 3px 14px rgba(200,0,0,.4);
}
.lt-dial-yt:hover  { background: #c40000; box-shadow: 0 5px 18px rgba(200,0,0,.55); color: #fff; }

.lt-dial-contact {
	background: #4f46e5;
	box-shadow: 0 3px 14px rgba(79,70,229,.4);
}
.lt-dial-contact:hover { background: #4338ca; box-shadow: 0 5px 18px rgba(79,70,229,.5); color: #fff; }
.lt-dark .lt-dial-contact { background: #6366f1; }
.lt-dark .lt-dial-contact: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; }
}
