/* =====================================================
   GP Sarkari Child — Custom Styles
   Mobile-first, indigo accent (matches theme-color #4f46e5)
   ===================================================== */

:root {
	--gps-primary: #4f46e5;
	--gps-primary-dark: #3730a3;
	--gps-bg: #f7f7fb;
	--gps-card-bg: #ffffff;
	--gps-border: #e5e7eb;
	--gps-text: #1f2937;
	--gps-muted: #6b7280;

	--gps-justin: #ef4444;
	--gps-new: #10b981;
	--gps-closing: #f59e0b;
	--gps-declared: #3b82f6;
	--gps-out: #8b5cf6;
	--gps-urgent: #dc2626;
	--gps-eligible: #059669;
}

body {
	background: var(--gps-bg);
	color: var(--gps-text);
}

.gps-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px 40px;
}

/* ---------- HERO ---------- */
.gps-hero {
	background: linear-gradient(135deg, var(--gps-primary), var(--gps-primary-dark));
	color: #fff;
	padding: 28px 16px;
	border-radius: 12px;
	margin: 16px 0;
	text-align: center;
}
.gps-hero h1 {
	font-size: 1.4rem;
	margin: 0 0 10px;
	color: #fff;
	line-height: 1.3;
}
.gps-hero-stats {
	font-size: 0.95rem;
	opacity: 0.9;
	margin-bottom: 14px;
}
.gps-hero-stats strong { font-size: 1.2rem; }

.gps-hero-pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
.gps-pill {
	background: rgba(255,255,255,0.15);
	color: #fff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	text-decoration: none;
	white-space: nowrap;
}
.gps-pill:hover { background: rgba(255,255,255,0.28); }

/* ---------- TICKER ---------- */
.gps-ticker-wrap {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--gps-border);
	border-radius: 8px;
	margin-bottom: 16px;
	overflow: hidden;
}
.gps-ticker-label {
	background: var(--gps-justin);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
	padding: 8px 12px;
	flex-shrink: 0;
	text-transform: uppercase;
}
.gps-ticker { overflow: hidden; flex: 1; }
.gps-ticker-track {
	display: flex;
	gap: 24px;
	white-space: nowrap;
	animation: gps-scroll 60s linear infinite;
	padding: 8px 12px;
}
.gps-ticker-track:hover { animation-play-state: paused; }
.gps-ticker-item {
	color: var(--gps-text);
	text-decoration: none;
	font-size: 0.85rem;
}
.gps-ticker-item strong { color: var(--gps-primary); margin-right: 4px; }
.gps-ticker-time { color: var(--gps-muted); margin: 0 6px; font-size: 0.78rem; }

@keyframes gps-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ---------- FILTER BAR ---------- */
.gps-filter-bar {
	background: #fff;
	border: 1px solid var(--gps-border);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 20px;
}
.gps-filter-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--gps-border);
}
.gps-tab {
	flex-shrink: 0;
	background: var(--gps-bg);
	border: 1px solid var(--gps-border);
	color: var(--gps-text);
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 0.85rem;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}
.gps-tab.is-active,
.gps-tab:hover {
	background: var(--gps-primary);
	border-color: var(--gps-primary);
	color: #fff;
}

.gps-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gps-filter-row select,
.gps-filter-row input.gps-search {
	flex: 1 1 140px;
	padding: 8px 10px;
	border: 1px solid var(--gps-border);
	border-radius: 6px;
	font-size: 0.85rem;
	background: #fff;
}
.gps-search { flex-basis: 100%; }
.gps-clear {
	flex: 0 0 auto;
	background: var(--gps-bg);
	border: 1px solid var(--gps-border);
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 0.85rem;
	cursor: pointer;
}

/* ---------- SECTIONS & CARD GRID ---------- */
.gps-section { margin: 28px 0; }
.gps-section-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 12px;
}
.gps-section-header h2 { margin: 0; font-size: 1.15rem; }
.gps-section-count {
	background: var(--gps-bg);
	border-radius: 12px;
	padding: 2px 10px;
	font-size: 0.8rem;
	color: var(--gps-muted);
}
.gps-view-all {
	margin-left: auto;
	font-size: 0.85rem;
	color: var(--gps-primary);
	text-decoration: none;
	font-weight: 600;
}

