/*
Theme Name: ScamShield India
Theme URI: https://example.com/scamshield
Author: ScamShield Dev Team
Description: Ultra-lightweight consumer protection & anti-fraud theme. Vanilla PHP/HTML5/CSS, zero JS libraries, Schema-ready.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: scamshield
*/

/* 0. DESIGN TOKENS */
:root {
	--slate:        #1a202c;
	--slate-light:  #2d3748;
	--slate-muted:  #4a5568;
	--red:          #e53e3e;
	--red-dark:     #c53030;
	--orange:       #dd6b20;
	--orange-light: #f6ad55;
	--white:        #ffffff;
	--gray-50:      #f7fafc;
	--gray-100:     #edf2f7;
	--gray-200:     #e2e8f0;
	--gray-300:     #cbd5e0;
	--radius:       10px;
	--radius-sm:    6px;
	--shadow-sm:    0 1px 3px rgba(26, 32, 44, .08);
	--shadow-md:    0 4px 14px rgba(26, 32, 44, .10);
	--shadow-lg:    0 10px 30px rgba(26, 32, 44, .14);
	--transition:   .18s ease;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* 1. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font);
	color: var(--slate);
	background: var(--gray-50);
	line-height: 1.65;
	font-size: 17px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--slate); }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* 2. HEADER */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--white);
	border-bottom: 3px solid var(--red);
	box-shadow: var(--shadow-sm);
}
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; padding: 14px 20px; flex-wrap: wrap;
}
.site-logo { font-size: 1.4rem; font-weight: 800; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.site-logo:hover { color: var(--slate); }
.logo-shield { color: var(--red); font-size: 1.6rem; }
.main-nav ul { display: flex; gap: 26px; list-style: none; flex-wrap: wrap; }
.main-nav a {
	font-weight: 600; font-size: .95rem; color: var(--slate-light);
	position: relative; padding-bottom: 3px;
}
.main-nav a::after {
	content: ""; position: absolute; left: 0; bottom: 0;
	width: 0; height: 2px; background: var(--red);
	transition: width var(--transition);
}
.main-nav a:hover::after { width: 100%; }
.alert-btn {
	display: inline-block;
	background: var(--red); color: var(--white);
	font-weight: 800; font-size: .9rem; letter-spacing: .4px;
	padding: 12px 22px; border-radius: var(--radius-sm);
	box-shadow: 0 3px 0 var(--red-dark);
	transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.alert-btn:hover {
	background: var(--red-dark); color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 5px 0 var(--red-dark), var(--shadow-md);
}

/* 3. HERO & TL;DR BOX */
.hero {
	background: linear-gradient(160deg, var(--slate) 0%, var(--slate-light) 100%);
	color: var(--white);
	padding: 72px 0 64px;
}
.hero-kicker {
	display: inline-block;
	background: rgba(229, 62, 62, .18);
	border: 1px solid rgba(229, 62, 62, .5);
	color: var(--orange-light);
	font-size: .85rem; font-weight: 700;
	padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title {
	color: var(--white);
	font-size: clamp(1.9rem, 4.5vw, 3rem);
	font-weight: 800;
	max-width: 820px;
	margin-bottom: 32px;
	letter-spacing: -.5px;
}
.tldr-box {
	background: var(--white); color: var(--slate);
	border-left: 5px solid var(--red);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	padding: 26px 30px;
	max-width: 780px;
}
.tldr-label {
	display: inline-block;
	background: var(--gray-100);
	color: var(--red-dark);
	font-size: .8rem; font-weight: 800; letter-spacing: .6px;
	text-transform: uppercase;
	padding: 5px 12px; border-radius: 4px;
	margin-bottom: 12px;
}
.tldr-box p { margin-bottom: 12px; }
.tldr-points { list-style: none; }
.tldr-points li { padding: 4px 0; font-size: .96rem; color: var(--slate-light); }

/* 4. SECTION HEADERS */
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.section-sub {
	color: var(--slate-muted); max-width: 640px;
	margin: 10px auto 0; font-size: .97rem;
}

/* 5. RESULT STATUS DASHBOARD */
.dashboard-section { padding: 64px 0; background: var(--white); }
.table-wrapper {
	overflow-x: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	border: 1px solid var(--gray-200);
}
.status-dashboard {
	width: 100%; border-collapse: collapse;
	font-size: .95rem; min-width: 760px;
}
.status-dashboard thead th {
	background: var(--slate); color: var(--white);
	text-align: left; font-size: .78rem; letter-spacing: .8px;
	text-transform: uppercase;
	padding: 15px 18px;
}
.status-dashboard tbody td { padding: 18px; border-bottom: 1px solid var(--gray-100); }
.status-dashboard tbody tr { transition: background var(--transition), transform var(--transition); }
.status-dashboard tbody tr:hover { background: var(--gray-50); transform: scale(1.004); }
.market-name { font-weight: 800; color: var(--slate); white-space: nowrap; }
.status-badge {
	display: inline-block;
	font-size: .74rem; font-weight: 800; letter-spacing: .4px;
	padding: 7px 12px; border-radius: 999px;
	white-space: nowrap;
}
.status-danger {
	background: rgba(229, 62, 62, .12);
	color: var(--red-dark);
	border: 1px solid rgba(229, 62, 62, .4);
}
.status-warning {
	background: rgba(221, 107, 32, .12);
	color: #9c4221;
	border: 1px solid rgba(221, 107, 32, .4);
}
.action-btn {
	display: inline-block;
	background: linear-gradient(135deg, var(--red), var(--orange));
	color: var(--white); font-weight: 700; font-size: .86rem;
	padding: 11px 18px; border-radius: var(--radius-sm);
	white-space: nowrap;
	transition: transform var(--transition), box-shadow var(--transition);
}
.action-btn:hover {
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

/* 6. STATE LEGALITY CHECKER */
.legality-section { padding: 64px 0; background: var(--gray-100); }
.legality-card {
	background: var(--white); border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	padding: 44px 40px; max-width: 720px;
	border-top: 4px solid var(--orange);
}
.legality-label { display: block; font-weight: 700; margin-bottom: 10px; }
.legality-select {
	width: 100%; padding: 14px 16px; font-size: 1rem;
	border: 2px solid var(--gray-300); border-radius: var(--radius-sm);
	background: var(--gray-50); color: var(--slate);
	transition: border-color var(--transition), box-shadow var(--transition);
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%),
	                  linear-gradient(135deg, var(--slate) 50%, transparent 50%);
	background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
}
.legality-select:focus {
	outline: none; border-color: var(--orange);
	box-shadow: 0 0 0 3px rgba(221, 107, 32, .2);
}
.legality-result {
	margin-top: 22px; padding: 20px 22px;
	background: var(--gray-50);
	border-radius: var(--radius-sm);
	border: 1px solid var(--gray-200);
	animation: fadeSlideIn .3s ease;
}
.legality-result p { margin-top: 10px; font-size: .95rem; color: var(--slate-light); }
@keyframes fadeSlideIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* 7. CONTENT GRID */
.guides-section { padding: 72px 0; }
.guides-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}
.guide-card {
	background: var(--white); border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden; border: 1px solid var(--gray-200);
	display: flex; flex-direction: column;
	transition: transform var(--transition), box-shadow var(--transition);
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.guide-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.guide-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.guide-card-cat {
	font-size: .75rem; font-weight: 800; letter-spacing: .8px;
	text-transform: uppercase; color: var(--orange);
	margin-bottom: 8px;
}
.guide-card-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.guide-card-title a { color: var(--slate); }
.guide-card-title a:hover { color: var(--red); }
.guide-card-excerpt { font-size: .93rem; color: var(--slate-muted); flex: 1; margin-bottom: 16px; }
.guide-card-link {
	font-weight: 700; font-size: .9rem;
	display: inline-flex; align-items: center; gap: 4px;
	transition: gap var(--transition);
}
.guide-card-link:hover { gap: 9px; }
.pagination-nav { margin-top: 44px; text-align: center; }
.no-posts { text-align: center; color: var(--slate-muted); }

/* 8. SINGLE POST LAYOUT */
.single-container {
	max-width: 1180px; margin: 0 auto; padding: 48px 20px;
	display: grid; grid-template-columns: minmax(0, 1fr) 340px;
	gap: 44px; align-items: start;
}
.single-article {
	background: var(--white); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); padding: 44px 48px;
	border: 1px solid var(--gray-200);
}
.single-hero-image { margin: -44px -48px 32px; }
.single-hero-image img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
.single-title {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	font-weight: 800; letter-spacing: -.4px;
	margin-bottom: 24px;
}
.verification-box {
	background: linear-gradient(135deg, var(--gray-50), var(--white));
	border: 1px solid var(--gray-200);
	border-left: 4px solid var(--orange);
	border-radius: var(--radius-sm);
	padding: 18px 22px; margin-bottom: 32px;
}
.verification-row { display: flex; gap: 14px; align-items: flex-start; }
.verification-icon { font-size: 1.7rem; line-height: 1; }
.verification-line { font-size: .9rem; color: var(--slate-light); }
.verification-line strong { color: var(--slate); }
.verification-meta { color: var(--slate-muted); font-size: .82rem; margin-top: 3px; }
.single-body { font-size: 1.04rem; color: var(--slate-light); }
.single-body h2 { margin: 36px 0 16px; font-size: 1.5rem; }
.single-body h3 { margin: 28px 0 12px; font-size: 1.25rem; }
.single-body p  { margin-bottom: 18px; }
.single-body ul, .single-body ol { margin: 0 0 18px 24px; }
.single-body li { margin-bottom: 8px; }
.single-body blockquote {
	border-left: 4px solid var(--red);
	background: var(--gray-50);
	padding: 18px 22px; margin: 24px 0;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
}
.single-body img { border-radius: var(--radius-sm); margin: 20px 0; }
.faq-item {
	border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
	margin-bottom: 12px; overflow: hidden;
}
.faq-question {
	cursor: pointer; font-weight: 700; padding: 16px 20px;
	background: var(--gray-50); list-style: none;
	transition: background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before { content: "+ "; font-weight: 800; color: var(--red); }
.faq-item[open] .faq-question::before { content: "– "; }
.faq-question:hover { background: var(--gray-100); }
.faq-answer { padding: 16px 20px; }
.disclaimer-box {
	margin-top: 44px; padding: 28px 30px;
	background: var(--slate); color: var(--gray-200);
	border-radius: var(--radius);
	border-top: 4px solid var(--red);
}
.disclaimer-title { color: var(--white); font-size: 1.1rem; margin-bottom: 14px; }
.disclaimer-box p { margin-bottom: 12px; font-size: .94rem; }
.disclaimer-box ul { margin-left: 20px; }
.disclaimer-box li { margin-bottom: 8px; font-size: .92rem; }
.disclaimer-box a { color: var(--orange-light); text-decoration: underline; }
.disclaimer-box strong { color: var(--white); }

/* 9. STICKY SIDEBAR & WIDGETS */
.single-sidebar {
	position: sticky; top: 92px;
	display: flex; flex-direction: column; gap: 26px;
}
.widget {
	background: var(--white); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); padding: 26px 26px;
	border: 1px solid var(--gray-200);
	border-top: 4px solid var(--orange);
}
.widget-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.widget-sub { font-size: .8rem; color: var(--slate-muted); margin-bottom: 18px; }
.widget-btn {
	display: block; width: 100%; margin-top: 16px;
	background: var(--slate); color: var(--white);
	font-weight: 700; font-size: .92rem;
	padding: 13px 18px; border: none; border-radius: var(--radius-sm);
	cursor: pointer; text-align: center;
	transition: transform var(--transition), background var(--transition);
}
.widget-btn:hover { background: var(--slate-light); transform: translateY(-2px); }
.widget-btn-red { background: var(--red); }
.widget-btn-red:hover { background: var(--red-dark); }
.risk-q { border: none; margin-bottom: 16px; }
.risk-q legend { font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--slate-light); }
.risk-q label {
	display: inline-flex; align-items: center; gap: 6px;
	margin-right: 16px; font-size: .88rem; cursor: pointer;
}
.risk-q input[type="radio"] { accent-color: var(--red); width: 16px; height: 16px; }
.risk-result {
	margin-top: 16px; padding: 14px 16px;
	border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600;
	background: var(--gray-100); border: 1px solid var(--gray-200);
	animation: fadeSlideIn .3s ease;
}
.report-portal { border-top-color: var(--red); }
.report-form label {
	display: block; font-size: .85rem; font-weight: 700;
	margin: 14px 0 6px;
}
.report-form input[type="text"],
.report-form select,
.report-form textarea {
	width: 100%; padding: 11px 13px;
	border: 2px solid var(--gray-200); border-radius: var(--radius-sm);
	font-size: .92rem; font-family: inherit; background: var(--gray-50);
	transition: border-color var(--transition), box-shadow var(--transition);
}
.report-form input:focus, .report-form select:focus, .report-form textarea:focus {
	outline: none; border-color: var(--red);
	box-shadow: 0 0 0 3px rgba(229, 62, 62, .15);
}

/* 10. FOOTER */
.site-footer {
	background: var(--slate); color: var(--gray-300);
	margin-top: 72px; padding: 52px 0 0;
}
.footer-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr;
	gap: 40px; padding-bottom: 40px;
}
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.site-footer a { color: var(--gray-300); }
.site-footer a:hover { color: var(--orange-light); }
.footer-bottom {
	border-top: 1px solid var(--slate-light);
	padding: 20px 0; text-align: center;
	font-size: .84rem; color: var(--slate-muted);
}
.footer-bottom .container { color: #a0aec0; }

/* 11. RESPONSIVE */
@media (max-width: 960px) {
	.single-container { grid-template-columns: 1fr; }
	.single-sidebar { position: static; }
	.footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.single-article { padding: 28px 24px; }
	.single-hero-image { margin: -28px -24px 24px; }
	.legality-card { padding: 30px 22px; }
	.status-dashboard { min-width: 0; }
	.status-dashboard thead { display: none; }
	.status-dashboard tbody tr {
		display: block; border-bottom: 2px solid var(--gray-200);
		padding: 12px 4px;
	}
	.status-dashboard tbody td {
		display: flex; justify-content: space-between; align-items: center;
		gap: 14px; padding: 10px 14px; border: none;
		text-align: right;
	}
	.status-dashboard tbody td::before {
		content: attr(data-label);
		font-weight: 700; font-size: .74rem;
		text-transform: uppercase; letter-spacing: .5px;
		color: var(--slate-muted); text-align: left;
	}
	.status-dashboard tbody td[data-label="Action"] { justify-content: center; }
	.status-dashboard tbody td[data-label="Action"]::before { display: none; }
	.market-name { text-align: left; }
}

/* 12. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
	html { scroll-behavior: auto; }
}
