/*
Theme Name: ScamsIndia
Theme URI: https://scamsindia.com/
Author: ScamsIndia
Description: A fast, trust-focused news theme for scam-awareness sites in India. Helpline alert bar (1930), scam-alert cards, red-flag and "what to do" callouts, WhatsApp sharing, Article schema, related posts and a Report-a-Scam call to action.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scamsindia
Tags: blog, news, one-column, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--si-ink: #14213d;
	--si-ink-soft: #3d4a66;
	--si-muted: #6b7690;
	--si-line: #e3e7ef;
	--si-bg: #ffffff;
	--si-bg-soft: #f5f7fb;
	--si-brand: #0b3d91;
	--si-brand-dark: #082c6a;
	--si-alert: #c62828;
	--si-alert-soft: #fdecea;
	--si-warn: #b26a00;
	--si-warn-soft: #fff4e0;
	--si-ok: #1b7f4b;
	--si-ok-soft: #e7f6ee;
	--si-radius: 10px;
	--si-max: 1180px;
	--si-read: 720px;
	--si-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	--si-font-head: Georgia, "Noto Serif", "Times New Roman", serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--si-font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--si-ink);
	background: var(--si-bg);
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--si-brand); text-underline-offset: 3px; }
a:hover { color: var(--si-brand-dark); }
:focus-visible { outline: 3px solid #ffb300; outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--si-font-head); line-height: 1.25; color: var(--si-ink); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.15em; }
blockquote { margin: 1.5em 0; padding: .8em 1.2em; border-left: 4px solid var(--si-brand); background: var(--si-bg-soft); }
hr { border: 0; border-top: 1px solid var(--si-line); margin: 2em 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
th, td { border: 1px solid var(--si-line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--si-bg-soft); }

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--si-ink);
}
.si-wrap { max-width: var(--si-max); margin: 0 auto; padding: 0 20px; }

/* ---------- Helpline bar ---------- */
.si-helpline {
	background: var(--si-alert);
	color: #fff;
	font-size: .9rem;
	line-height: 1.4;
}
.si-helpline .si-wrap { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.si-helpline a { color: #fff; font-weight: 700; }
.si-helpline strong { letter-spacing: .02em; }

/* ---------- Header ---------- */
.si-header { border-bottom: 1px solid var(--si-line); background: #fff; position: sticky; top: 0; z-index: 50; }
.admin-bar .si-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .si-header { top: 0; position: relative; } }
.si-header .si-wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.si-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--si-ink); margin-right: auto; }
.si-brand:hover { color: var(--si-ink); }
.si-brand .custom-logo { max-height: 44px; width: auto; }
.si-logo-mark {
	width: 38px; height: 38px; border-radius: 9px; background: var(--si-brand); color: #fff;
	display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0;
}
.si-site-title { font-family: var(--si-font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.1; display: block; }
.si-site-desc { font-size: .78rem; color: var(--si-muted); display: block; }

.si-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.si-nav li { position: relative; }
.si-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--si-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.si-nav a:hover, .si-nav .current-menu-item > a, .si-nav .current-menu-ancestor > a { background: var(--si-bg-soft); color: var(--si-brand); }
.si-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--si-line); border-radius: 10px; padding: 6px; min-width: 220px; flex-direction: column; box-shadow: 0 10px 30px rgba(20,33,61,.12); }
.si-nav li:hover > .sub-menu, .si-nav li:focus-within > .sub-menu { display: flex; }

.si-icon-btn {
	background: none; border: 1px solid var(--si-line); border-radius: 8px; width: 42px; height: 42px;
	display: inline-grid; place-items: center; cursor: pointer; color: var(--si-ink);
}
.si-icon-btn:hover { background: var(--si-bg-soft); }
.si-menu-toggle { display: none; }
.si-report-btn {
	display: inline-block; background: var(--si-alert); color: #fff !important; text-decoration: none;
	padding: 9px 14px; border-radius: 8px; font-weight: 700; font-size: .92rem; white-space: nowrap;
}
.si-report-btn:hover { background: #a11f1f; }

.si-search-panel { display: none; border-top: 1px solid var(--si-line); background: var(--si-bg-soft); }
.si-search-panel.is-open { display: block; }
.si-search-panel .si-wrap { padding-top: 14px; padding-bottom: 14px; min-height: 0; display: block; }

@media (max-width: 900px) {
	.si-menu-toggle { display: inline-grid; }
	.si-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--si-line); padding: 10px 20px 16px; }
	.si-nav.is-open { display: block; }
	.si-nav ul { flex-direction: column; }
	.si-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding-left: 12px; }
	.si-report-btn { display: none; }
}