.gps-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
@media (min-width: 640px) {
	.gps-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
	.gps-card-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- CARD ---------- */
.gps-card {
	background: var(--gps-card-bg);
	border: 1px solid var(--gps-border);
	border-radius: 10px;
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.gps-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.06);
	transform: translateY(-1px);
}

.gps-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.gps-card-time {
	margin-left: auto;
	font-size: 0.75rem;
	color: var(--gps-muted);
}

.gps-badge {
	font-size: 0.7rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.gps-badge-justin   { background: var(--gps-justin); }
.gps-badge-new      { background: var(--gps-new); }
.gps-badge-closing  { background: var(--gps-closing); }
.gps-badge-declared { background: var(--gps-declared); }
.gps-badge-out      { background: var(--gps-out); }
.gps-badge-urgent   { background: var(--gps-urgent); }
.gps-badge-eligible { background: var(--gps-eligible); }

.gps-card-title { margin: 0; font-size: 1rem; line-height: 1.4; }
.gps-card-title a { color: var(--gps-text); text-decoration: none; }
.gps-card-title a:hover { color: var(--gps-primary); }

.gps-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.gps-tag {
	background: var(--gps-bg);
	border: 1px solid var(--gps-border);
	color: var(--gps-muted);
	font-size: 0.72rem;
	padding: 2px 8px;
	border-radius: 4px;
}
.gps-tag-type { color: var(--gps-primary); border-color: var(--gps-primary); }

.gps-card-dates {
	font-size: 0.8rem;
	color: var(--gps-text);
}

.gps-card-link {
	margin-top: auto;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gps-primary);
	text-decoration: none;
}
.gps-card-link:hover { text-decoration: underline; }

.gps-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--gps-muted);
	padding: 24px;
}

/* ---------- ARCHIVE HEADER ---------- */
.gps-archive-header { padding: 20px 0 4px; }
.gps-archive-header h1 { margin: 0 0 6px; font-size: 1.4rem; }
.gps-archive-count { color: var(--gps-muted); margin: 0 0 14px; }

/* ---------- SINGLE ---------- */
.gps-single { padding-top: 16px; }
.gps-breadcrumb {
	font-size: 0.8rem;
	color: var(--gps-muted);
	margin-bottom: 10px;
}
.gps-breadcrumb a { color: var(--gps-muted); }
.gps-single-title {
	font-size: 1.4rem;
	line-height: 1.35;
	margin: 8px 0 12px;
}

.gps-info-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid var(--gps-border);
	border-radius: 8px;
	overflow: hidden;
	margin: 16px 0;
	font-size: 0.9rem;
}
.gps-info-table th,
.gps-info-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--gps-border);
	text-align: left;
}
.gps-info-table th {
	width: 40%;
	background: var(--gps-bg);
	font-weight: 600;
	color: var(--gps-text);
}
.gps-info-table tr:last-child th,
.gps-info-table tr:last-child td { border-bottom: none; }

.gps-cta {
	display: inline-block;
	background: var(--gps-primary);
	color: #fff !important;
	font-weight: 700;
	padding: 12px 22px;
	border-radius: 8px;
	text-decoration: none;
	margin: 4px 0 20px;
}
.gps-cta:hover { background: var(--gps-primary-dark); }

.gps-single-content { line-height: 1.7; }
.gps-single-content h2,
.gps-single-content h3 { margin-top: 1.6em; }

.gps-disclaimer {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 0.85rem;
	color: #92400e;
	margin: 24px 0;
}

/* ---------- ABOUT / FAQ ---------- */
.gps-about { margin-top: 32px; line-height: 1.7; }

/* ---------- PAGINATION ---------- */
.gps-pagination {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 24px 0;
}
.gps-pagination a,
.gps-pagination span {
	padding: 8px 14px;
	border: 1px solid var(--gps-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--gps-text);
	font-size: 0.85rem;
}
.gps-pagination .current {
	background: var(--gps-primary);
	color: #fff;
	border-color: var(--gps-primary);
}
