/**
 * Frontend styles for Answer Card block.
 *
 * These styles are loaded on both frontend and editor.
 *
 * @package ProvimediaGeoWidget
 */

// Main block container
.wp-block-provimedia-geo-widget-answer-card {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 24px;
	margin-bottom: 24px;
}

// Question heading
.geo-widget-question {
	font-size: 1.2em;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 12px;
}

// Answer text
.geo-widget-answer {
	font-size: 1em;
	line-height: 1.6;
	color: #333;
	margin: 0 0 16px;
}

// Bullet points list
.geo-widget-bullets {
	margin: 0 0 16px;
	padding-left: 20px;

	li {
		margin-bottom: 4px;
		line-height: 1.5;
	}
}

// Sources list
.geo-widget-sources {
	font-size: 0.9em;
	color: #555;
	margin: 0 0 16px;
	padding-left: 20px;

	li {
		margin-bottom: 6px;
		line-height: 1.4;
	}

	a {
		color: #0073aa;
		text-decoration: none;

		&:hover {
			text-decoration: underline;
		}
	}
}

// Source metadata (publisher, date)
.geo-widget-source-meta {
	color: #757575;

	&::before {
		content: ' — ';
	}
}

// Copy buttons container
.geo-widget-copy-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;

	button {
		background: #fff;
		border: 1px solid #ccc;
		border-radius: 4px;
		padding: 6px 14px;
		font-size: 13px;
		color: #333;
		cursor: pointer;
		transition: background-color 0.15s, border-color 0.15s;

		&:hover {
			background: #f0f0f0;
			border-color: #999;
		}

		&:disabled {
			opacity: 0.6;
			cursor: default;
		}
	}
}
