/**
 * Single Practitioner Page Styles
 * 
 * @package Pachamama
 * @version 1.1.0
 */

/* ========================================
   HERO SECTION
   ======================================== */

.practitioner-hero {
	background: linear-gradient(135deg, #f8faf9 0%, #ffffff 100%);
	padding: 140px 20px 60px;
	max-width: 1200px;
	margin: 0 auto;
	position: relative;
}

/* Plus Feature: Cover Image */
.practitioner-hero.has-cover-image {
	padding: 0;
	background: none;
	overflow: hidden;
}

.hero-cover-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 400px;
	z-index: 0;
}

.hero-cover-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
}

/* Profile Image and Name Overlay on Cover */
.hero-profile-overlay {
	position: absolute;
	top: 315px;
	left: 50%;
	transform: translateX(-50%);
	max-width: 1200px;
	width: 100%;
	padding: 0 20px;
	display: flex;
	align-items: center;
	gap: 32px;
	z-index: 3;
}

.profile-image-overlay {
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 5px solid white;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	flex-shrink: 0;
}

.profile-image-overlay img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.name-overlay {
	color: white;
}

.name-overlay .name-with-badge {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
}

.name-overlay .practitioner-name {
	font-size: 38px;
	font-weight: 700;
	color: white;
	margin: 0;
	line-height: 1.2;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.name-overlay .practitioner-title {
	font-size: 18px;
	color: #6b7280;
	margin: 0;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.name-overlay .plus-profile-badge {
	background: linear-gradient(135deg, var(--olive) 0%, var(--sage) 100%);
	color: white;
	font-size: 14px;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	animation: none;
}

.breadcrumbs.below-cover {
	margin-bottom: 32px;
	padding-top: 20px;
}

.hero-content.over-cover {
	position: relative;
	z-index: 2;
	padding: 20px 20px 60px;
	margin-top: 440px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	display: grid;
	grid-template-columns: 280px 1fr 320px;
	gap: 48px;
	align-items: start;
}

.practitioner-hero .breadcrumbs {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	color: var(--mid-text);
	margin-bottom: 32px;
}

.practitioner-hero .breadcrumbs a {
	color: var(--mid-text);
	text-decoration: none;
	transition: color 0.2s;
}

.practitioner-hero .breadcrumbs a:hover {
	color: var(--deep-forest);
}

.practitioner-hero .breadcrumbs span {
	color: var(--mid-text);
}

.practitioner-hero .breadcrumbs .separator {
	color: var(--light-text);
}

.hero-content {
	display: grid;
	grid-template-columns: 280px 1fr 320px;
	gap: 48px;
	align-items: start;
}

.hero-content.over-cover > .breadcrumbs {
	grid-column: 1 / -1;
}

.hero-image {
	position: relative;
}

.profile-image {
	position: relative;
	width: 100%;
	aspect-ratio: 3/4;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image.round-frame {
	aspect-ratio: 1;
	border-radius: 50%;
	width: 200px;
	height: 200px;
	border: 6px solid white;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Plus Feature: Gallery */
.hero-gallery {
	width: 100%;
	max-width: 280px;
}

.gallery-main {
	width: 100%;
	aspect-ratio: 3/4;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin-bottom: 12px;
}

.gallery-main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

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

.gallery-thumb {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	background: none;
	padding: 0;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gallery-thumb:hover {
	border-color: var(--olive);
	transform: scale(1.05);
}

.gallery-thumb.active {
	border-color: var(--sage);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.verified-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: white;
	color: #2d6a5f;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.verified-badge svg {
	width: 14px;
	height: 14px;
}

.hero-info {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hero-info .prac-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.hero-info .prac-tag-single {
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 100px;
	font-weight: var(--weight-medium);
}

.hero-info .prac-tag-method {
	background: var(--bg-section);
	color: var(--teal);
}

.hero-info .prac-tag-specialty {
	background: rgba(184, 122, 75, 0.1);
	color: var(--clay);
}

.hero-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.name-with-badge {
	display: flex;
	align-items: center;
	gap: 16px;
}

.plus-profile-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 20px;
	background: linear-gradient(135deg, var(--olive) 0%, var(--sage) 100%);
	color: white;
	font-size: 16px;
	font-weight: 700;
	border-radius: 24px;
	text-transform: uppercase;
	letter-spacing: 1px;
	box-shadow: 0 4px 12px rgba(45, 106, 95, 0.3);
	animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 4px 12px rgba(45, 106, 95, 0.3);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 6px 16px rgba(45, 106, 95, 0.4);
	}
}


.practitioner-name {
	font-size: 36px;
	font-weight: 700;
	color: #1a3a33;
	margin: 0;
	line-height: 1.2;
}

.practitioner-title {
	font-size: 18px;
	color: #6b7280;
	margin: 0;
}

.rating-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.stars {
	display: flex;
	gap: 4px;
}

.star {
	width: 18px;
	height: 18px;
	color: #b87a4b;
}

.rating-text {
	font-size: 16px;
	color: #4b5563;
}

.tags-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.method-tag {
	background: #e8f4f2;
	color: #2d6a5f;
	font-size: 14px;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: 20px;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.info-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.info-icon {
	width: 20px;
	height: 20px;
	color: #2d6a5f;
	flex-shrink: 0;
	margin-top: 2px;
}

.info-content {
	flex: 1;
}

.info-label {
	font-size: 14px;
	color: #9ca3af;
	margin-bottom: 4px;
}

.info-value {
	font-size: 16px;
	font-weight: 500;
	color: #1a3a33;
}

.cta-buttons {
	display: flex;
	gap: 12px;
}

.btn-cta-primary,
.btn-cta-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
}

.btn-cta-primary {
	background: #2d6a5f;
	color: white;
}

.btn-cta-primary:hover {
	background: #245549;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(45, 106, 95, 0.3);
}

.btn-cta-secondary {
	background: white;
	color: #2d6a5f;
	border: 2px solid #2d6a5f;
}

.btn-cta-secondary:hover {
	background: #f8faf9;
	transform: translateY(-1px);
}

/* Plus Feature: WhatsApp Button */
.btn-cta-whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
	background: #25D366;
	color: white;
	border: none;
}

.btn-cta-whatsapp:hover {
	background: #20BA5A;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-cta-whatsapp svg {
	width: 18px;
	height: 18px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 48px;
	align-items: start;
}

.content-column {
	min-width: 0;
}

.content-section {
	margin-bottom: 48px;
}

.section-title {
	font-size: 28px;
	font-weight: 700;
	color: #1a3a33;
	margin: 0 0 24px;
}

.section-text {
	font-size: 16px;
	line-height: 1.7;
	color: #4b5563;
}

.section-text p {
	margin-bottom: 16px;
}

.methods-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.method-item {
	background: #f8faf9;
	border-radius: 12px;
	padding: 24px;
	border: 1px solid #e5e7eb;
}

.method-name {
	font-size: 18px;
	font-weight: 600;
	color: #1a3a33;
	margin: 0 0 8px;
}

.method-desc {
	font-size: 16px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
}

/* ========================================
   REVIEWS
   ======================================== */

.reviews-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.review-card {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.reviewer-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.reviewer-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #2d6a5f;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 600;
}

.reviewer-details {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.reviewer-name {
	font-size: 16px;
	font-weight: 600;
	color: #1a3a33;
}

.review-date {
	font-size: 14px;
	color: #9ca3af;
}

.review-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.review-stars {
	display: flex;
	gap: 4px;
}

.review-stars .star {
	width: 16px;
	height: 16px;
	color: #b87a4b;
}

.delete-review-btn {
	background: transparent;
	border: none;
	padding: 6px;
	cursor: pointer;
	color: #9ca3af;
	transition: all 0.2s;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.delete-review-btn:hover {
	background: #fee;
	color: #dc2626;
}

.delete-review-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.review-text {
	font-size: 16px;
	color: #4b5563;
	line-height: 1.6;
	margin: 0;
}

/* ========================================
   SIDEBAR
   ======================================== */

.sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 100px;
}

.sidebar-card {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 24px;
}

.sidebar-title {
	font-size: 18px;
	font-weight: 600;
	color: #1a3a33;
	margin: 0 0 20px;
}

.contact-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.contact-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f3f4f6;
}

.contact-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.contact-icon {
	width: 18px;
	height: 18px;
	color: #2d6a5f;
	flex-shrink: 0;
	margin-top: 2px;
}

.contact-content {
	flex: 1;
}

.contact-label {
	font-size: 14px;
	color: #9ca3af;
	margin-bottom: 4px;
}

.contact-value {
	font-size: 14px;
	color: #1a3a33;
	font-weight: 500;
}

.contact-value a {
	color: #1a3a33;
	text-decoration: none;
	transition: color 0.2s;
}

.contact-value a:hover {
	color: #2d6a5f;
}

.hours-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hours-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid #f3f4f6;
}

.hours-item:last-child {
	border-bottom: none;
}

.hours-day {
	font-size: 14px;
	font-weight: 500;
	color: #1a3a33;
}

.hours-time {
	font-size: 14px;
	color: #6b7280;
}

.hours-closed {
	font-size: 14px;
	color: #9ca3af;
	font-style: italic;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Hero Contact Section */
.hero-contact {
	background: white;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.hero-contact .contact-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--deep-forest);
	margin-bottom: 20px;
}

/* Reviews Section */
.reviews-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.reviews-header .btn {
	padding: 10px 20px;
	font-size: 14px;
}

#review-form-container {
	background: #f8faf9;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 32px;
}

.review-form .form-group {
	margin-bottom: 20px;
}

.review-form label {
	display: block;
	font-weight: 600;
	color: var(--deep-forest);
	margin-bottom: 8px;
}

.star-rating-input {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 8px;
}

.star-rating-input input[type="radio"] {
	display: none;
}

.star-rating-input label {
	cursor: pointer;
	margin: 0;
}

.star-rating-input label svg {
	width: 32px;
	height: 32px;
	fill: #ddd;
	transition: fill 0.2s;
}

.star-rating-input input[type="radio"]:checked ~ label svg,
.star-rating-input label:hover svg,
.star-rating-input label:hover ~ label svg {
	fill: #f4c430;
}

.review-form textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	resize: vertical;
}

.review-form .form-actions {
	display: flex;
	gap: 12px;
}

.review-form .form-message {
	margin-top: 16px;
	padding: 12px;
	border-radius: 8px;
	font-size: 14px;
}

.form-message-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.form-message-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.no-reviews {
	text-align: center;
	color: var(--mid-text);
	padding: 40px 20px;
	font-size: 16px;
}

@media (max-width: 1024px) {
	.main-content {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.sidebar {
		position: static;
		max-width: 600px;
	}
	
	.hero-content {
		grid-template-columns: 280px 1fr;
	}
	
	.hero-contact {
		grid-column: 1 / -1;
	}
}

@media (max-width: 768px) {
	.practitioner-hero {
		padding: 120px 16px 40px;
	}
	
	.hero-content {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	
	.profile-image {
		max-width: 280px;
		margin: 0 auto;
	}
	
	.practitioner-name {
		font-size: 28px;
	}
	
	.info-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	
	.cta-buttons {
		flex-direction: column;
	}
	
	.btn-cta-primary,
	.btn-cta-secondary {
		width: 100%;
		justify-content: center;
	}
	
	.main-content {
		padding: 40px 16px;
	}
	
	.section-title {
		font-size: 24px;
	}
}
