/* Grow Paradise Plant Library — frontend styles
   All selectors are prefixed gp- to avoid leaking into theme styles. */

.gp-plant-archive,
.gp-plant-profile {
	--gp-green: #2f5233;
	--gp-green-light: #eef3ea;
	--gp-ink: #1f2421;
	--gp-muted: #5c6660;
	--gp-border: #e1e6de;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 64px;
	color: var(--gp-ink);
}

/* ---------- Archive ---------- */

.gp-archive-header h1 {
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin-bottom: 4px;
}

.gp-archive-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 32px;
	margin-top: 24px;
}

.gp-archive-filters {
	border: 1px solid var(--gp-border);
	border-radius: 12px;
	padding: 16px;
	align-self: start;
	position: sticky;
	top: 20px;
}

.gp-filter-group {
	border: none;
	padding: 0 0 16px;
	margin: 0 0 16px;
	border-bottom: 1px solid var(--gp-border);
}

.gp-filter-group legend,
.gp-filter-group > label {
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--gp-muted);
	margin-bottom: 8px;
	display: block;
}

.gp-filter-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.95rem;
	padding: 4px 0;
	min-height: 32px;
}

.gp-archive-filters input[type="search"],
.gp-archive-filters input[type="number"],
.gp-archive-filters select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--gp-border);
	border-radius: 8px;
	font-size: 0.95rem;
}

.gp-button {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	border: 1px solid transparent;
	cursor: pointer;
	min-height: 44px;
	line-height: 24px;
	text-align: center;
}

.gp-button--primary {
	background: var(--gp-green);
	color: #fff;
}

.gp-button--ghost {
	background: transparent;
	border-color: var(--gp-border);
	color: var(--gp-ink);
	margin-left: 8px;
}

.gp-plant-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.gp-plant-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid var(--gp-border);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gp-plant-card:hover,
.gp-plant-card:focus-visible {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.gp-plant-card__image {
	aspect-ratio: 4 / 3;
	background: var(--gp-green-light);
}

.gp-plant-card__image img,
.gp-plant-card__image-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-plant-card__body {
	padding: 14px 16px 18px;
}

.gp-plant-card__title {
	margin: 0 0 2px;
	font-size: 1.05rem;
}

.gp-plant-card__botanical {
	margin: 0 0 8px;
	color: var(--gp-muted);
	font-size: 0.9rem;
}

.gp-plant-card__excerpt {
	font-size: 0.88rem;
	color: var(--gp-muted);
	margin: 0 0 10px;
}

.gp-plant-card__badges {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
}

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

.gp-pagination {
	margin-top: 28px;
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.gp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	border-radius: 8px;
	border: 1px solid var(--gp-border);
	text-decoration: none;
	color: var(--gp-ink);
}

.gp-pagination .page-numbers.current {
	background: var(--gp-green);
	color: #fff;
	border-color: var(--gp-green);
}

/* ---------- Badges (shared) ---------- */

.gp-badge,
.gp-badge-row .gp-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--gp-green-light);
	color: var(--gp-green);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.8rem;
	font-weight: 600;
}

.gp-badge-row {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
}

.gp-badge__icon {
	font-size: 0.9em;
}

/* ---------- Single plant profile ---------- */

.gp-plant-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	margin-bottom: 40px;
}

.gp-plant-hero__media {
	border-radius: 16px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--gp-green-light);
}

.gp-plant-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gp-plant-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	color: var(--gp-muted);
	margin: 0 0 6px;
}

.gp-plant-hero__title {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0 0 4px;
	line-height: 1.1;
}

.gp-plant-hero__botanical {
	font-size: 1.1rem;
	color: var(--gp-muted);
	margin: 0 0 16px;
}

.gp-plant-hero__desc {
	font-size: 1.05rem;
	line-height: 1.6;
}

.gp-plant-section {
	margin: 44px 0;
	padding-top: 32px;
	border-top: 1px solid var(--gp-border);
}

.gp-plant-section h2 {
	font-size: 1.4rem;
	margin: 0 0 18px;
}

.gp-plant-subheading {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--gp-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 22px 0 10px;
}

.gp-plant-subheading:first-of-type {
	margin-top: 20px;
}

.gp-plant-prose {
	font-size: 1.02rem;
	line-height: 1.7;
	max-width: 68ch;
}

.gp-glance-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.gp-glance-card {
	background: var(--gp-green-light);
	border-radius: 12px;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gp-glance-card__label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gp-muted);
}

.gp-glance-card__value {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--gp-green);
}

/* Seasonal timeline */

.gp-timeline--grid {
	overflow-x: auto;
}

.gp-timeline--compact {
	display: none; /* Shown only below the mobile breakpoint, see media query. */
	list-style: none;
	margin: 0;
	padding: 0;
	flex-direction: column;
	gap: 10px;
}

.gp-timeline__row {
	display: grid;
	grid-template-columns: 110px repeat(12, minmax(28px, 1fr));
	align-items: center;
	gap: 4px;
	padding: 4px 0;
}

.gp-timeline__label {
	font-size: 0.85rem;
	color: var(--gp-muted);
	font-weight: 600;
}

.gp-timeline__cell {
	height: 22px;
	border-radius: 4px;
	background: var(--gp-border);
}

.gp-timeline__cell--header {
	background: none;
	text-align: center;
	font-size: 0.7rem;
	color: var(--gp-muted);
	height: auto;
}

.gp-timeline__cell.is-active {
	background: var(--gp-green);
}

.gp-timeline-compact-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--gp-border);
	border-radius: 10px;
}

.gp-timeline-compact-row__label {
	font-weight: 600;
	font-size: 0.9rem;
	min-width: 84px;
}

.gp-timeline-compact-row__months {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gp-month-pill {
	background: var(--gp-green);
	color: #fff;
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.78rem;
	font-weight: 600;
}

.gp-month-pill--all {
	background: var(--gp-ink);
}

/* Maintenance calendar */

.gp-maintenance-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.gp-maintenance-item {
	display: grid;
	grid-template-columns: 70px 1fr;
	gap: 4px 16px;
	padding: 10px 14px;
	border: 1px solid var(--gp-border);
	border-radius: 10px;
}

.gp-maintenance-item__month {
	font-weight: 700;
	color: var(--gp-green);
}

.gp-maintenance-item__title {
	font-weight: 600;
}

.gp-maintenance-item__instructions {
	grid-column: 2;
	color: var(--gp-muted);
	font-size: 0.92rem;
}

/* Wildlife */

.gp-wildlife-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.gp-wildlife-list li {
	background: #fff7e6;
	color: #8a5a00;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.9rem;
	font-weight: 600;
}

/* Gallery */

.gp-plant-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.gp-plant-gallery__item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

.gp-plant-gallery__item figcaption {
	font-size: 0.8rem;
	color: var(--gp-muted);
	margin-top: 4px;
}

/* Safety */

.gp-plant-section--safety {
	background: #fdf2f2;
	border-radius: 12px;
	padding: 24px;
	border-top: none;
}

.gp-safety-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
}

.gp-safety-list li {
	background: #fff;
	border: 1px solid #f0c4c4;
	color: #a02222;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.88rem;
	font-weight: 600;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.gp-archive-layout {
		grid-template-columns: 1fr;
	}
	.gp-archive-filters {
		position: static;
	}
	.gp-plant-hero {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.gp-timeline--grid {
		display: none;
	}
	.gp-timeline--compact {
		display: flex;
	}
	.gp-maintenance-item {
		grid-template-columns: 1fr;
	}
	.gp-maintenance-item__instructions {
		grid-column: 1;
	}
}
