/*
Theme Name: Adaptogen Guide
Theme URI: https://adaptogenguide.com
Description: GeneratePress child theme for the Adaptogen Knowledge Base. Provides custom templates for Herb, Blend, Guide, and Research CPTs.
Author: Adaptogen Guide
Author URI: https://adaptogenguide.com
Template: herbs
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adaptogen-guide
*/

/* ==========================================================================
   Base: Adaptogen Knowledge Base Styles
   ========================================================================== */

/* ── Evidence Level Badges ── */
.evidence-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
}
.evidence-high {
	background: #d1f4d1;
	color: #1a6b1a;
}
.evidence-moderate {
	background: #fff3cd;
	color: #856404;
}
.evidence-preliminary {
	background: #ffe0b2;
	color: #e65100;
}
.evidence-insufficient {
	background: #f0f0f0;
	color: #666;
}

/* ── Safety Rating Badges ── */
.safety-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 600;
	white-space: nowrap;
}
.safety-safe {
	background: #d1f4d1;
	color: #1a6b1a;
}
.safety-moderate {
	background: #fff3cd;
	color: #856404;
}
.safety-caution {
	background: #f8d7da;
	color: #721c24;
}
.safety-avoid {
	background: #d6d8db;
	color: #383d41;
}

/* ── Herb Hub Page ── */
.herb-hub-header {
	margin-bottom: 2rem;
}
.herb-scientific-name {
	font-style: italic;
	color: #666;
	font-size: 1.1em;
	margin-top: 0.25rem;
}
.herb-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}
.herb-meta-item {
	background: #f8f9fa;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	border-left: 3px solid #2271b1;
}
.herb-meta-item .meta-label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #666;
	margin-bottom: 0.25rem;
}
.herb-meta-item .meta-value {
	font-weight: 600;
	color: #333;
}

/* ── Herb Subpage Navigation ── */
.herb-subpage-nav {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	margin-bottom: 2rem;
}
.herb-subpage-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.herb-subpage-nav li a {
	display: inline-block;
	padding: 0.4rem 1rem;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 500;
	color: #2271b1;
	background: #fff;
	border: 1px solid #ddd;
	transition: all 0.2s ease;
}
.herb-subpage-nav li a:hover,
.herb-subpage-nav li a.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

/* ── Related Herbs Section ── */
.related-herbs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	margin: 2rem 0;
}
.related-herb-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.25rem;
	transition: box-shadow 0.2s ease;
}
.related-herb-card:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.related-herb-card h3 {
	margin: 0 0 0.5rem;
	font-size: 1.1em;
}
.related-herb-card h3 a {
	text-decoration: none;
	color: #2271b1;
}
.related-herb-card .herb-scientific {
	font-style: italic;
	color: #666;
	font-size: 0.9em;
}

/* ── Research Card ── */
.research-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 1.25rem;
	margin-bottom: 1rem;
}
.research-card .study-type-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.8em;
	font-weight: 600;
	background: #e8e0f0;
	color: #7e5bef;
	margin-right: 0.5rem;
}
.research-card .study-meta {
	font-size: 0.9em;
	color: #666;
	margin-top: 0.5rem;
}

/* ── Blend Card ── */
.blend-herbs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 1rem 0;
}
.blend-herb-tag {
	display: inline-block;
	padding: 0.3rem 0.8rem;
	background: #e3f2fd;
	color: #1565c0;
	border-radius: 20px;
	font-size: 0.85em;
	text-decoration: none;
	transition: background 0.2s;
}
.blend-herb-tag:hover {
	background: #bbdefb;
}

/* ── Health Goal Archive ── */
.health-goal-header {
	margin-bottom: 2rem;
}
.health-goal-herbs {
	margin: 2rem 0;
}

/* ── Archive Page Headers ── */
.archive-header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid #2271b1;
}
.archive-header h1 {
	margin-bottom: 0.5rem;
}
.archive-description {
	color: #666;
	font-size: 1.05em;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.herb-meta-grid {
		grid-template-columns: 1fr;
	}
	.related-herbs-grid {
		grid-template-columns: 1fr;
	}
	.herb-subpage-nav ul {
		flex-direction: column;
	}
	.herb-subpage-nav li a {
		display: block;
		text-align: center;
	}
}
