/* TempleSetu Community Hub — Heritage & Insights (Phase 1) */

.tsch-heritage-wrap { width: 100%; }

/* Filters */
.tsch-heritage-filters {
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end;
	background: var(--tsch-cream, #FBF4EC); border-radius: 14px; padding: 1.5rem; margin-bottom: 2rem;
}
.tsch-filter-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 180px; min-width: 160px; }
.tsch-filter-field label { font-size: 0.78rem; font-weight: 600; color: var(--tsch-text-soft, #5B4E47); text-transform: uppercase; letter-spacing: 0.03em; }
.tsch-filter-field input[type="text"],
.tsch-filter-field select {
	padding: 0.55rem 0.75rem; border-radius: 8px; border: 1px solid rgba(194, 97, 72, 0.25);
	font-size: 0.92rem; background: #fff;
}
.tsch-filter-actions { flex: 0 0 auto; flex-direction: row; gap: 0.6rem; align-items: center; }
.tsch-btn { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer; border: none; }
.tsch-btn-primary { background: #C26148; color: #fff; }
.tsch-btn-primary:hover { background: #a94f39; }
.tsch-btn-clear { background: transparent; color: var(--tsch-text-soft, #5B4E47); border: 1px solid rgba(0,0,0,0.12); }

/* Grid + Cards */
.tsch-heritage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.tsch-heritage-card {
	display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
	background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.15s ease, box-shadow 0.15s ease;
	border-top: 4px solid var(--tsch-accent, #C26148);
}
.tsch-heritage-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,0.1); }
.tsch-heritage-card-featured { outline: 2px solid var(--tsch-accent, #C26148); outline-offset: 2px; }
.tsch-heritage-thumb { position: relative; aspect-ratio: 16/10; background: var(--tsch-cream, #FBF4EC); overflow: hidden; }
.tsch-heritage-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsch-badge {
	position: absolute; top: 0.7rem; left: 0.7rem; color: #fff; font-size: 0.7rem; font-weight: 700;
	padding: 0.3rem 0.65rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.tsch-featured-flag {
	position: absolute; top: 0.7rem; right: 0.7rem; background: rgba(255,255,255,0.92); color: #7A4B2E;
	font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 999px;
}
.tsch-heritage-body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tsch-heritage-body h3 { margin: 0; font-size: 1.08rem; line-height: 1.35; }
.tsch-heritage-summary { font-size: 0.9rem; color: var(--tsch-text-soft, #5B4E47); line-height: 1.55; margin: 0; flex: 1; }
.tsch-heritage-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-size: 0.78rem; }
.tsch-heritage-date { color: var(--tsch-text-soft, #5B4E47); }
.tsch-heritage-readmore { color: var(--tsch-accent, #C26148); font-weight: 700; }

/* Single detail page */
.tsch-single-heritage .tsch-breadcrumb { display: inline-block; margin-bottom: 1rem; color: var(--tsch-accent, #C26148); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.tsch-heritage-hero { border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; max-height: 420px; }
.tsch-heritage-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tsch-heritage-single-header { margin-bottom: 1.5rem; }
.tsch-heritage-single-header h1 { margin: 0.6rem 0 0.6rem; font-size: 2rem; line-height: 1.25; }
.tsch-heritage-meta { display: flex; flex-wrap: wrap; gap: 1rem; }
.tsch-heritage-article { line-height: 1.8; font-size: 1.02rem; color: #2b2320; margin: 1.75rem 0; }
.tsch-heritage-article img { max-width: 100%; border-radius: 10px; }

.tsch-did-you-know-box {
	background: linear-gradient(135deg, rgba(194,97,72,0.08), rgba(176,141,43,0.1));
	border-left: 4px solid var(--tsch-accent, #C26148); border-radius: 0 12px 12px 0; padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.tsch-did-you-know-box h2 { margin-top: 0; font-size: 1.15rem; }
.tsch-did-you-know-box p { margin-bottom: 0; line-height: 1.7; }

.tsch-historical-context {
	background: var(--tsch-cream, #FBF4EC); border-radius: 14px; padding: 1.5rem 1.75rem; margin: 2rem 0;
}
.tsch-historical-context h2 { margin-top: 0; font-size: 1.15rem; }
.tsch-historical-context p { margin: 0.4rem 0; color: var(--tsch-text-soft, #5B4E47); }

.tsch-heritage-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }

.tsch-share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 2rem 0; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.08); }
.tsch-share-label { font-weight: 600; color: var(--tsch-text-soft, #5B4E47); font-size: 0.9rem; }
.tsch-share-btn {
	display: inline-flex; align-items: center; padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
	text-decoration: none; border: 1px solid rgba(0,0,0,0.12); background: #fff; color: #2b2320; cursor: pointer;
}
.tsch-share-btn:hover { background: var(--tsch-accent, #C26148); color: #fff; border-color: var(--tsch-accent, #C26148); }
.tsch-share-btn.tsch-share-copied { background: #3a8a5c; color: #fff; border-color: #3a8a5c; }

.tsch-heritage-back { margin-top: 1.5rem; }
.tsch-heritage-back a { color: var(--tsch-accent, #C26148); text-decoration: none; font-weight: 600; }

@media (max-width: 640px) {
	.tsch-heritage-filters { flex-direction: column; align-items: stretch; }
	.tsch-heritage-grid { grid-template-columns: 1fr; }
	.tsch-heritage-single-header h1 { font-size: 1.5rem; }
}
