/**
 * Pachamama Homepage Styles
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 80px 20px;
	text-align: center;
	position: relative;
}

.hero-container {
	max-width: 900px;
	margin: 0 auto;
}

.hero-title {
	font-size: 3rem;
	font-weight: 700;
	margin: 0 0 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
	font-size: 1.25rem;
	margin: 0 0 2rem;
	opacity: 0.95;
}

.pm-homepage-ending {
	text-align: center;
	padding: 70px 20px;
}

.pm-homepage-ending__logo-wrap {
	margin: 0 auto 18px;
	text-align: center;
}

.pm-homepage-ending__logo {
	display: block;
	margin: 0 auto;
	max-width: 220px;
	height: auto;
}

.pm-homepage-ending__heading {
	margin: 0;
	color: var(--color-text);
}

/* AI Chat */
.ai-chat-container {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	max-width: 700px;
	margin: 0 auto;
}

.ai-chat-input-wrapper {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.ai-chat-input {
	flex: 1;
	padding: 15px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	direction: rtl;
	text-align: right;
	transition: border-color 0.3s;
}

.ai-chat-input:focus {
	outline: none;
	border-color: #667eea;
}

.ai-chat-send-btn {
	padding: 15px 25px;
	background: #667eea;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s;
}

.ai-chat-send-btn:hover {
	background: #5568d3;
}

.ai-chat-messages {
	max-height: 400px;
	overflow-y: auto;
	margin-bottom: 15px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
}

.chat-message {
	margin-bottom: 15px;
	animation: fadeIn 0.3s;
}

.message-content {
	padding: 12px 16px;
	border-radius: 8px;
	display: inline-block;
	max-width: 80%;
	direction: rtl;
	text-align: right;
}

.user-message .message-content {
	background: #667eea;
	color: #fff;
	margin-right: auto;
}

.ai-message .message-content {
	background: #fff;
	color: #333;
	border: 1px solid #e0e0e0;
}

.error-message .message-content {
	background: #fee;
	color: #c00;
	border: 1px solid #fcc;
}

.ai-chat-loading {
	text-align: center;
	padding: 10px;
	color: #666;
}

.spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Quick Suggestions */
.quick-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

.suggestion-btn {
	padding: 10px 20px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #333;
}

.suggestion-btn:hover {
	background: #667eea;
	color: #fff;
	border-color: #667eea;
}

.suggestion-icon {
	font-size: 1.2rem;
}

/* ==========================================================================
   Practitioner Search Section
   ========================================================================== */

.practitioner-search-section {
	background: #f9f9f9;
	padding: 50px 20px;
	border-bottom: 1px solid #e0e0e0;
}

.search-container {
	max-width: 1200px;
	margin: 0 auto;
}

.search-title {
	font-size: 2rem;
	margin: 0 0 30px;
	text-align: center;
	color: #333;
}

.practitioner-search-form {
	background: #fff;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	margin-bottom: 30px;
}

.search-grid {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 20px;
	align-items: end;
}

@media (max-width: 768px) {
	.search-grid {
		grid-template-columns: 1fr;
	}
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.filter-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: #333;
	font-size: 1rem;
}

.filter-icon {
	font-size: 1.3rem;
}

.filter-select {
	padding: 12px 15px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	direction: rtl;
	background: #fff;
	transition: border-color 0.3s;
}

.filter-select:focus {
	outline: none;
	border-color: #667eea;
}

.search-actions {
	display: flex;
	align-items: flex-end;
}

.btn {
	padding: 12px 30px;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s;
	font-weight: 600;
	text-decoration: none;
	display: inline-block;
	text-align: center;
}

.btn-primary {
	background: #667eea;
	color: #fff;
}

.btn-primary:hover {
	background: #5568d3;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
	background: #fff;
	color: #667eea;
	border: 2px solid #667eea;
}

.btn-secondary:hover {
	background: #667eea;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.registration-cta {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 30px;
	border-radius: 12px;
	text-align: center;
	color: #fff;
}

.registration-cta p {
	font-size: 1.2rem;
	margin: 0 0 20px;
	font-weight: 500;
}

.registration-cta .btn-secondary {
	background: #fff;
	color: #667eea;
	border: none;
	font-size: 1.1rem;
	padding: 15px 40px;
}

.registration-cta .btn-secondary:hover {
	background: #f0f0f0;
	color: #5568d3;
}

.active-filters-label {
	font-weight: 600;
	color: #666;
}

.filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: #667eea;
	color: #fff;
	border-radius: 20px;
	font-size: 0.9rem;
}

.remove-filter {
	background: none;
	border: none;
	color: #fff;
	font-size: 1.2rem;
	cursor: pointer;
	padding: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==========================================================================
   Curated Sections
   ========================================================================== */

.curated-sections {
	padding: 60px 20px;
}

.curated-section {
	max-width: 1200px;
	margin: 0 auto 60px;
}

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
}

