/**
 * Treatment CPT Styles
 *
 * Styles for treatment archives, taxonomies, and single pages.
 *
 * @package Lucern_Clinic
 * @since 1.0.0
 */

/* -------------------------------------------------------------------------- */
/* Variables (adjust to match your theme)
/* -------------------------------------------------------------------------- */

:root {
	--treatment-card-radius: 8px;
	--treatment-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--treatment-card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
	--treatment-transition: 0.3s ease;
}

/* -------------------------------------------------------------------------- */
/* Treatment Cards
/* -------------------------------------------------------------------------- */

.treatment-card {
	position: relative;
	background: #fff;
	border-radius: var(--treatment-card-radius);
	overflow: hidden;
	box-shadow: var(--treatment-card-shadow);
	transition: box-shadow var(--treatment-transition), transform var(--treatment-transition);
}

.treatment-card:hover {
	box-shadow: var(--treatment-card-shadow-hover);
	transform: translateY(-4px);
}

.treatment-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.treatment-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: 0;
	background: #f5f5f5;
}

.treatment-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--treatment-transition);
}

.treatment-card:hover .treatment-card__image img {
	transform: scale(1.05);
}

.treatment-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.treatment-card__image--placeholder svg {
	width: 48px;
	height: 48px;
	opacity: 0.3;
}

.treatment-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #fff;
	border-radius: 4px;
	color: var(--color-primary, #333);
}

.treatment-card__content {
	padding: 1.25rem;
}

.treatment-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}

.treatment-card__excerpt {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	color: #666;
	line-height: 1.5;
}

.treatment-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	color: #888;
}

.treatment-card__price {
	font-weight: 600;
	color: var(--color-primary, #333);
}

.treatment-card__duration {
	display: flex;
	align-items: center;
	gap: 4px;
}

.treatment-card__duration svg {
	opacity: 0.6;
}

.treatment-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-primary, #bcaf94);
	transition: gap var(--treatment-transition);
}

.treatment-card:hover .treatment-card__cta {
	gap: 10px;
}

.treatment-card__subcategories {
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	font-size: 0.75rem;
}

.treatment-card__subcategories li {
	padding: 2px 8px;
	background: #f5f5f5;
	border-radius: 3px;
	color: #666;
}

.treatment-card__subcategories .more {
	font-style: italic;
	background: transparent;
	color: #999;
}

/* -------------------------------------------------------------------------- */
/* Treatment Categories Grid (Archive)
/* -------------------------------------------------------------------------- */

.treatment-categories {
	padding: 4rem 0;
}

.treatment-categories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

/* -------------------------------------------------------------------------- */
/* Subcategories Grid (Parent Term)
/* -------------------------------------------------------------------------- */

.subcategories-section {
	padding: 4rem 0;
	background: #fafafa;
}

.subcategories-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}

.subcategory-card {
	background: #fff;
	border-radius: var(--treatment-card-radius);
	overflow: hidden;
	box-shadow: var(--treatment-card-shadow);
	transition: box-shadow var(--treatment-transition), transform var(--treatment-transition);
}

.subcategory-card:hover {
	box-shadow: var(--treatment-card-shadow-hover);
	transform: translateY(-2px);
}

.subcategory-card__link {
	display: flex;
	text-decoration: none;
	color: inherit;
}

.subcategory-card__image {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	margin: 0;
	overflow: hidden;
}

.subcategory-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.subcategory-card__image--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
}

.subcategory-card__image--placeholder svg {
	width: 32px;
	height: 32px;
	opacity: 0.3;
}

.subcategory-card__content {
	flex: 1;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.subcategory-card__title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
	font-weight: 600;
}

.subcategory-card__excerpt {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: #666;
	line-height: 1.4;
}

.subcategory-card__count {
	font-size: 0.75rem;
	color: #999;
}

/* -------------------------------------------------------------------------- */
/* Treatments Grid (List View)
/* -------------------------------------------------------------------------- */

.treatments-section {
	padding: 4rem 0;
}

.treatments-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 2rem;
}

.treatments-grid--list {
	grid-template-columns: 1fr;
	gap: 1rem;
}

.treatments-grid--list .treatment-card {
	display: grid;
	grid-template-columns: 200px 1fr;
}

.treatments-grid--list .treatment-card__image {
	aspect-ratio: 1;
}

.treatments-grid--list .treatment-card__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 600px) {
	.treatments-grid--list .treatment-card {
		grid-template-columns: 1fr;
	}
	
	.treatments-grid--list .treatment-card__image {
		aspect-ratio: 16 / 9;
	}
}

/* -------------------------------------------------------------------------- */
/* Category/Treatment Hero
/* -------------------------------------------------------------------------- */

.category-hero,
.treatment-list-hero {
	position: relative;
	padding: 6rem 0 4rem;
	background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
}

.category-hero__background,
.treatment-list-hero__background {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.category-hero__background img,
.treatment-list-hero__background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.15;
}

.category-hero__content,
.treatment-list-hero__content {
	position: relative;
	z-index: 1;
	max-width: 700px;
}

