/* =========================================================
   AnteEnti Telugu Q&A UI

   File:
   assets/css/components/single-question-card.css

   Component:
   Single Question Card Component v1

   Explanation:
   This file controls the visual styling for the reusable Single Question
   Card component rendered from:

   includes/components/single-question-card.php

   Current flow:

   Single Question Debug Preview
   ↓
   Single Question Card Component
   ↓
   Single Question Card Connector
   ↓
   Single Question Data Source
   ↓
   WordPress / AnsPress / Taxonomy Data Source

   Important:
   The live single-question.php template is not using this component yet.
   For now, this CSS mainly styles the debug preview.
========================================================= */


/* ---------------------------------------------------------
   Card Shell
--------------------------------------------------------- */

.anteenti-single-question-card {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 0;
	padding: 22px;
	background:
		radial-gradient(circle at top left, rgba(255, 201, 128, 0.22), transparent 34%),
		linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
	border: 1px solid rgba(143, 29, 35, 0.12);
	border-radius: 22px;
	box-shadow: 0 10px 26px rgba(80, 45, 20, 0.07);
	font-family: var(--anteenti-font-main, "Anek Telugu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	color: var(--anteenti-color-text, #231f20);
}

.anteenti-single-question-card::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		radial-gradient(circle, rgba(143, 29, 35, 0.06) 1px, transparent 1px);
	background-size: 18px 18px;
	opacity: 0.35;
}

.anteenti-single-question-card > * {
	position: relative;
	z-index: 1;
}


/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

.anteenti-single-question-card-header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.anteenti-single-question-status {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.anteenti-single-question-status-badge {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 11px;
	background: #e8f4df;
	border: 1px solid rgba(47, 143, 70, 0.18);
	border-radius: 999px;
	color: #2f8f46;
	font-size: 0.82rem;
	font-weight: 900;
	line-height: 1.2;
}


/* ---------------------------------------------------------
   Author
--------------------------------------------------------- */

.anteenti-single-question-author {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.anteenti-single-question-author-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.anteenti-single-question-author-avatar a {
	display: inline-flex;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	text-decoration: none;
}

.anteenti-single-question-author-avatar img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff;
	box-shadow: 0 5px 12px rgba(80, 45, 20, 0.14);
	background: #f6e8c7;
}

.anteenti-single-question-author-info {
	min-width: 0;
}

.anteenti-single-question-author-name {
	display: inline-flex;
	color: var(--anteenti-color-primary, #8f1d23);
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1.3;
	text-decoration: none;
}

.anteenti-single-question-author-name:hover {
	color: var(--anteenti-color-primary-dark, #711318);
	text-decoration: underline;
}


/* ---------------------------------------------------------
   Title
--------------------------------------------------------- */

.anteenti-single-question-title {
	max-width: 920px;
	margin: 0;
	color: var(--anteenti-color-text, #231f20);
	font-family: var(--anteenti-font-main, "Anek Telugu", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(1.65rem, 3vw, 2.45rem);
	font-weight: 950;
	line-height: 1.18;
	letter-spacing: -0.03em;
}


/* ---------------------------------------------------------
   Meta
--------------------------------------------------------- */

.anteenti-single-question-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.anteenti-single-question-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 30px;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid rgba(143, 29, 35, 0.10);
	border-radius: 999px;
	color: var(--anteenti-color-muted, #6b5a4f);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1.2;
}

.anteenti-single-question-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.anteenti-single-question-meta-selected_answer {
	background: #e8f4df;
	border-color: rgba(47, 143, 70, 0.18);
	color: #2f8f46;
}


/* ---------------------------------------------------------
   Content
--------------------------------------------------------- */

.anteenti-single-question-content {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(143, 29, 35, 0.10);
	color: var(--anteenti-color-text-soft, #3a302c);
	font-size: 1rem;
	font-weight: 550;
	line-height: 1.75;
}

.anteenti-single-question-content > :first-child {
	margin-top: 0;
}

.anteenti-single-question-content > :last-child {
	margin-bottom: 0;
}


/* ---------------------------------------------------------
   Footer Terms
--------------------------------------------------------- */

.anteenti-single-question-footer {
	display: grid;
	gap: 12px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(143, 29, 35, 0.10);
}

.anteenti-single-question-terms {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px;
}

.anteenti-single-question-terms-label {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	color: var(--anteenti-color-muted, #6b5a4f);
	font-size: 0.8rem;
	font-weight: 900;
	line-height: 1.2;
}

.anteenti-single-question-term-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.anteenti-single-question-term {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 900;
	line-height: 1.2;
	text-decoration: none;
}

.anteenti-single-question-term-category {
	background: rgba(143, 29, 35, 0.08);
	border: 1px solid rgba(143, 29, 35, 0.13);
	color: var(--anteenti-color-primary-dark, #711318);
}

.anteenti-single-question-term-tag {
	background: #f6e8c7;
	border: 1px solid rgba(143, 29, 35, 0.10);
	color: #4b332d;
}

.anteenti-single-question-term:hover {
	background: var(--anteenti-color-primary, #8f1d23);
	border-color: var(--anteenti-color-primary, #8f1d23);
	color: #ffffff;
	text-decoration: none;
}


/* ---------------------------------------------------------
   Empty Footer Handling
--------------------------------------------------------- */

.anteenti-single-question-footer:empty {
	display: none;
}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 768px) {
	.anteenti-single-question-card {
		padding: 16px;
		border-radius: 18px;
	}

	.anteenti-single-question-card-header {
		gap: 10px;
	}

	.anteenti-single-question-author-avatar,
	.anteenti-single-question-author-avatar a,
	.anteenti-single-question-author-avatar img {
		width: 38px;
		height: 38px;
	}

	.anteenti-single-question-title {
		font-size: 1.55rem;
		line-height: 1.22;
	}

	.anteenti-single-question-meta {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scroll-snap-type: x proximity;
	}

	.anteenti-single-question-meta-item {
		white-space: nowrap;
		scroll-snap-align: start;
		font-size: 0.76rem;
	}

	.anteenti-single-question-footer {
		gap: 10px;
	}

	.anteenti-single-question-terms {
		display: block;
	}

	.anteenti-single-question-terms-label {
		margin-bottom: 7px;
	}

	.anteenti-single-question-term-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
		scroll-snap-type: x proximity;
	}

	.anteenti-single-question-term {
		white-space: nowrap;
		scroll-snap-align: start;
		font-size: 0.76rem;
	}
}


/* ---------------------------------------------------------
   Very Small Mobile
--------------------------------------------------------- */

@media (max-width: 380px) {
	.anteenti-single-question-card {
		padding: 14px;
	}

	.anteenti-single-question-title {
		font-size: 1.36rem;
	}
}