@charset "utf-8";

/* ==========================================
   探索頁面專用樣式 - 延續首頁風格
   ========================================== */

/* 基礎變數已繼承自 modern-home.css */

/* 搜尋頁面主體 */
.search-page .modern-main {
	padding: 0;
}

/* 探索頁面 Hero */
.search-hero {
	padding: 48px 0 32px;
	text-align: center;
	background: linear-gradient(180deg, rgba(59, 192, 255, 0.05) 0%, transparent 100%);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-hero .hero-content {
	max-width: 700px;
	margin: 0 auto;
}

.search-hero .eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.4em;
	font-size: 0.75rem;
	color: var(--brand-secondary, #6dd3ff);
	margin-bottom: 12px;
}

.search-hero h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 600;
	margin: 0 0 12px;
	background: linear-gradient(120deg, rgb(59, 192, 255), rgb(79, 240, 202)) text;
	-webkit-text-fill-color: transparent;
}

.search-hero .lead {
	color: rgba(255, 255, 255, 0.7);
	font-size: 1rem;
	margin: 0;
}

/* 搜尋容器 */
.search-container {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 32px 24px 80px;
}

/* ==========================================
   左側篩選器
   ========================================== */
.search-filters {
	position: sticky;
	top: 100px;
	height: fit-content;
	/* max-height: calc(100vh - 120px);  移除高度限制，讓其自然展開 */
	/* overflow-y: auto;  移除外層滾動條 */
	background: rgba(6, 26, 44, 0.5);
	backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-lg, 28px);
	padding: 24px;
	box-shadow: var(--shadow-soft, 0 20px 60px rgba(5, 15, 31, 0.4));
	/* scrollbar-width: thin; 
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent; */
}

.search-filters::-webkit-scrollbar {
	width: 6px;
}

.search-filters::-webkit-scrollbar-track {
	background: transparent;
}

.search-filters::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 20px;
}

/* Keyword Highlight */
.highlight {
	background: rgba(59, 192, 255, 0.3);
	color: #fff;
	padding: 0 4px;
	border-radius: 4px;
	font-weight: 500;
}

.filters-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filters-header h2 {
	font-size: 1.3rem;
	font-weight: 600;
	margin: 0;
	color: rgb(255, 255, 255);
}

.filter-reset {
	background: transparent;
	border: none;
	color: var(--brand-accent, #3bc0ff);
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: 0.3s;
}

.filter-reset:hover {
	background: rgba(59, 192, 255, 0.1);
}

/* 篩選組 */
.filter-group {
	margin-bottom: 24px;
}

.filter-label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.filter-label span {
	font-size: 1.1rem;
}

.filter-label h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
}

.filter-content {
	padding-left: 28px;
}

/* 日期輸入 */
.date-inputs {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 12px;
}

.date-input {
	width: 100%;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: rgb(255, 255, 255);
	font-size: 0.9rem;
	font-family: inherit;
	transition: 0.3s;
}

.date-input:focus {
	outline: none;
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--brand-accent, #3bc0ff);
}

.date-separator {
	text-align: center;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.5);
}

/* 日期預設按鈕 */
.date-presets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
}

.preset-btn {
	padding: 6px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.8rem;
	cursor: pointer;
	transition: 0.3s;
}

