/**
 * BusinessZindagi Tools – Frontend Styles
 * Premium SaaS / glassmorphism design
 * v1.0.1 – improved mobile & accessibility
 */

:root {
	--bz-primary: #0d6efd;
	--bz-secondary: #6610f2;
	--bz-success: #198754;
	--bz-warning: #ffc107;
	--bz-danger: #dc3545;
	--bz-bg: #f0f4f8;
	--bz-card-bg: rgba(255, 255, 255, 0.82);
	--bz-text: #1a1a2e;
	--bz-text-muted: #5c6773;
	--bz-border: rgba(255, 255, 255, 0.45);
	--bz-shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
	--bz-radius: 16px;
	--bz-radius-sm: 12px;
	--bz-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bz-touch: 44px; /* minimum touch target */
}

/* Dark mode support */
.bz-tools-wrapper.bz-dark,
body.bz-dark-mode .bz-tools-wrapper {
	--bz-bg: #0f172a;
	--bz-card-bg: rgba(30, 41, 59, 0.85);
	--bz-text: #f1f5f9;
	--bz-text-muted: #94a3b8;
	--bz-border: rgba(255, 255, 255, 0.1);
	--bz-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.bz-tools-wrapper {
	font-family: var(--bz-font);
	color: var(--bz-text);
	line-height: 1.6;
	box-sizing: border-box;
	max-width: 100%;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.bz-tools-wrapper *,
.bz-tools-wrapper *::before,
.bz-tools-wrapper *::after {
	box-sizing: border-box;
}

.bz-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 16px;
}

@media (min-width: 768px) {
	.bz-container {
		padding: 0 24px;
	}
}

/* ========== HERO ========== */
.bz-hero {
	background: linear-gradient(135deg, #0d6efd 0%, #6610f2 50%, #d63384 100%);
	padding: 48px 16px 64px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border-radius: 0 0 28px 28px;
}

.bz-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.55;
	pointer-events: none;
}

.bz-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
}

.bz-hero-logo {
	max-height: 52px;
	margin-bottom: 14px;
}

.bz-hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 50px;
	margin-bottom: 16px;
	letter-spacing: 0.02em;
}

.bz-hero-title {
	font-size: clamp(1.65rem, 5vw, 2.6rem);
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.25;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bz-hero-subtitle {
	font-size: clamp(1.05rem, 2.5vw, 1.25rem);
	color: rgba(255, 255, 255, 0.95);
	font-weight: 600;
	margin: 0 0 10px;
}

.bz-hero-desc {
	font-size: 0.98rem;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 auto 24px;
	max-width: 520px;
}

.bz-hero-stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px 28px;
	color: #fff;
	font-size: 0.9rem;
}

.bz-hero-stats strong {
	font-size: 1.3rem;
	display: block;
	font-weight: 700;
}

/* ========== CATEGORY CARDS ========== */
.bz-categories {
	padding: 48px 0 64px;
	background: var(--bz-bg);
}

.bz-section-title {
	text-align: center;
	font-size: clamp(1.4rem, 3vw, 1.7rem);
	font-weight: 700;
	margin: 0 0 28px;
	color: var(--bz-text);
}

.bz-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 18px;
}

.bz-category-card {
	background: var(--bz-card-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--bz-border);
	border-radius: var(--bz-radius);
	padding: 24px 20px;
	text-decoration: none;
	color: inherit;
	box-shadow: var(--bz-shadow);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
	min-height: 180px;
}

.bz-category-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--bz-primary), var(--bz-secondary));
	opacity: 0;
	transition: opacity 0.22s ease;
}

.bz-category-card:hover,
.bz-category-card:focus-visible {
	transform: translateY(-5px);
	box-shadow: 0 14px 36px rgba(31, 38, 135, 0.16);
	text-decoration: none;
	color: inherit;
	outline: none;
}

.bz-category-card:hover::before,
.bz-category-card:focus-visible::before {
	opacity: 1;
}

.bz-card-icon {
	font-size: 2.2rem;
	margin-bottom: 12px;
	line-height: 1;
}

.bz-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 6px;
	color: var(--bz-text);
}

.bz-card-desc {
	font-size: 0.875rem;
	color: var(--bz-text-muted);
	margin: 0 0 14px;
	flex-grow: 1;
}

.bz-card-cta {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bz-primary);
}

/* ========== CATEGORY HEADER ========== */
.bz-category-header {
	background: linear-gradient(135deg, var(--bz-primary), var(--bz-secondary));
	padding: 32px 0 40px;
	color: #fff;
	border-radius: 0 0 22px 22px;
}

.bz-back-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--bz-touch);
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-size: 0.9rem;
	margin-bottom: 12px;
	font-weight: 500;
	padding: 4px 0;
}

.bz-back-link:hover,
.bz-back-link:focus-visible {
	color: #fff;
	text-decoration: underline;
	outline: none;
}

.bz-cat-hero {
	display: flex;
	align-items: center;
	gap: 16px;
}

.bz-cat-icon {
	font-size: 2.6rem;
	line-height: 1;
	flex-shrink: 0;
}

.bz-cat-hero h1 {
	margin: 0 0 4px;
	font-size: clamp(1.4rem, 4vw, 1.75rem);
	font-weight: 700;
	color: #fff;
}

.bz-cat-hero p {
	margin: 0;
	opacity: 0.9;
	font-size: 0.95rem;
}

/* ========== TOOLS LIST ========== */
.bz-tools-list {
	padding: 40px 0 56px;
	background: var(--bz-bg);
}

.bz-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.bz-tool-card {
	background: var(--bz-card-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--bz-border);
	border-radius: var(--bz-radius-sm);
	padding: 20px;
	box-shadow: var(--bz-shadow);
	position: relative;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	min-height: 120px;
}

.bz-tool-card.bz-tool-active:hover,
.bz-tool-card.bz-tool-active:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 10px 26px rgba(31, 38, 135, 0.14);
	text-decoration: none;
	color: inherit;
	outline: none;
}

.bz-tool-status {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 50px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bz-status-live {
	background: rgba(25, 135, 84, 0.15);
	color: var(--bz-success);
}

.bz-status-soon {
	background: rgba(255, 193, 7, 0.22);
	color: #9a7200;
}

.bz-tool-card h3 {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 600;
}

.bz-tool-cta {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--bz-primary);
}

.bz-soon-text {
	font-size: 0.82rem;
	color: var(--bz-text-muted);
	margin: 0;
}

/* ========== FOOTER ========== */
.bz-footer {
	text-align: center;
	padding: 24px 16px;
	font-size: 0.875rem;
	color: var(--bz-text-muted);
	background: var(--bz-bg);
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
	.bz-hero {
		padding: 36px 14px 48px;
		border-radius: 0 0 20px 20px;
	}

	.bz-category-grid,
	.bz-tools-grid {
		grid-template-columns: 1fr;
	}

	.bz-cat-hero {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.bz-hero-stats {
		gap: 14px 20px;
	}

	.bz-categories {
		padding: 36px 0 48px;
	}
}

@media (min-width: 601px) and (max-width: 900px) {
	.bz-category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
