/* ============================================
   Free Tools - Shared Styles
   ============================================ */

/* Gradient hero banner for tool pages */
.tool-hero {
	background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #3b82f6 100%);
	color: #fff;
	padding: 3rem 0;
	margin-top: -1.5rem;
	margin-bottom: 2rem;
}
.tool-hero h1 {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.tool-hero .lead {
	color: rgba(255, 255, 255, 0.95);
	font-size: 1.15rem;
}
.tool-hero .badge-tool {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-weight: 500;
	padding: 0.4em 0.8em;
	border-radius: 2rem;
	font-size: 0.8rem;
}

/* Colored accent sidebar blocks */
.info-block {
	border-radius: 0.75rem;
	padding: 1.5rem;
	margin-bottom: 1.25rem;
	border-left: 4px solid;
}
.info-block-blue {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border-left-color: #3b82f6;
}
.info-block-green {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border-left-color: #22c55e;
}
.info-block-amber {
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border-left-color: #f59e0b;
}
.info-block-red {
	background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
	border-left-color: #ef4444;
}
.info-block-purple {
	background: linear-gradient(135deg, #faf5ff 0%, #e9d5ff 100%);
	border-left-color: #a855f7;
}
.info-block-dark {
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-left-color: #60a5fa;
	color: #e2e8f0;
}
.info-block-dark h3,
.info-block-dark h4,
.info-block-dark strong {
	color: #fff;
}
.info-block-dark a {
	color: #93c5fd;
}

.info-block h3,
.info-block h4 {
	font-weight: 700;
	margin-bottom: 0.5rem;
}

/* Full-width colored section bands */
.section-band {
	padding: 3rem 0;
	margin: 2rem calc(-50vw + 50%) 2rem calc(-50vw + 50%);
	width: 100vw;
}
.section-band-blue {
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}
.section-band-dark {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #e2e8f0;
}
.section-band-dark h2,
.section-band-dark h3,
.section-band-dark strong {
	color: #fff;
}
.section-band-green {
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Feature cards with colored top border */
.feature-card {
	border: none;
	border-radius: 0.75rem;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 100%;
}
.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.feature-card-blue { border-top: 4px solid #3b82f6; }
.feature-card-green { border-top: 4px solid #22c55e; }
.feature-card-amber { border-top: 4px solid #f59e0b; }
.feature-card-red { border-top: 4px solid #ef4444; }
.feature-card-purple { border-top: 4px solid #a855f7; }
.feature-card-teal { border-top: 4px solid #14b8a6; }

/* Icon circles for feature cards */
.icon-circle {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	flex-shrink: 0;
}
.icon-circle-blue { background: #dbeafe; color: #2563eb; }
.icon-circle-green { background: #dcfce7; color: #16a34a; }
.icon-circle-amber { background: #fef3c7; color: #d97706; }
.icon-circle-red { background: #fee2e2; color: #dc2626; }
.icon-circle-purple { background: #f3e8ff; color: #9333ea; }
.icon-circle-teal { background: #ccfbf1; color: #0d9488; }

/* Large stat numbers */
.stat-number {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
}
.stat-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	font-weight: 600;
}

/* Numbered step circles */
.step-circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.9rem;
	flex-shrink: 0;
}

/* Sticky sidebar */
.tool-sidebar {
	position: sticky;
	top: 80px;
}

/* FAQ styling overrides */
.tool-faq .accordion-item {
	border: none;
	background: #f8fafc;
	border-radius: 0.75rem !important;
	margin-bottom: 0.5rem;
	overflow: hidden;
}
.tool-faq .accordion-button {
	font-weight: 600;
	background: #f8fafc;
	border-radius: 0.75rem !important;
	padding: 1rem 1.25rem;
}
.tool-faq .accordion-button:not(.collapsed) {
	background: #eff6ff;
	color: #1e40af;
	box-shadow: none;
}
.tool-faq .accordion-body {
	padding: 0 1.25rem 1rem;
	color: #475569;
}

/* Cross-links tool cards */
.tool-link-card {
	border: 2px solid transparent;
	border-radius: 0.75rem;
	transition: all 0.2s ease;
	text-decoration: none;
	display: block;
	height: 100%;
}
.tool-link-card:hover {
	border-color: #3b82f6;
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(59, 130, 246, 0.15);
}
.tool-link-card.active {
	border-color: #3b82f6;
	background: #eff6ff;
}

/* Gradient CTA card */
.cta-gradient {
	background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
	border-radius: 1rem;
	padding: 2.5rem;
	color: #fff;
	text-align: center;
}
.cta-gradient h3 {
	font-weight: 800;
}

/* High-contrast CTA button for landing pages */
.btn-cta-primary {
	background: linear-gradient(135deg, #f97316, #ea580c);
	color: #fff;
	border: none;
	font-weight: 700;
	transition: all 0.2s ease;
}
.btn-cta-primary:hover,
.btn-cta-primary:focus {
	background: linear-gradient(135deg, #ea580c, #c2410c);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Hero trust badge */
.trust-badge-hero {
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	font-size: 0.85rem;
}
.trust-badge-hero i {
	color: #4ade80;
}

/* Priority badge */
.priority-badge {
	background: linear-gradient(135deg, #fee2e2, #fecaca);
	color: #dc2626;
	font-weight: 600;
	font-size: 0.7rem;
	padding: 0.25em 0.6em;
	border-radius: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* Quick-reference pill navigation */
.ref-pill {
	display: inline-block;
	background: #f1f5f9;
	color: #475569;
	padding: 0.35em 0.75em;
	border-radius: 2rem;
	font-size: 0.8rem;
	font-weight: 500;
	margin: 0.2rem;
	text-decoration: none;
	transition: all 0.2s;
}
.ref-pill:hover {
	background: #dbeafe;
	color: #1e40af;
}

/* PPC Mode — hide navigation distractions for paid traffic */
body.ppc-mode .navbar.bg-nav {
	display: none !important;
}
body.ppc-mode .navbar .btn-outline-primary {
	display: none !important;
}
body.ppc-mode .info-block-purple {
	display: none !important;
}
body.ppc-mode .free-tools-cross-links {
	display: none !important;
}
body.ppc-mode footer .col-md-6.col-lg-3:nth-child(2),
body.ppc-mode footer .col-md-6.col-lg-3:nth-child(3) {
	display: none !important;
}

/* Stat label contrast fix for dark backgrounds */
.section-band-dark .stat-label {
	color: #cbd5e1;
}

/* Sticky mobile CTA */
.sticky-mobile-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: #fff;
	padding: 12px 16px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	text-align: center;
	display: none;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
	.tool-hero {
		padding: 2rem 0;
	}
	.tool-hero h1 {
		font-size: 1.75rem;
	}
	.section-band {
		padding: 2rem 0;
	}
	.tool-sidebar {
		position: static;
	}
	.sticky-mobile-cta {
		display: block;
	}
}