.section-title {
	font-size: 2rem;
	margin: 0;
	color: #333;
}

.section-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.section-link:hover {
	color: #5568d3;
}

/* Cards Grid */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.entity-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.entity-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.entity-card:hover .card-image img {
	transform: scale(1.05);
}

.card-content {
	padding: 20px;
}

.card-title {
	font-size: 1.25rem;
	margin: 0 0 10px;
}

.card-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s;
}

.card-title a:hover {
	color: #667eea;
}

.card-excerpt {
	color: #666;
	margin: 0 0 15px;
	line-height: 1.6;
}

.card-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.card-link:hover {
	color: #5568d3;
}

/* Category Grid */
.category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.category-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 30px 20px;
	border-radius: 12px;
	text-align: center;
	text-decoration: none;
	transition: transform 0.3s;
}

.category-card:hover {
	transform: translateY(-5px);
}

.category-name {
	font-size: 1.25rem;
	margin: 0 0 10px;
}

.category-count {
	font-size: 0.9rem;
	opacity: 0.9;
}

/* Region Grid */
.region-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

.region-card {
	background: #fff;
	border: 2px solid #e0e0e0;
	padding: 25px 20px;
	border-radius: 12px;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s;
}

.region-card:hover {
	border-color: #667eea;
	transform: translateY(-3px);
}

.region-icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 10px;
}

.region-name {
	font-size: 1.1rem;
	margin: 0 0 5px;
	color: #333;
}

.region-count {
	font-size: 0.85rem;
	color: #666;
}

/* ==========================================================================
   Map Section
   ========================================================================== */

.map-section {
	padding: 60px 20px;
	background: #f9f9f9;
}

.map-controls {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.map-toggle-btn {
	padding: 10px 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
}

.map-toggle-btn.active {
	background: #667eea;
	color: #fff;
	border-color: #667eea;
}

.map-container {
	position: relative;
	height: 600px;
	margin-top: 20px;
	border-radius: 12px;
	overflow: hidden;
}

.google-map {
	width: 100%;
	height: 100%;
}

.map-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	background: #fff;
	padding: 20px 40px;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-sidebar {
	position: fixed;
	top: 0;
	right: -400px;
	width: 400px;
	height: 100vh;
	background: #fff;
	box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
	transition: right 0.3s;
	z-index: 1000;
	overflow-y: auto;
}

.map-sidebar.open {
	right: 0;
}

.map-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.map-sidebar-close {
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: #666;
}

.map-sidebar-content {
	padding: 20px;
}

/* ==========================================================================
   Calendar Section
   ========================================================================== */

.calendar-section {
	padding: 60px 20px;
	max-width: 1200px;
	margin: 0 auto;
}

.calendar-view-toggles {
	display: flex;
	gap: 10px;
}

.view-toggle {
	padding: 10px 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s;
}

.view-toggle.active {
	background: #667eea;
	color: #fff;
	border-color: #667eea;
}

.calendar-filters {
	display: flex;
	gap: 20px;
	margin: 20px 0;
	flex-wrap: wrap;
}

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

.event-card {
	display: flex;
	gap: 20px;
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #667eea;
	color: #fff;
	border-radius: 8px;
	padding: 15px;
	min-width: 80px;
}

.event-day {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
}

.event-month {
	font-size: 0.9rem;
	text-transform: uppercase;
}

.event-content {
	flex: 1;
}

.event-meta {
	display: flex;
	gap: 15px;
	margin-bottom: 10px;
	font-size: 0.9rem;
}

.event-type {
	background: #f0f0f0;
	padding: 4px 12px;
	border-radius: 12px;
	color: #666;
}

.event-time {
	color: #666;
}

.event-title {
	font-size: 1.5rem;
	margin: 0 0 10px;
}

.event-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s;
}

.event-title a:hover {
	color: #667eea;
}

.event-excerpt {
	color: #666;
	margin: 0 0 10px;
	line-height: 1.6;
}

.event-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
}

.event-thumbnail {
	width: 150px;
	height: 150px;
	border-radius: 8px;
	overflow: hidden;
}

.event-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.no-events {
	text-align: center;
	padding: 40px;
	color: #666;
}

/* ==========================================================================
   Symptom Discovery Section
   ========================================================================== */

.symptom-discovery-section {
	padding: 60px 20px;
	background: #f9f9f9;
	max-width: 1200px;
	margin: 0 auto;
}

.section-description {
	text-align: center;
	color: #666;
	margin: 10px 0 30px;
}

.symptom-search-container {
	max-width: 600px;
	margin: 0 auto 40px;
	position: relative;
}

