/*
Theme Name: SerpVision
Theme URI: https://serpvision.com
Author: SerpVision
Author URI: https://serpvision.com
Description: Marketing site theme for the SerpVision SEO decision platform. Tailwind-based, with custom page templates for rank tracking, SEO audit, competitor analysis, pricing, blog and more.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serpvision
*/

html, body { overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; }
.nav-drawer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.nav-drawer.is-open { max-height: 560px; }
.faq-body { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .32s ease, opacity .22s ease; }
.faq-body.is-open { max-height: 260px; opacity: 1; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform .22s ease; }
input[type="range"] { accent-color: #4f46e5; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.lazyloaded.transition-transform {
	transition-property: opacity, transform !important;
	transition-duration: 300ms, 400ms !important;
	transition-timing-function: ease, ease-out !important;
}

/* Post / page content typography (Tailwind CDN has no typography plugin) */
.post-content { font-size: 1.0625rem; line-height: 1.8; }
.post-content > * + * { margin-top: 1.25rem; }
.post-content > h2 { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-top: 2.5rem; line-height: 1.3; }
.post-content > h3 { font-size: 1.3rem; font-weight: 700; color: #0f172a; margin-top: 2rem; line-height: 1.35; }
.post-content > h4 { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin-top: 1.5rem; }
.post-content > p { color: #334155; }
.post-content > p a { color: #4f46e5; transition: color 0.4s }
.post-content > p a:hover { color: #4338ca; }
.post-content > ul, .post-content ol { padding-left: 1.5rem; }
.post-content > ul { list-style: disc; }
.post-content > ol { list-style: decimal; }
.post-content > li { margin-top: .5rem; }
.post-content > blockquote { border-left: 4px solid #cecfff; background: #f1f5f9; padding: 1rem 1.25rem; border-radius: .5rem; font-style: italic; }
.post-content > img { border-radius: 1rem; height: auto; max-width: 100%; }
.post-content > pre { background: #0f172a; color: #e2e8f0; padding: 1rem 1.25rem; border-radius: .75rem; overflow-x: auto; font-size: .9rem; }
.post-content > code { background: #f1f5f9; padding: .15rem .4rem; border-radius: .3rem; font-size: .9em; }
.post-content > pre code { background: transparent; padding: 0; }
.post-content > table {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;

	border: 1px solid #e2e8f0;
	border-radius: 0.875rem;
	border-spacing: 0;
	background: #fff;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);

	font-size: 0.875rem;
	line-height: 1.6;
}

.post-content > table th,
.post-content > table td {
	padding: 0.75rem 0.875rem;
	text-align: left;
	vertical-align: middle;
	border-bottom: 1px solid #e2e8f0;
}

.post-content > table th {
	background: linear-gradient(135deg, #eef2ff, #f8fafc);
	color: #0f172a;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.025em;
}

.post-content > table td {
	color: #475569;
}

.post-content > table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.post-content > table tbody tr:last-child td {
	border-bottom: 0;
}

.post-content > table a {
	color: #4f46e5;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.post-content > table a:hover {
	color: #3730a3;
}

@media (min-width: 768px) {
	.post-content > table {
		display: table;
		white-space: normal;
		margin: 2rem 0;
		border-radius: 1rem;
		font-size: 0.925rem;
	}

	.post-content > table th,
	.post-content > table td {
		padding: 0.9rem 1rem;
	}

	.post-content > table tbody tr {
		transition: background-color 0.2s ease;
	}

	.post-content > table tbody tr:hover {
		background: #eef2ff;
	}
}

@media (min-width: 1024px) {
	html, body { overflow-x: visible }
}

/* Native WordPress comments need a little containment inside the custom cards. */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: .75rem;
	background: #fff;
	padding: .75rem 1rem;
	color: #0f172a;
}
.comment-form label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 700; color: #334155; }
.comment-form p + p { margin-top: 1rem; }
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: .75rem;
	background: #4f46e5;
	padding: .75rem 1.25rem;
	font-size: .875rem;
	font-weight: 800;
	color: #fff;
	transition: background-color .2s ease;
}
.comment-form .submit:hover { background: #4338ca; }
.commentlist { margin-top: 1.5rem; display: grid; gap: 1rem; }
.comment-body { border: 1px solid #e2e8f0; border-radius: 1rem; background: #f8fafc; padding: 1rem; }

/* Pagination (paginate_links / the_posts_pagination output) */
.serpvision-pagination .page-numbers, .serpvision-pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.serpvision-pagination a.page-numbers, .serpvision-pagination span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .5rem; border-radius: .75rem; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-size: .875rem; font-weight: 600; text-decoration: none; transition: all .15s ease; }
.serpvision-pagination a.page-numbers:hover { background: #f8fafc; color: #0f172a; }
.serpvision-pagination span.current { background: #4f46e5; border-color: #4f46e5; color: #fff; }