.preset-btn:hover {
	background: rgba(59, 192, 255, 0.1);
	border-color: var(--brand-accent, #3bc0ff);
	color: var(--brand-accent, #3bc0ff);
}

/* 複選框 */
.filter-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	cursor: pointer;
	transition: 0.2s;
}

.filter-checkbox:hover {
	padding-left: 4px;
}

.filter-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.checkbox-custom {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	transition: 0.3s;
	position: relative;
	flex-shrink: 0;
}

.filter-checkbox input:checked+.checkbox-custom {
	background: linear-gradient(135deg, var(--brand-accent, #3bc0ff), var(--brand-secondary, #6dd3ff));
	border-color: var(--brand-accent, #3bc0ff);
}

.filter-checkbox input:checked+.checkbox-custom::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: rgb(15, 20, 25);
	font-size: 0.9rem;
	font-weight: 700;
}

.checkbox-label {
	flex: 1;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
}

.checkbox-count {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
	display: inline-block;
	min-width: 20px;
	text-align: right;
	transition: all 0.3s ease;
}

/* 數字變化動畫 */
.checkbox-count.count-changed {
	animation: countPulse 0.6s ease;
	color: var(--brand-accent, #3bc0ff);
	font-weight: 700;
}

@keyframes countPulse {
	0% {
		transform: scale(1);
	}

	25% {
		transform: scale(1.3);
		color: var(--brand-secondary, #6dd3ff);
	}

	50% {
		transform: scale(1.15);
	}

	75% {
		transform: scale(1.25);
	}

	100% {
		transform: scale(1);
	}
}

/* 套用篩選按鈕 */
.filter-apply {
	width: 100%;
	padding: 12px;
	background: linear-gradient(120deg, var(--brand-accent, #3bc0ff), var(--brand-secondary, #6dd3ff));
	border: none;
	border-radius: 12px;
	color: rgb(15, 20, 25);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: 0.3s;
	margin-top: 8px;
}

.filter-apply:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 192, 255, 0.4);
}

/* ==========================================
   右側搜尋結果
   ========================================== */
.search-results {
	min-height: 600px;
}

/* 工具列 */
.results-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	padding: 16px 24px;
	background: rgba(6, 26, 44, 0.4);
	backdrop-filter: blur(12px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md, 20px);
	gap: 16px;
	flex-wrap: wrap;
}

.toolbar-left {
	flex: 1;
	min-width: 200px;
}

.results-count {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0 0 8px;
	color: rgb(255, 255, 255);
}

.results-count span {
	color: var(--brand-accent, #3bc0ff);
}

.active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: rgba(59, 192, 255, 0.15);
	border: 1px solid rgba(59, 192, 255, 0.3);
	border-radius: 999px;
	font-size: 0.8rem;
	color: rgb(154, 230, 255);
}

.filter-tag button {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 0;
	font-size: 1rem;
	line-height: 1;
}

.toolbar-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* 排序下拉 */
.sort-dropdown {
	position: relative;
}

.sort-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.3s;
}

.sort-btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--brand-accent, #3bc0ff);
}

.sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 160px;
	background: rgba(26, 35, 50, 0.98);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	display: none;
	z-index: 100;
}

.sort-menu.active {
	display: block;
	animation: slideDown 0.3s ease;
}

.sort-option {
	padding: 10px 14px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	transition: 0.2s;
}

.sort-option:hover {
	background: rgba(59, 192, 255, 0.1);
	color: var(--brand-accent, #3bc0ff);
}

/* 視圖切換 */
.view-toggle {
	display: flex;
	gap: 4px;
	background: rgba(255, 255, 255, 0.06);
	padding: 4px;
	border-radius: 10px;
}

.view-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	transition: 0.3s;
}

.view-btn:hover {
	color: rgba(255, 255, 255, 0.9);
	background: rgba(255, 255, 255, 0.08);
}

.view-btn.active {
	background: var(--brand-accent, #3bc0ff);
	color: rgb(15, 20, 25);
}

/* ==========================================
   結果網格/列表
   ========================================== */
.results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 32px;
}

.results-grid[data-view="list"] {
	grid-template-columns: 1fr;
}

/* 音樂會卡片 */
.concert-card {
	background: rgba(6, 26, 44, 0.5);
	backdrop-filter: blur(16px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-md, 20px);
	overflow: hidden;
	transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
}

.concert-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 24px 60px rgba(59, 192, 255, 0.25), 0 0 30px rgba(59, 192, 255, 0.08);
	border-color: rgba(59, 192, 255, 0.35);
}

.card-poster {
	position: relative;
	height: 200px;
	background: radial-gradient(circle at center top, rgba(255, 255, 255, 0.12), transparent 60%);
	overflow: hidden;
}

.card-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.concert-card:hover .card-poster img {
	transform: scale(1.08) translateY(-4%);
}

.card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 12px;
	background: rgba(59, 192, 255, 0.9);
	backdrop-filter: blur(8px);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: rgb(15, 20, 25);
	letter-spacing: 0.05em;
}

