/* Hive Mind Quotes — Frontend Styles */

/* ─── Display Wrap ─────────────────────────────────────────── */
.hmq-display-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px 20px;
	min-height: 200px;
	background-size: cover;
	background-position: center;
	border-radius: 12px;
}

/* ─── Notecard ──────────────────────────────────────────────── */
.hmq-notecard {
	position: relative;
	background: #ffffff;
	background-image: repeating-linear-gradient(
		transparent,
		transparent 27px,
		#dde8f5 28px
	);
	background-size: 100% 28px;
	padding: 48px 36px 36px;
	max-width: 680px;
	width: 100%;
	border-radius: 4px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
	border-left: 4px solid #f9a8b8;
}

/* ─── Pushpin ───────────────────────────────────────────────── */
.hmq-pin {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	width: 22px;
	height: 22px;
	background: radial-gradient(circle at 40% 35%, #ffe770, #e0b800 60%, #a07800);
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.4);
	z-index: 2;
}

.hmq-pin::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	width: 4px;
	height: 10px;
	background: #b8860b;
	border-radius: 0 0 3px 3px;
}

/* ─── Label ─────────────────────────────────────────────────── */
.hmq-label {
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	font-style: italic;
	color: #2a8fa0;
	text-align: center;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	letter-spacing: 0.02em;
}

.hmq-label::before,
.hmq-label::after {
	content: '';
	display: inline-block;
	flex: 1;
	height: 1px;
	background: #2a8fa0;
	opacity: 0.4;
	max-width: 60px;
}

/* ─── Quote Marks ───────────────────────────────────────────── */
.hmq-quote-mark {
	font-size: 3em;
	line-height: 1;
	color: #e8b84b;
	font-family: Georgia, serif;
}

.hmq-quote-mark.hmq-open {
	text-align: left;
	margin-bottom: -0.3em;
}

.hmq-quote-mark.hmq-close {
	text-align: right;
	margin-top: -0.3em;
}

/* ─── Quote Text ────────────────────────────────────────────── */
.hmq-quote-text {
	margin: 0;
	padding: 0;
	border: none;
	font-style: italic;
	line-height: 1.6;
	text-align: center;
}

/* ─── Author ────────────────────────────────────────────────── */
.hmq-author {
	text-align: right;
	font-size: 0.8em;
	color: #718096;
	margin: 16px 0 0;
	font-style: normal;
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ─── No Quotes ─────────────────────────────────────────────── */
.hmq-no-quotes {
	text-align: center;
	color: #718096;
	font-style: italic;
}

/* ─── Login Notice ──────────────────────────────────────────── */
.hmq-login-notice {
	text-align: center;
	padding: 16px;
	background: #fff8e1;
	border-left: 4px solid #e8b84b;
	border-radius: 4px;
}

.hmq-login-notice a {
	color: #2a8fa0;
	font-weight: 600;
}

/* ─── Submit Wrap ───────────────────────────────────────────── */
.hmq-submit-wrap {
	display: flex;
	justify-content: center;
	padding: 20px;
}

.hmq-submit-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	padding: 36px 32px;
	max-width: 560px;
	width: 100%;
	border-top: 4px solid #e8b84b;
}

.hmq-submit-header {
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-size: 1.3em;
	font-weight: 700;
	color: #2d3748;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* ─── Form Fields ───────────────────────────────────────────── */
.hmq-field {
	margin-bottom: 20px;
}

.hmq-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9em;
	color: #4a5568;
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.hmq-field label span {
	color: #e53e3e;
	margin-left: 2px;
}

.hmq-field textarea,
.hmq-field input[type="text"] {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #cbd5e0;
	border-radius: 6px;
	font-size: 1em;
	font-family: inherit;
	color: #2d3748;
	background: #f9fafb;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	resize: vertical;
}

.hmq-field textarea:focus,
.hmq-field input[type="text"]:focus {
	outline: none;
	border-color: #e8b84b;
	box-shadow: 0 0 0 3px rgba(232,184,75,0.18);
	background: #fff;
}

/* ─── Submit Button ─────────────────────────────────────────── */
.hmq-submit-btn {
	display: block;
	width: 100%;
	padding: 12px;
	background: linear-gradient(135deg, #f0c040 0%, #e8b84b 100%);
	color: #1a202c;
	border: none;
	border-radius: 6px;
	font-size: 1em;
	font-weight: 700;
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
	letter-spacing: 0.02em;
}

.hmq-submit-btn:hover {
	opacity: 0.9;
}

.hmq-submit-btn:active {
	transform: scale(0.98);
}

.hmq-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ─── Messages ──────────────────────────────────────────────── */
.hmq-message {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 0.9em;
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	display: none;
}

.hmq-message.success {
	background: #f0fff4;
	color: #276749;
	border-left: 4px solid #48bb78;
	display: block;
}

.hmq-message.error {
	background: #fff5f5;
	color: #c53030;
	border-left: 4px solid #fc8181;
	display: block;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
	.hmq-notecard {
		padding: 40px 20px 28px;
	}

	.hmq-submit-card {
		padding: 24px 18px;
	}

	.hmq-quote-mark {
		font-size: 2.2em;
	}
}

/* --- Type Toggle (submit form) --- */
.hmq-type-toggle {
	display: flex;
	gap: 10px;
}

.hmq-type-option {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	border: 2px solid #cbd5e0;
	border-radius: 20px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9em;
	color: #4a5568;
	background: #f7fafc;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
	user-select: none;
}

.hmq-type-option input[type="radio"] {
	display: none;
}

.hmq-type-option:has(input:checked),
.hmq-type-option.hmq-type-active {
	border-color: #e8b84b;
	background: #fff8e1;
	color: #92400e;
}

/* --- Fact-specific display tweaks --- */
.hmq-fact-text {
	font-style: normal;
}

.hmq-label-fact {
	color: #2d7d62;
}

.hmq-label-fact::before,
.hmq-label-fact::after {
	background: #2d7d62;
}

.hmq-source-label {
	font-style: normal;
	font-weight: 600;
	margin-right: 4px;
	color: #4a5568;
}

/* --- Character Counter --- */
.hmq-char-counter {
	margin: 4px 0 0;
	font-size: 0.78em;
	color: #718096;
	text-align: right;
	font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	transition: color 0.2s;
}

.hmq-char-counter.hmq-char-warning {
	color: #d97706;
}

.hmq-char-counter.hmq-char-limit {
	color: #e53e3e;
	font-weight: 700;
}
