/*
Theme Name: RSRCHDB Child
Theme URI: https://rsrchdb.com
Description: GeneratePress child theme for the RSRCHDB research-database directory. Adds the single-database profile template.
Author: Joe
Template: generatepress
Version: 1.2.1
*/

/* ---- Database profile layout ---- */
.rsrchdb-profile {
    max-width: 820px;
    margin: 0 auto;
}
.rsrchdb-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}
.rsrchdb-logo img {
    max-height: 72px;
    width: auto;
    margin-bottom: 1rem;
}
.rsrchdb-title {
    margin: 0 0 .35em;
}
.rsrchdb-tagline {
    font-size: 1.15rem;
    color: #4b5563;
    margin: 0 0 1rem;
}
.rsrchdb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.rsrchdb-badge {
    display: inline-block;
    background: #eef2ff;
    color: #3730a3;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .25rem .6rem;
    border-radius: 999px;
}
.rsrchdb-badge a {
    color: inherit;
    text-decoration: none;
}
.rsrchdb-glance {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}
.rsrchdb-glance h2 {
    margin-top: 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6b7280;
}
.rsrchdb-glance dl {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .5rem 1.25rem;
}
.rsrchdb-glance dt {
    font-weight: 700;
    color: #374151;
}
.rsrchdb-glance dd {
    margin: 0;
    color: #374151;
}
.rsrchdb-section {
    margin-bottom: 2rem;
}
.rsrchdb-section h2 {
    margin-bottom: .5rem;
}
.rsrchdb-tips {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}
.rsrchdb-verified {
    font-size: .85rem;
    color: #9ca3af;
    font-style: italic;
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}
@media (max-width: 600px) {
    .rsrchdb-glance dl { grid-template-columns: 1fr; gap: .1rem 0; }
    .rsrchdb-glance dd { margin-bottom: .6rem; }
}

/* ---- Typography: Roboto (headings) + Lora (body) ---- */
body,
button,
input,
select,
textarea {
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
}
h1, h2, h3, h4, h5, h6,
.site-title,
.main-title,
.rsrchdb-title,
.entry-title {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-weight: 700;
}

/* ---- RSRCHDB logo size (~2x) ---- */
.main-title {
	font-size: 3rem !important;
	line-height: 1.1;
}
.site-logo img { max-height: 96px; width: auto; }
@media (max-width: 768px) {
	.main-title { font-size: 2rem !important; }
	.site-logo img { max-height: 60px; }
}

/* =====================================================================
   v1.1 — Jewel-tone, app-style look (Roboto Bold headings / Lora body)
   ===================================================================== */
