/*
Theme Name: ResultDekho Theme
Theme URI: https://results.pricedekho.online
Description: Lightweight GeneratePress child theme optimized for fast board result indexing and monetization.
Author: ResultDekho Team
Template: generatepress
Version: 1.0.0
*/

:root {
	--rd-primary: #0056b3;
	--rd-accent: #28a745;
	--rd-warning: #ffc107;
	--rd-dark: #212529;
	--rd-light: #f8f9fa;
	--rd-border: #e9ecef;
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif; background-color: #f4f6f9; color: var(--rd-dark); }
.rd-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header & Nav */
.rd-header { background: #fff; border-bottom: 2px solid var(--rd-primary); padding: 15px 0; }
.rd-header .rd-flex { display: flex; align-items: center; justify-content: space-between; }
.rd-logo { font-size: 24px; font-weight: 800; color: var(--rd-primary); text-decoration: none; }
.rd-logo span { color: var(--rd-accent); }

/* Hero & Search */
.rd-hero { background: linear-gradient(135deg, #0056b3 0%, #003366 100%); color: #fff; padding: 40px 0; text-align: center; }
.rd-search-box { display: flex; flex-wrap: wrap; gap: 10px; max-width: 800px; margin: 20px auto 0; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.rd-search-box input, .rd-search-box select { flex: 1; min-width: 150px; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
.rd-search-box button { background: var(--rd-accent); color: #fff; border: none; padding: 12px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; }

/* Results Grid */
.rd-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 30px 0; }
.rd-result-card { background: #fff; border: 1px solid var(--rd-border); border-radius: 8px; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); transition: transform 0.2s; }
.rd-result-card:hover { transform: translateY(-3px); }
.rd-card-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.rd-badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; text-transform: uppercase; }
.status-declared { background: #d4edda; color: #155724; }
.status-upcoming { background: #fff3cd; color: #856404; }
.rd-card-title { font-size: 18px; margin: 10px 0; font-weight: 700; }
.rd-card-title a { color: var(--rd-dark); text-decoration: none; }
.rd-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; border-top: 1px solid var(--rd-border); padding-top: 10px; }
.rd-btn { background: var(--rd-primary); color: #fff; padding: 8px 16px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 600; border: none; cursor: pointer; }

/* Board logo */
.rd-board-logo { height: 36px; width: 36px; object-fit: contain; border-radius: 50%; background: #fff; border: 1px solid var(--rd-border); }
.rd-board-logo-lg { height: 48px; width: 48px; }

/* All Board Results - list row layout */
.rd-list { display: flex; flex-direction: column; gap: 12px; margin: 25px 0; }
.rd-list-row { display: flex; align-items: center; gap: 15px; background: #fff; border: 1px solid var(--rd-border); border-radius: 8px; padding: 15px 20px; text-decoration: none; color: inherit; transition: box-shadow 0.2s, transform 0.2s; }
.rd-list-row:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.rd-list-logo-wrap { flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.rd-list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rd-list-title { font-size: 17px; font-weight: 700; color: var(--rd-dark); }
.rd-list-date { font-size: 14px; color: #6c757d; }
.rd-list-badge { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; font-size: 13px; }

@media (max-width: 600px) {
	.rd-list-row { flex-wrap: wrap; }
	.rd-list-badge { order: -1; margin-left: auto; }
}

/* Roll Number Checker widget */
.rd-roll-widget { max-width: 600px; margin: 30px auto 0; text-align: left; background: var(--rd-light); border: 1px solid var(--rd-border); border-radius: 10px; padding: 25px; }
.rd-roll-label { display: block; font-weight: 700; margin-bottom: 8px; }
.rd-required { color: #dc3545; }
.rd-roll-input { width: 100%; padding: 14px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; margin-bottom: 15px; box-sizing: border-box; }
.cf-turnstile { margin-bottom: 15px; }
.rd-roll-error { background: #f8d7da; color: #721c24; padding: 10px 14px; border-radius: 6px; margin-bottom: 15px; font-size: 14px; }
.rd-agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin-bottom: 20px; cursor: pointer; }
.rd-agree-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 18px; height: 18px; }
.rd-agree-row a { color: var(--rd-primary); }
.rd-roll-submit-btn { width: 100%; padding: 15px; font-size: 17px; background: var(--rd-accent); border-radius: 8px; }
.rd-roll-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.rd-disclaimer { font-size: 13px; color: #6c757d; margin-top: 20px; line-height: 1.6; }

/* Ads */
.rd-ad-container { text-align: center; margin: 20px 0; }
.rd-ad-sticky_mobile { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: #fff; border-top: 1px solid #ccc; }

@media (max-width: 768px) {
	.rd-search-box { flex-direction: column; }
	.rd-search-box input, .rd-search-box select, .rd-search-box button { width: 100%; }
}