/* Hindu Traditions & Rituals — default styling.
   Colors come from CSS variables set by the plugin's own Customizer
   panel (Appearance → Customize → Rituals Section Appearance), with
   maroon/gold/ivory Kerala-temple defaults as fallback. */

.htr-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.htr-eyebrow {
	font-style: italic;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--htr-accent, #c99b3f);
	margin-bottom: 8px;
}
.htr-eyebrow a { color: inherit; text-decoration: none; }
.htr-eyebrow a:hover { text-decoration: underline; }

.htr-archive-header {
	background: var(--htr-primary, #7a1f1f);
	color: #fff;
	padding: 48px 0;
	text-align: center;
}
.htr-archive-header h1 { color: #fff; margin: 4px 0 0; }

.htr-archive-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 40px;
	padding: 40px 24px;
}
@media (max-width: 820px) { .htr-archive-layout { grid-template-columns: 1fr; } }

.htr-ritual-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px;
}

.htr-ritual-card {
	display: block;
	background: var(--htr-ivory, #faf5e9);
	border: 1px solid #e2ddd3;
	border-radius: 10px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.htr-ritual-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.1); transform: translateY(-3px); }
.htr-ritual-card__image { height: 140px; background-size: cover; background-position: center; background-color: #eee; }
.htr-ritual-card__body { padding: 16px; }
.htr-ritual-badge {
	display: inline-block;
	background: var(--htr-accent, #c99b3f);
	color: #2a1c14;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.htr-ritual-card__title { font-size: 1.1rem; margin: 0 0 6px; color: var(--htr-primary, #7a1f1f); }
.htr-ritual-card__excerpt { font-size: 0.88rem; color: #6b5c48; margin: 0; }

.htr-empty-note { color: #777; padding: 30px 0; }

/* Single ritual page */
.htr-single-inner { max-width: 760px; padding: 40px 24px 64px; }
.htr-single-inner h1 { color: #e8c547; margin: 4px 0 12px; }
.htr-single-tags { margin-bottom: 16px; }
.htr-tag {
	display: inline-block;
	font-size: 0.78rem;
	padding: 3px 12px;
	border-radius: 999px;
	margin-right: 6px;
	margin-bottom: 6px;
}
.htr-tag--type { background: var(--htr-accent, #c99b3f); color: #2a1c14; }
.htr-tag--deity { background: var(--htr-primary, #7a1f1f); color: #fff; }
.htr-single-image { margin: 20px 0; border-radius: 10px; overflow: hidden; }
.htr-single-image img { width: 100%; height: auto; display: block; }
.htr-single-content { font-size: 1.05rem; line-height: 1.8; }
.htr-single-content p { margin-bottom: 1.2em; }

/* Ad slot */
.htr-ad-slot { margin: 32px 0; text-align: center; }
.htr-ad-label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #a8987c;
	margin-bottom: 6px;
}

/* Gallery */
.htr-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin: 24px 0;
}
.htr-gallery-item { display: block; border-radius: 8px; overflow: hidden; }
.htr-gallery-item img { width: 100%; height: 140px; object-fit: cover; display: block; transition: transform 0.2s ease; }
.htr-gallery-item:hover img { transform: scale(1.05); }

/* Interactive comments */
.htr-comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid #e2ddd3; }
.htr-comments__title { color: var(--htr-primary, #7a1f1f); }
.htr-comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.htr-comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #eee; }
.htr-comment__avatar img { border-radius: 50%; }
.htr-comment__meta { margin: 0 0 4px; font-size: 0.9rem; }
.htr-comment__date { color: #999; font-size: 0.82rem; margin-left: 8px; }
.htr-comment__content p { margin: 0 0 8px; }
.htr-like-btn {
	background: none;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 3px 12px;
	font-size: 0.82rem;
	cursor: pointer;
	color: #888;
}
.htr-like-btn:hover { border-color: var(--htr-primary, #7a1f1f); color: var(--htr-primary, #7a1f1f); }
.htr-like-btn.is-liked { color: var(--htr-primary, #7a1f1f); border-color: var(--htr-primary, #7a1f1f); cursor: default; }

.htr-comment-form-wrap { background: var(--htr-ivory, #faf5e9); border-radius: 10px; padding: 22px; }
.htr-field { margin-bottom: 14px; }
.htr-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; color: var(--htr-primary, #7a1f1f); }
.htr-field input, .htr-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-family: inherit;
}
.htr-comment-submit {
	background: var(--htr-primary, #7a1f1f);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 24px;
	font-weight: 600;
	cursor: pointer;
}
.htr-comment-submit:hover { background: var(--htr-accent, #c99b3f); color: #2a1c14; }
.htr-comment-status { margin-bottom: 12px; padding: 8px 12px; border-radius: 6px; font-size: 0.9rem; }
.htr-comment-status.htr-success { background: #e6f4ea; color: #1e6b2e; }
.htr-comment-status.htr-error { background: #fdecea; color: #a33; }

/* Ongoing Series widget */
.htr-series-widget { padding: 4px 0; }
.htr-series-widget__item-title { font-weight: 700; color: var(--htr-primary, #7a1f1f); margin: 0 0 6px; }
.htr-series-widget__desc { font-size: 0.88rem; color: #6b5c48; margin: 0 0 10px; }
.htr-series-widget__cta { color: var(--htr-accent, #c99b3f); font-weight: 600; text-decoration: none; }
.htr-series-widget__cta:hover { text-decoration: underline; }
