/**
 * Component Styles for Blog Posts
 *
 * Styles for custom shortcode components
 */

/* Image Component */
.component-image {
	margin: 2rem 0;
	text-align: center;
}

.component-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.component-image.alignleft {
	float: left;
	margin: 0.5rem 1.5rem 0.5rem 0;
}

.component-image.alignright {
	float: right;
	margin: 0.5rem 0 0.5rem 1.5rem;
}

.component-image.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.component-image figcaption {
	font-size: 0.9em;
	color: #666;
	margin-top: 0.5rem;
	font-style: italic;
}

/* Table Component */
.component-table {
	overflow-x: auto;
	margin: 2rem 0;
}

.component-table table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.component-table th,
.component-table td {
	padding: 0.75rem 1rem;
	border: 1px solid #ddd;
	text-align: left;
}

.component-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.component-table tr:nth-child(even) {
	background: #f9f9f9;
}

.component-table tr:hover {
	background: #f5f5f5;
}

/* Blockquote Component */
.component-blockquote {
	margin: 2rem 0;
	padding: 1.5rem;
	border-left: 5px solid #0073aa;
	background: #f9f9f9;
	font-style: italic;
}

.component-blockquote p {
	margin: 0 0 0.5rem 0;
	font-size: 1.1em;
	line-height: 1.6;
}

.component-blockquote .blockquote-author {
	display: block;
	margin-top: 1rem;
	font-size: 0.9em;
	font-style: normal;
	color: #666;
	text-align: right;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.component-image.alignleft,
	.component-image.alignright {
		float: none;
		display: block;
		margin: 1rem auto;
	}

	.component-table table {
		font-size: 0.9em;
	}

	.component-table th,
	.component-table td {
		padding: 0.5rem;
	}
}