.symptom-search-input {
	width: 100%;
	padding: 15px 20px;
	border: 2px solid #ddd;
	border-radius: 8px;
	font-size: 1rem;
	direction: rtl;
	text-align: right;
}

.symptom-search-input:focus {
	outline: none;
	border-color: #667eea;
}

.symptom-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-top: 5px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 100;
	max-height: 300px;
	overflow-y: auto;
}

.symptom-suggestion {
	display: block;
	padding: 12px 20px;
	text-decoration: none;
	color: #333;
	border-bottom: 1px solid #f0f0f0;
	transition: background 0.3s;
}

.symptom-suggestion:hover {
	background: #f9f9f9;
}

.symptom-suggestion:last-child {
	border-bottom: none;
}

.no-results {
	padding: 12px 20px;
	text-align: center;
	color: #666;
}

.subsection-title {
	font-size: 1.25rem;
	margin: 0 0 20px;
	text-align: center;
}

.symptom-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.symptom-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 20px;
	text-decoration: none;
	transition: all 0.3s;
	position: relative;
}

.symptom-card:hover {
	border-color: #667eea;
	transform: translateY(-3px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.symptom-name {
	font-size: 1.1rem;
	margin: 0 0 10px;
	color: #333;
}

.symptom-description {
	color: #666;
	font-size: 0.9rem;
	margin: 0;
	line-height: 1.5;
}

.symptom-link-arrow {
	position: absolute;
	bottom: 15px;
	left: 15px;
	color: #667eea;
	font-size: 1.2rem;
}

.symptom-disclaimer {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 20px;
	margin-top: 40px;
}

.symptom-disclaimer p {
	margin: 0;
	color: #856404;
	line-height: 1.6;
}

/* ==========================================================================
   Calendar Grid View
   ========================================================================== */

.calendar-grid {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.calendar-month-year {
	font-size: 1.5rem;
	margin: 0;
	color: #333;
}

.calendar-nav-btn {
	background: #667eea;
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.5rem;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.calendar-nav-btn:hover {
	background: #5568d3;
	transform: scale(1.1);
}

.calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin-bottom: 10px;
}

.calendar-weekday {
	text-align: center;
	font-weight: 600;
	color: #667eea;
	padding: 10px;
	font-size: 0.9rem;
}

.calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.calendar-day {
	min-height: 100px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 8px;
	background: #fff;
	transition: all 0.3s;
	position: relative;
}

.calendar-day:hover:not(.empty) {
	background: #f9f9f9;
	border-color: #667eea;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.empty {
	background: #fafafa;
	border-color: transparent;
}

.calendar-day.today {
	background: #e8eaf6;
	border-color: #667eea;
	border-width: 2px;
}

.day-number {
	font-weight: 600;
	color: #333;
	margin-bottom: 5px;
	font-size: 0.9rem;
}

.calendar-day.today .day-number {
	color: #667eea;
	font-size: 1.1rem;
}

.day-events {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.calendar-event {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 3px 5px;
	border-radius: 4px;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
	background: #f0f0f0;
}

.calendar-event:hover {
	transform: scale(1.05);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calendar-event.class {
	background: #e3f2fd;
	color: #1976d2;
}

.calendar-event.workshop {
	background: #f3e5f5;
	color: #7b1fa2;
}

.calendar-event.retreat {
	background: #e8f5e9;
	color: #388e3c;
}

.calendar-event.festival {
	background: #fff3e0;
	color: #f57c00;
}

.calendar-event.ceremony {
	background: #fce4ec;
	color: #c2185b;
}

.calendar-event.concert {
	background: #e0f2f1;
	color: #00796b;
}

.event-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.event-title-short {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.hero-title {
		font-size: 2rem;
	}

	.hero-subtitle {
		font-size: 1rem;
	}

	.filters-grid {
		grid-template-columns: 1fr;
	}

	.cards-grid {
		grid-template-columns: 1fr;
	}

	.section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.event-card {
		flex-direction: column;
	}

	.event-thumbnail {
		width: 100%;
		height: 200px;
	}

	.map-sidebar {
		width: 100%;
		right: -100%;
	}

	.calendar-view-toggles,
	.map-controls {
		justify-content: center;
	}

	.calendar-day {
		min-height: 80px;
		padding: 5px;
	}

	.day-number {
		font-size: 0.8rem;
	}

	.calendar-event {
		font-size: 0.65rem;
		padding: 2px 4px;
	}

	.calendar-weekday {
		font-size: 0.75rem;
		padding: 5px;
	}

	.calendar-month-year {
		font-size: 1.2rem;
	}

	.calendar-nav-btn {
		width: 35px;
		height: 35px;
		font-size: 1.2rem;
	}
}