/* ---------- Search form ---------- */
.si-searchform { display: flex; gap: 8px; }
.si-searchform input[type="search"] {
	flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #c9d1e1; border-radius: 8px; font-size: 1rem; font-family: inherit;
}
.si-btn, .si-searchform button, .wp-block-button__link, input[type="submit"] {
	background: var(--si-brand); color: #fff; border: 0; border-radius: 8px; padding: 11px 18px;
	font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; display: inline-block; font-family: inherit;
}
.si-btn:hover, .si-searchform button:hover, input[type="submit"]:hover { background: var(--si-brand-dark); color: #fff; }

/* ---------- Layout ---------- */
.si-main { padding: 32px 0 56px; }
.si-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
@media (max-width: 980px) { .si-layout { grid-template-columns: 1fr; } }

/* ---------- Home hero ---------- */
.si-hero { background: linear-gradient(135deg, var(--si-brand) 0%, #13285a 100%); color: #fff; padding: 40px 0 34px; }
.si-hero h1 { color: #fff; margin: 0 0 .3em; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.si-hero p { color: #dbe4ff; max-width: 680px; margin: 0 0 1.2em; font-size: 1.05rem; }
.si-hero .si-searchform { max-width: 560px; }
.si-hero .si-searchform input[type="search"] { border: 0; }
.si-hero .si-searchform button { background: #ffb300; color: #1d1d1d; }
.si-hero .si-searchform button:hover { background: #ffc233; }
.si-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.si-chips a {
	color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
	padding: 4px 12px; font-size: .85rem;
}
.si-chips a:hover { background: rgba(255,255,255,.12); color: #fff; }

.si-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.si-section-title h2 { margin: 0; font-size: 1.35rem; }
.si-section-title h2::before { content: ""; display: inline-block; width: 6px; height: 20px; background: var(--si-alert); border-radius: 3px; margin-right: 10px; vertical-align: -3px; }

/* ---------- Cards ---------- */
.si-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
@media (max-width: 640px) { .si-grid { grid-template-columns: 1fr; } }
.si-card {
	border: 1px solid var(--si-line); border-radius: var(--si-radius); overflow: hidden; background: #fff;
	display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.si-card:hover { box-shadow: 0 10px 28px rgba(20,33,61,.10); transform: translateY(-2px); }
.si-card__thumb { display: block; aspect-ratio: 16/9; background: var(--si-bg-soft); overflow: hidden; }
.si-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.si-card__thumb--placeholder {
	display: grid; place-items: center; color: var(--si-brand); font-family: var(--si-font-head); font-weight: 700;
	background: repeating-linear-gradient(45deg, #eef2fa, #eef2fa 12px, #f6f8fc 12px, #f6f8fc 24px);
	font-size: 1.05rem; padding: 18px; text-align: center; text-decoration: none;
}
.si-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.si-card__title { font-size: 1.15rem; margin: 0; }
.si-card__title a { color: var(--si-ink); text-decoration: none; }
.si-card__title a:hover { color: var(--si-brand); }
.si-card__excerpt { color: var(--si-ink-soft); font-size: .95rem; margin: 0; }
.si-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.si-card--featured .si-card__thumb { aspect-ratio: auto; min-height: 260px; }
.si-card--featured .si-card__title { font-size: 1.6rem; }
@media (max-width: 760px) { .si-card--featured { grid-template-columns: 1fr; } .si-card--featured .si-card__thumb { min-height: 0; aspect-ratio: 16/9; } }

.si-badge {
	display: inline-block; background: var(--si-alert-soft); color: var(--si-alert); text-decoration: none;
	font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 999px; align-self: flex-start;
}
.si-badge:hover { background: var(--si-alert); color: #fff; }
.si-meta { color: var(--si-muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.si-meta a { color: inherit; }

/* ---------- Single ---------- */
.si-breadcrumbs { font-size: .85rem; color: var(--si-muted); margin-bottom: 14px; }
.si-breadcrumbs a { color: var(--si-muted); }
.si-entry-header h1 { margin: .3em 0 .4em; }
.si-entry-header .si-meta { font-size: .9rem; margin-bottom: 18px; }
.si-updated { color: var(--si-ok); font-weight: 600; }
.si-featured { margin: 0 0 24px; border-radius: var(--si-radius); overflow: hidden; }
.si-featured img { display: block; width: 100%; }
.si-entry-content { max-width: var(--si-read); }
.si-entry-content > *:first-child { margin-top: 0; }
.si-entry-content h2 { padding-top: .2em; }
.si-entry-content li { margin-bottom: .35em; }
.si-entry-content .wp-block-image { margin: 1.5em 0; }

/* Callouts: use Group block style or CSS class */
.si-box, .is-style-si-alert, .is-style-si-redflags, .is-style-si-todo, .is-style-si-tip {
	border-radius: var(--si-radius); padding: 18px 20px 6px; margin: 1.6em 0; border-left: 5px solid;
}
.si-box > :first-child { margin-top: 0; }
.si-box h2, .si-box h3,
.is-style-si-alert h2, .is-style-si-alert h3,
.is-style-si-redflags h2, .is-style-si-redflags h3,
.is-style-si-todo h2, .is-style-si-todo h3,
.is-style-si-tip h2, .is-style-si-tip h3 { margin-top: 0; font-size: 1.15rem; font-family: var(--si-font); }
.si-box--alert, .is-style-si-alert { background: var(--si-alert-soft); border-color: var(--si-alert); }
.si-box--redflags, .is-style-si-redflags { background: var(--si-warn-soft); border-color: var(--si-warn); }
.si-box--todo, .is-style-si-todo { background: var(--si-ok-soft); border-color: var(--si-ok); }
.si-box--tip, .is-style-si-tip { background: var(--si-bg-soft); border-color: var(--si-brand); }
.is-style-si-redflags ul, .si-box--redflags ul { list-style: none; padding-left: 0; }
.is-style-si-redflags li, .si-box--redflags li { padding-left: 1.6em; position: relative; }
.is-style-si-redflags li::before, .si-box--redflags li::before { content: "\26A0"; position: absolute; left: 0; color: var(--si-warn); }
.is-style-si-todo ol, .si-box--todo ol { padding-left: 1.3em; }

.si-tldr { background: var(--si-bg-soft); border: 1px solid var(--si-line); border-radius: var(--si-radius); padding: 16px 20px 4px; margin: 0 0 1.8em; }
.si-tldr strong:first-child { color: var(--si-brand); }

/* Share */
.si-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0; padding: 16px 0; border-top: 1px solid var(--si-line); border-bottom: 1px solid var(--si-line); max-width: var(--si-read); }
.si-share__label { font-weight: 700; margin-right: 4px; }
.si-share a, .si-share button {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; font-size: .88rem;
	font-weight: 700; text-decoration: none; color: #fff; border: 0; cursor: pointer; font-family: inherit;
}
.si-share .is-wa { background: #1fa855; }
.si-share .is-x { background: #111; }
.si-share .is-fb { background: #1877f2; }
.si-share .is-tg { background: #229ed9; }
.si-share .is-copy { background: var(--si-bg-soft); color: var(--si-ink); border: 1px solid var(--si-line); }
.si-share a:hover { opacity: .9; color: #fff; }

/* Report CTA */
.si-cta {
	background: var(--si-ink); color: #fff; border-radius: var(--si-radius); padding: 22px 24px; margin: 28px 0;
	max-width: var(--si-read); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.si-cta h2, .si-cta h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; font-family: var(--si-font); }
.si-cta p { margin: 0; color: #cfd8ee; font-size: .95rem; }
.si-cta a.si-btn { background: #ffb300; color: #1d1d1d; }
.si-cta a.si-btn:hover { background: #ffc233; color: #1d1d1d; }
@media (max-width: 600px) { .si-cta { grid-template-columns: 1fr; } }

/* Author */
.si-author { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--si-line); border-radius: var(--si-radius); padding: 18px; max-width: var(--si-read); margin: 28px 0; }
.si-author img { border-radius: 50%; flex-shrink: 0; }
.si-author h2 { font-size: 1.05rem; margin: 0 0 4px; font-family: var(--si-font); }
.si-author p { margin: 0; font-size: .95rem; color: var(--si-ink-soft); }

/* Disclaimer */
.si-disclaimer { font-size: .85rem; color: var(--si-muted); max-width: var(--si-read); border-top: 1px dashed var(--si-line); padding-top: 14px; }

/* Related */
.si-related { margin-top: 40px; }
.si-related .si-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px) { .si-related .si-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .si-related .si-grid { grid-template-columns: 1fr; } }
.si-related .si-card__title { font-size: 1rem; }

/* Post nav */
.si-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; max-width: var(--si-read); }
.si-postnav a { display: block; border: 1px solid var(--si-line); border-radius: var(--si-radius); padding: 12px 14px; text-decoration: none; color: var(--si-ink); font-weight: 600; }
.si-postnav a:hover { border-color: var(--si-brand); }
.si-postnav small { display: block; color: var(--si-muted); font-weight: 400; }
.si-postnav .is-next { text-align: right; grid-column: 2; }

/* ---------- Sidebar ---------- */
.si-sidebar { display: flex; flex-direction: column; gap: 22px; }
.si-sidebar .widget { border: 1px solid var(--si-line); border-radius: var(--si-radius); padding: 18px; }
.si-sidebar .widget-title, .si-sidebar h2 { font-size: 1.05rem; margin: 0 0 10px; font-family: var(--si-font); }
.si-sidebar ul { list-style: none; padding: 0; margin: 0; }
.si-sidebar li { padding: 6px 0; border-bottom: 1px solid var(--si-line); }
.si-sidebar li:last-child { border-bottom: 0; }
.si-sidebar a { text-decoration: none; color: var(--si-ink); }
.si-sidebar a:hover { color: var(--si-brand); }
.si-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 22px; }
.si-widget-help { background: var(--si-alert-soft); border-color: #f3c1bd !important; }
.si-widget-help .si-big { font-size: 2.2rem; font-weight: 800; color: var(--si-alert); line-height: 1; margin: 4px 0 8px; display: block; text-decoration: none; }
.si-widget-help p { font-size: .92rem; margin-bottom: .6em; }

/* ---------- Archive ---------- */
.si-archive-header { background: var(--si-bg-soft); border-bottom: 1px solid var(--si-line); padding: 28px 0; }
.si-archive-header h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.si-archive-header p { margin: 0; color: var(--si-ink-soft); max-width: 720px; }
.si-pagination { margin-top: 32px; }
.si-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.si-pagination .page-numbers { padding: 8px 13px; border: 1px solid var(--si-line); border-radius: 8px; text-decoration: none; color: var(--si-ink); }
.si-pagination .current { background: var(--si-brand); border-color: var(--si-brand); color: #fff; }

/* ---------- Comments ---------- */
.si-comments { max-width: var(--si-read); margin-top: 40px; }
.si-comments ol { list-style: none; padding: 0; }
.si-comments .children { padding-left: 24px; }
.si-comments .comment-body { border: 1px solid var(--si-line); border-radius: var(--si-radius); padding: 14px 16px; margin-bottom: 14px; }
.si-comments textarea, .si-comments input[type="text"], .si-comments input[type="email"], .si-comments input[type="url"] {
	width: 100%; padding: 10px 12px; border: 1px solid #c9d1e1; border-radius: 8px; font: inherit;
}

/* ---------- Footer ---------- */
.si-footer { background: var(--si-ink); color: #c9d3ea; padding: 44px 0 20px; font-size: .93rem; }
.si-footer a { color: #fff; }
.si-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 12px; font-family: var(--si-font); }
.si-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .si-footer-grid { grid-template-columns: 1fr; } }
.si-footer ul { list-style: none; padding: 0; margin: 0; }
.si-footer li { margin-bottom: 6px; }
.si-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }
.si-social { display: flex; gap: 8px; margin-top: 12px; }
.si-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; }
.si-social a:hover { background: rgba(255,255,255,.2); }
.si-social svg { width: 18px; height: 18px; fill: #fff; }

/* ---------- WP core ---------- */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--si-muted); text-align: center; }
.sticky .si-card__title::before { content: "\1F4CC  "; }
.bypostauthor > .comment-body { border-color: var(--si-brand); }
.gallery-caption { font-size: .85rem; }

@media print {
	.si-helpline, .si-header, .si-share, .si-sidebar, .si-footer, .si-related, .si-cta, .si-postnav { display: none !important; }
	.si-layout { display: block; }
}