.category-hero__title,
.treatment-list-hero__title {
	margin: 0.5rem 0 1rem;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	line-height: 1.2;
}

.category-hero__description,
.treatment-list-hero__description {
	font-size: 1.125rem;
	color: #555;
	line-height: 1.6;
}

.category-hero__description p,
.treatment-list-hero__description p {
	margin: 0;
}

/* -------------------------------------------------------------------------- */
/* Single Treatment Hero
/* -------------------------------------------------------------------------- */

.treatment-hero {
	padding: 4rem 0;
	background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
}

.treatment-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

@media (max-width: 900px) {
	.treatment-hero__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	
	.treatment-hero__image {
		order: -1;
	}
}

.treatment-hero__category {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: var(--color-primary, #bcaf94);
	color: #fff;
	border-radius: 4px;
}

.treatment-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
}

.treatment-hero__excerpt {
	margin-bottom: 1.5rem;
	font-size: 1.125rem;
	color: #555;
	line-height: 1.6;
}

.treatment-hero__excerpt p {
	margin: 0;
}

.treatment-hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0 0 2rem;
	padding: 1.25rem;
	list-style: none;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.treatment-hero__facts li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.treatment-hero__facts .fact-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
}

.treatment-hero__facts .fact-value {
	font-size: 1rem;
	font-weight: 600;
}

.treatment-hero__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.treatment-hero__image {
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.treatment-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

/* -------------------------------------------------------------------------- */
/* Single Treatment Content
/* -------------------------------------------------------------------------- */

.treatment-content {
	padding: 4rem 0;
}

.treatment-content .prose {
	font-size: 1.0625rem;
	line-height: 1.7;
}

.treatment-content .prose h2 {
	margin-top: 2.5rem;
}

/* -------------------------------------------------------------------------- */
/* Treatment Benefits
/* -------------------------------------------------------------------------- */

.treatment-benefits {
	padding: 4rem 0;
	background: #fafafa;
}

.benefits-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.benefits-list__item {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benefits-list__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
}

.benefits-list__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.benefits-list__text {
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* -------------------------------------------------------------------------- */
/* Treatment Gallery
/* -------------------------------------------------------------------------- */

.treatment-gallery {
	padding: 4rem 0;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}

.gallery-item {
	margin: 0;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 8px;
	cursor: pointer;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.gallery-item:hover img {
	transform: scale(1.05);
}

/* -------------------------------------------------------------------------- */
/* Treatment FAQ
/* -------------------------------------------------------------------------- */

.treatment-faq {
	padding: 4rem 0;
	background: #fafafa;
}

.faq-accordion {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.faq-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-item__question {
	padding: 1.25rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-item__question::-webkit-details-marker {
	display: none;
}

.faq-item__question::after {
	content: '+';
	font-size: 1.25rem;
	font-weight: 400;
	color: #999;
	transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__question::after {
	transform: rotate(45deg);
}

.faq-item__answer {
	padding: 0 1.25rem 1.25rem;
	color: #555;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* Related Treatments
/* -------------------------------------------------------------------------- */

.related-treatments {
	padding: 4rem 0;
}

/* -------------------------------------------------------------------------- */
/* Treatment CTA
/* -------------------------------------------------------------------------- */

.treatment-cta {
	padding: 4rem 0;
	background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
}

.treatment-cta__box {
	max-width: 600px;
	margin: 0 auto;
	padding: 3rem;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.treatment-cta__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
}

.treatment-cta__text {
	margin: 0 0 1.5rem;
	color: #666;
}

.treatment-cta__buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Breadcrumb
/* -------------------------------------------------------------------------- */

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
}

.breadcrumb a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s ease;
}

.breadcrumb a:hover {
	color: var(--color-primary, #bcaf94);
}

.breadcrumb__separator {
	color: #ccc;
}

.breadcrumb__current {
	color: #333;
	font-weight: 500;
}

.treatment-breadcrumb {
	padding: 1.5rem 0;
	background: #f8f8f8;
	border-bottom: 1px solid #eee;
}

/* -------------------------------------------------------------------------- */
/* Section Titles
/* -------------------------------------------------------------------------- */

.section-title {
	margin: 0 0 2rem;
	font-size: 1.75rem;
	font-weight: 700;
	text-align: center;
}

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

.archive-header {
	padding: 4rem 0 2rem;
	background: linear-gradient(135deg, #f8f6f3 0%, #fff 100%);
}

.archive-title {
	margin: 0 0 0.5rem;
	font-size: clamp(2rem, 5vw, 2.5rem);
	font-weight: 700;
}

.archive-description {
	font-size: 1.125rem;
	color: #666;
	max-width: 600px;
}

/* -------------------------------------------------------------------------- */
/* No Treatments Message
/* -------------------------------------------------------------------------- */

.no-treatments {
	text-align: center;
	padding: 4rem 2rem;
}

.no-treatments p {
	margin: 0 0 1.5rem;
	font-size: 1.125rem;
	color: #666;
}