.card-body {
	padding: 18px 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-body h3 {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.4;
}

.card-body h3 a {
	color: rgb(255, 255, 255);
	transition: color 0.3s;
}

.card-body h3 a:hover {
	color: var(--brand-accent, #3bc0ff);
}

.card-meta {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-excerpt {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1.6;
	margin: 0 0 12px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-views {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}

.card-action {
	font-size: 0.9rem;
	color: var(--brand-secondary, #6dd3ff);
	font-weight: 600;
	transition: 0.3s;
}

.card-action:hover {
	color: var(--brand-accent, #3bc0ff);
	transform: translateX(4px);
}

/* 列表視圖樣式 */
.results-grid[data-view="list"] .concert-card {
	flex-direction: row;
	align-items: stretch;
}

.results-grid[data-view="list"] .card-poster {
	width: 240px;
	height: auto;
}

.results-grid[data-view="list"] .card-body {
	padding: 20px 24px;
}

/* 沒有結果 */
.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 20px;
}

.no-results-icon {
	font-size: 4rem;
	margin-bottom: 16px;
	opacity: 0.5;
}

.no-results h3 {
	font-size: 1.5rem;
	margin: 0 0 12px;
	color: rgb(255, 255, 255);
}

.no-results p {
	color: rgba(255, 255, 255, 0.6);
	margin: 0 0 24px;
}

.btn-primary {
	padding: 12px 24px;
	background: linear-gradient(120deg, var(--brand-accent, #3bc0ff), var(--brand-secondary, #6dd3ff));
	border: none;
	border-radius: 12px;
	color: rgb(15, 20, 25);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: 0.3s;
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(59, 192, 255, 0.4);
}

/* ==========================================
   分頁
   ========================================== */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 32px;
}

.page-btn {
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.page-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--brand-accent, #3bc0ff);
	color: var(--brand-accent, #3bc0ff);
}

.page-btn.active {
	background: var(--brand-accent, #3bc0ff);
	border-color: var(--brand-accent, #3bc0ff);
	color: rgb(15, 20, 25);
}

.page-btn:disabled {
	opacity: 0.3;
	cursor: not-allowed;
}

.page-dots {
	color: rgba(255, 255, 255, 0.4);
	padding: 0 4px;
}

/* ==========================================
   移動端篩選按鈕
   ========================================== */
.mobile-filter-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	background: linear-gradient(135deg, var(--brand-accent, #3bc0ff), var(--brand-secondary, #6dd3ff));
	border: none;
	border-radius: 50%;
	color: rgb(15, 20, 25);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(59, 192, 255, 0.4);
	z-index: 999;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	transition: 0.3s;
}

.mobile-filter-btn:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(59, 192, 255, 0.5);
}

/* ==========================================
   響應式設計
   ========================================== */
@media (max-width: 1024px) {
	.search-container {
		grid-template-columns: 240px 1fr;
		gap: 24px;
		padding: 24px 16px 80px;
	}

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

@media (max-width: 768px) {
	.search-hero {
		padding: 32px 16px 24px;
	}

	.search-container {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 20px 16px 100px;
	}

	.search-filters {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		border-radius: 0;
		overflow-y: auto;
		transform: translateY(100%);
		transition: transform 0.3s;
	}

	.search-filters.active {
		transform: translateY(0);
	}

	.mobile-filter-btn {
		display: flex;
	}

	.results-toolbar {
		flex-direction: column;
		align-items: flex-start;
		padding: 14px 16px;
	}

	.toolbar-right {
		width: 100%;
		justify-content: space-between;
	}

	.results-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.results-grid[data-view="list"] .concert-card {
		flex-direction: column;
	}

	.results-grid[data-view="list"] .card-poster {
		width: 100%;
		height: 200px;
	}
}

@media (max-width: 480px) {
	.search-hero h1 {
		font-size: 1.8rem;
	}

	.date-presets {
		grid-template-columns: 1fr;
	}

	.pagination {
		gap: 4px;
	}

	.page-btn {
		min-width: 36px;
		height: 36px;
		padding: 0 8px;
		font-size: 0.85rem;
	}
}

/* 深色主題調整 */
body.light-theme .search-filters,
body.light-theme .results-toolbar,
body.light-theme .concert-card {
	background: rgba(255, 255, 255, 0.8);
	border-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .search-hero {
	background: linear-gradient(180deg, rgba(59, 192, 255, 0.08) 0%, transparent 100%);
	border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.light-theme .filters-header h2,
body.light-theme .results-count,
body.light-theme .card-body h3 a {
	color: rgb(26, 35, 50);
}

body.light-theme .filter-label h3,
body.light-theme .checkbox-label {
	color: rgba(26, 35, 50, 0.9);
}

body.light-theme .date-input,
body.light-theme .preset-btn,
body.light-theme .sort-btn,
body.light-theme .page-btn {
	background: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.12);
	color: rgb(26, 35, 50);
}

body.light-theme .card-meta,
body.light-theme .card-excerpt,
body.light-theme .card-views,
body.light-theme .checkbox-count {
	color: rgba(26, 35, 50, 0.6);
}

/* 淺色主題 - logo旁邊的文字 */
body.light-theme .brand-text {
	color: #475569;
}

body.light-theme .brand-title span {
	color: #334155;
}

body.light-theme .brand-title small {
	color: #64748b;
}

/* 淺色主題 - checkbox可見性 */
body.light-theme .checkbox-custom {
	border-color: rgba(0, 0, 0, 0.25);
	background: rgba(255, 255, 255, 0.5);
}

body.light-theme .filter-checkbox:hover .checkbox-custom {
	border-color: rgba(59, 192, 255, 0.5);
	background: rgba(59, 192, 255, 0.08);
}

body.light-theme .filter-checkbox input:checked+.checkbox-custom {
	background: linear-gradient(135deg, #3bc0ff, #6dd3ff);
	border-color: #3bc0ff;
}

body.light-theme .filter-checkbox input:checked+.checkbox-custom::after {
	color: rgb(255, 255, 255);
}

body.light-theme .checkbox-count.count-changed {
	color: #3bc0ff;
}