/**
 * Archive Pages - Shared Styles
 * Common styles for all archive pages (classes, practitioners, events, etc.)
 * 
 * @package Pachamama
 * @version 1.1.0
 */

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
	padding: 120px 0 60px;
	background: var(--deep-forest);
	border-bottom: 1px solid var(--border);
	position: relative;
	overflow: hidden;
}

.header-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.header-bg::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(49, 60, 42, 0.75) 0%, rgba(49, 60, 42, 0.85) 100%);
}

.page-header .breadcrumbs,
.page-header .page-title,
.page-header .page-desc {
	position: relative;
	z-index: 1;
}

.page-header .breadcrumbs {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 20px;
}

.page-header .breadcrumbs a {
	color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumbs a:hover {
	color: var(--warm-sand);
}

.page-title {
	font-family: var(--font-heading);
	font-size: clamp(32px, 5vw, 48px);
	font-weight: var(--weight-bold);
	color: var(--white);
	line-height: 1.2;
	letter-spacing: -1px;
	margin-bottom: 12px;
}

.page-desc {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.85);
	line-height: 1.6;
	max-width: 600px;
}

/* ========================================
   FILTERS SECTION
   ======================================== */

.filters-section {
	padding: 40px 0;
	background: var(--bg-section);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 68px;
	z-index: 50;
}

.filters-container {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.search-box {
	flex: 0 1 auto;
	min-width: 280px;
	max-width: 400px;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: border-color 0.2s;
}

.search-box:focus-within {
	border-color: var(--olive);
}

.search-box input {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--dark-text);
}

.search-box input::placeholder {
	color: var(--light-text);
}

.filter-select {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 12px 40px 12px 18px;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--dark-text);
	cursor: pointer;
	transition: border-color 0.2s;
	min-width: 160px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%234A5E58' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 18px center;
}

.filter-select:hover {
	border-color: var(--olive);
}

.results-count {
	font-size: 14px;
	color: var(--mid-text);
	white-space: nowrap;
}

.btn {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: var(--weight-semibold);
	padding: 12px 28px;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	text-decoration: none;
	display: inline-block;
}

.btn-primary {
	background: var(--deep-forest);
	color: var(--white);
}

.btn-primary:hover {
	background: var(--olive);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(30, 59, 52, 0.2);
}

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

.main-content {
	padding: 60px 0 100px;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 60px;
}

.pagination a,
.pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--deep-forest);
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: all var(--transition-fast);
}

.pagination a:hover {
	border-color: var(--teal);
	color: var(--teal);
}

.pagination .current {
	background: var(--deep-forest);
	color: var(--white);
	border-color: var(--deep-forest);
}

.pagination .dots {
	border: none;
	background: none;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.archive-empty-state {
	text-align: center;
	padding: 80px 0;
}

.empty-state-icon {
	width: 80px;
	height: 80px;
	color: var(--light-text);
	margin: 0 auto 24px;
}

.archive-empty-state h2 {
	font-family: var(--font-heading);
	font-size: var(--heading-md);
	font-weight: var(--weight-semibold);
	color: var(--deep-forest);
	margin: 0 0 12px;
}

.archive-empty-state p {
	font-size: var(--text-xl);
	color: var(--mid-text);
	line-height: var(--line-relaxed);
	max-width: 500px;
	margin: 0 auto 32px;
}

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

@media (max-width: 1100px) {
	.page-header {
		padding: 100px 0 40px;
	}
	
	.filters-section {
		padding: 24px 0;
	}
	
	.main-content {
		padding: 40px 0 80px;
	}
}

@media (max-width: 700px) {
	.page-header {
		padding: 100px 0 32px;
	}
	
	.filters-section {
		padding: 20px 0;
	}
	
	.main-content {
		padding: 32px 0 60px;
	}
	
	.filters-container {
		flex-direction: column;
		align-items: stretch;
	}
	
	.search-box {
		min-width: 100%;
	}
}