:root {
	--rs-indigo: #3b1f9e;
	--rs-indigo-deep: #24106b;
	--rs-violet: #6d3fd9;
	--rs-teal: #087a77;
	--rs-coral: #d63a2f;
	--rs-amber: #f2a900;
	--rs-magenta: #b8287f;
	--rs-emerald: #0f8a5f;
	--rs-ink: #1b1536;
	--rs-mist: #f4f1fd;
	--rs-line: #e3dcf7;
	--rs-radius: 18px;
	--rs-shadow: 0 8px 28px rgba(59, 31, 158, .12);
}
body { background: #faf8ff; color: var(--rs-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--rs-indigo-deep); font-weight: 700; }
a { color: var(--rs-indigo); }
a:hover { color: var(--rs-coral); }

/* Header + nav */
body .site-header, body .inside-header {
	background: linear-gradient(120deg, var(--rs-indigo-deep) 0%, var(--rs-indigo) 55%, var(--rs-violet) 100%);
}
body .main-title a, body .main-title a:hover, body .site-description { color: #fff; }
body .main-navigation, body .main-navigation ul ul { background: transparent; }
body .main-navigation .main-nav ul li a { color: #fff; font-family: 'Roboto', sans-serif; font-weight: 500; }
body .main-navigation .main-nav ul li:hover > a,
body .main-navigation .main-nav ul li.current-menu-item > a { color: var(--rs-amber); background: rgba(255,255,255,.08); }

/* Hero */
body .rsrchdb-hero {
	background:
		radial-gradient(circle at 12% 20%, rgba(11,143,140,.35) 0, transparent 38%),
		radial-gradient(circle at 88% 15%, rgba(238,90,79,.35) 0, transparent 36%),
		linear-gradient(150deg, var(--rs-indigo-deep) 0%, var(--rs-indigo) 55%, var(--rs-violet) 100%);
	border: 0;
	border-radius: 0 0 36px 36px;
	padding: 4.5rem 1.25rem 4rem;
}
body .rsrchdb-hero h1 { color: #fff; }
body .rsrchdb-hero-sub { color: #e6defb; }
body .rsrchdb-hero-search input[type=text],
body .rsrchdb-hero-search select { border: 0; border-radius: 999px; padding: .8rem 1.1rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
body .rsrchdb-hero-search input[type=submit] { background: var(--rs-coral); border-radius: 999px; padding: .8rem 1.6rem; font-weight: 700; font-family: 'Roboto', sans-serif; }
body .rsrchdb-hero-search input[type=submit]:hover { background: var(--rs-amber); color: var(--rs-ink); }
body .rsrchdb-btn { color: #fff; border: 2px solid rgba(255,255,255,.7); border-radius: 999px; padding: .55rem 1.3rem; }
body .rsrchdb-btn:hover { background: #fff; color: var(--rs-indigo); }

/* Category chips: each category gets its own jewel color */
body .rsrchdb-cat-chip { border: 2px solid var(--rs-line); background: #fff; box-shadow: var(--rs-shadow); }
body .rsrchdb-cat-chip:nth-child(5n+1) { border-color: var(--rs-indigo); }
body .rsrchdb-cat-chip:nth-child(5n+1) span { background: var(--rs-indigo); color: #fff; }
body .rsrchdb-cat-chip:nth-child(5n+2) { border-color: var(--rs-teal); }
body .rsrchdb-cat-chip:nth-child(5n+2) span { background: var(--rs-teal); color: #fff; }
body .rsrchdb-cat-chip:nth-child(5n+3) { border-color: var(--rs-coral); }
body .rsrchdb-cat-chip:nth-child(5n+3) span { background: var(--rs-coral); color: #fff; }
body .rsrchdb-cat-chip:nth-child(5n+4) { border-color: var(--rs-magenta); }
body .rsrchdb-cat-chip:nth-child(5n+4) span { background: var(--rs-magenta); color: #fff; }
body .rsrchdb-cat-chip:nth-child(5n+5) { border-color: var(--rs-amber); }
body .rsrchdb-cat-chip:nth-child(5n+5) span { background: var(--rs-amber); color: var(--rs-ink); }

/* Cards */
body .rsrchdb-card {
	border: 1px solid var(--rs-line);
	border-radius: var(--rs-radius);
	box-shadow: var(--rs-shadow);
	border-top: 6px solid var(--rs-indigo);
	background: #fff;
}
body .rsrchdb-grid > .rsrchdb-card:nth-child(4n+2) { border-top-color: var(--rs-teal); }
body .rsrchdb-grid > .rsrchdb-card:nth-child(4n+3) { border-top-color: var(--rs-coral); }
body .rsrchdb-grid > .rsrchdb-card:nth-child(4n+4) { border-top-color: var(--rs-magenta); }
body .rsrchdb-card:hover { box-shadow: 0 14px 36px rgba(59,31,158,.22); transform: translateY(-4px); }
body .rsrchdb-card h2 a { color: var(--rs-indigo-deep); }
body .rsrchdb-card h2 a:hover { color: var(--rs-coral); }
body .rsrchdb-card .rsrchdb-card-tagline { color: #4a4368; }

/* Badges */
body .rsrchdb-badge { background: var(--rs-mist); color: var(--rs-indigo); }
body .rsrchdb-badge.is-access { background: #d9f5ea; color: #0a6a49; }
body .rsrchdb-badge.is-tier { background: #fff0c2; color: #7a4f00; }

/* About + profile page */
body .rsrchdb-about { background: linear-gradient(135deg, var(--rs-mist), #fff); border: 2px solid var(--rs-line); border-radius: 24px; }
body .rsrchdb-about p { color: var(--rs-ink); }
body .rsrchdb-header { border-bottom: 3px solid var(--rs-violet); }
body .rsrchdb-tagline { color: #4a4368; }
body .rsrchdb-glance { background: var(--rs-mist); border: 2px solid var(--rs-line); border-radius: 22px; box-shadow: var(--rs-shadow); }
body .rsrchdb-glance h2 { color: var(--rs-violet); }
body .rsrchdb-glance dt { color: var(--rs-indigo-deep); }
body .rsrchdb-glance dd { color: var(--rs-ink); }
body .rsrchdb-tips { background: #fff6dc; border-left: 6px solid var(--rs-amber); border-radius: 0 18px 18px 0; }
body .rsrchdb-section h2 { border-left: 6px solid var(--rs-teal); padding-left: .6rem; }
body .rsrchdb-verified { color: #6b6488; }

/* Footer */
body .site-footer, body .site-info { background: var(--rs-indigo-deep); color: #d9cffa; }
body .site-info a { color: var(--rs-amber); }

/* =====================================================================
   v1.2 — Blue primary, full-width layout, per-category colors
   ===================================================================== */
:root {
	--rs-indigo: #1d4ed8;
	--rs-indigo-deep: #14307a;
	--rs-violet: #2563eb;
	--rs-mist: #eff6ff;
	--rs-line: #cfe0fb;
	--rs-shadow: 0 8px 28px rgba(29, 78, 216, .14);
	--cat-academic: #7c3aed;
	--cat-corporate: #15803d;
	--cat-open-access: #ea580c;
	--cat-regional: #0d9488;
	--cat-tools: #be185d;
}
body { background: #f7faff; }
body .rsrchdb-card:hover { box-shadow: 0 14px 36px rgba(29, 78, 216, .22); }

/* Wider content on desktop */
body .grid-container,
body .site.grid-container,
body .container.grid-container { max-width: 1440px; }
body .rsrchdb-archive-head,
body .rsrchdb-filter,
body .rsrchdb-grid,
body .rsrchdb-home-section { max-width: 1360px; }
body .rsrchdb-hero-inner { max-width: 960px; }
body .rsrchdb-profile { max-width: 1100px; }
body .rsrchdb-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* Category colors (chips and badges) */
body a.rsrchdb-cat-chip { color: #fff; border: 2px solid transparent; }
body a.rsrchdb-cat-chip:hover { color: #fff; filter: brightness(1.08); }
body a.rsrchdb-cat-chip span { background: rgba(255, 255, 255, .25); color: #fff; }
body .rsrchdb-badge.is-cat a { color: inherit; }
body a.rsrchdb-cat-chip.is-cat-academic,    body .rsrchdb-badge.is-cat-academic    { background: var(--cat-academic);    border-color: var(--cat-academic);    color: #fff; }
body a.rsrchdb-cat-chip.is-cat-corporate,   body .rsrchdb-badge.is-cat-corporate   { background: var(--cat-corporate);   border-color: var(--cat-corporate);   color: #fff; }
body a.rsrchdb-cat-chip.is-cat-open-access, body .rsrchdb-badge.is-cat-open-access { background: var(--cat-open-access); border-color: var(--cat-open-access); color: #fff; }
body a.rsrchdb-cat-chip.is-cat-regional,    body .rsrchdb-badge.is-cat-regional    { background: var(--cat-regional);    border-color: var(--cat-regional);    color: #fff; }
body a.rsrchdb-cat-chip.is-cat-tools,       body .rsrchdb-badge.is-cat-tools       { background: var(--cat-tools);       border-color: var(--cat-tools);       color: #fff; }
body .rsrchdb-badge.is-cat a, body .rsrchdb-badge.is-cat a:hover { color: #fff; }

/* v1.2.1 — remaining indigo buttons/links to blue */
body .rsrchdb-filter input[type=submit] { background: var(--rs-indigo); border-radius: 999px; padding: .55rem 1.3rem; font-weight: 700; }
body .rsrchdb-filter input[type=submit]:hover { background: var(--rs-indigo-deep); }
