/**
 * Magazine List Block Styles
 */

.magazine-list-block {
	margin: 1rem 0;
}

.magazine-list-block .block-title {
	margin-bottom: 1rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: #1e1e1e;
}

.magazine-list-block .loading-placeholder,
.magazine-list-block .error-placeholder {
	padding: 2rem;
	text-align: center;
	color: #666;
	background: #f9f9f9;
	border-radius: 4px;
}

.magazine-list-block .error-placeholder {
	color: #d63638;
	background: #fcf0f1;
}

/* Simple List Layout */
.magazine-simple-list {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-item {
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.list-item:last-child {
	border-bottom: none;
}

.list-item:hover {
	background-color: #f9f9f9;
}

.list-image {
	flex: 0 0 80px;
}

.list-cover {
	width: 100%;
	height: 100px;
	-o-object-fit: cover;
	   object-fit: cover;
	border-radius: 4px;
}

.list-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.list-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
}

.list-title a {
	color: #1e1e1e;
	text-decoration: none;
}

.list-title a:hover {
	color: #0073aa;
	text-decoration: underline;
}

.list-excerpt {
	margin-bottom: 0.75rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #666;
}

.list-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	color: #888;
}

.list-actions {
	margin-top: auto;
}

/* Table Layout */
.magazine-table-container {
	overflow-x: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.magazine-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.magazine-table th,
.magazine-table td {
	padding: 1rem;
	text-align: left;
	border-bottom: 1px solid #f0f0f0;
}

.magazine-table th {
	background: #f9f9f9;
	font-weight: 600;
	color: #333;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.magazine-table tr:hover {
	background-color: #f9f9f9;
}

.table-cover {
	width: 60px;
	height: 80px;
	-o-object-fit: cover;
	   object-fit: cover;
	border-radius: 4px;
}

.no-cover {
	color: #ccc;
	font-style: italic;
}

.col-image {
	width: 80px;
}

.col-title {
	min-width: 200px;
}

.col-issue,
.col-date,
.col-pages {
	width: 100px;
}

.col-actions {
	width: 120px;
}

/* Timeline Layout */
.magazine-timeline {
	position: relative;
	padding-left: 2rem;
}

.magazine-timeline::before {
	content: '';
	position: absolute;
	left: 1rem;
	top: 0;
	bottom: 0;
	width: 2px;
	background: #e0e0e0;
}

.timeline-item {
	position: relative;
	margin-bottom: 2rem;
}

.timeline-marker {
	position: absolute;
	left: -2rem;
	top: 0.5rem;
	width: 1rem;
	height: 1rem;
	background: #fff;
	border: 2px solid #0073aa;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.timeline-dot {
	width: 6px;
	height: 6px;
	background: #0073aa;
	border-radius: 50%;
}

.timeline-content {
	background: #fff;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-left: 1rem;
}

.timeline-date {
	font-size: 0.8rem;
	font-weight: 600;
	color: #0073aa;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.5rem;
}

.timeline-image {
	float: right;
	margin-left: 1rem;
	margin-bottom: 1rem;
}

.timeline-cover {
	width: 100px;
	height: 130px;
	-o-object-fit: cover;
	   object-fit: cover;
	border-radius: 4px;
}

.timeline-details {
	overflow: hidden;
}

.timeline-title {
	margin: 0 0 0.75rem 0;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
}

.timeline-title a {
	color: #1e1e1e;
	text-decoration: none;
}

.timeline-title a:hover {
	color: #0073aa;
	text-decoration: underline;
}

.timeline-excerpt {
	margin-bottom: 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #666;
}

.timeline-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.8rem;
	color: #888;
}

.timeline-actions {
	margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
	.list-item {
		flex-direction: column;
		text-align: center;
	}
	
	.list-image {
		flex: none;
		align-self: center;
	}
	
	.list-cover {
		height: 80px;
	}
	
	.magazine-table-container {
		font-size: 0.85rem;
	}
	
	.magazine-table th,
	.magazine-table td {
		padding: 0.75rem 0.5rem;
	}
	
	.table-cover {
		width: 40px;
		height: 60px;
	}
	
	.magazine-timeline {
		padding-left: 1.5rem;
	}
	
	.timeline-marker {
		left: -1.5rem;
	}
	
	.timeline-content {
		margin-left: 0.5rem;
		padding: 1rem;
	}
	
	.timeline-image {
		float: none;
		margin: 0 0 1rem 0;
		text-align: center;
	}
	
	.timeline-cover {
		width: 80px;
		height: 100px;
	}
}

@media (max-width: 480px) {
	.list-item {
		padding: 0.75rem;
	}
	
	.list-image {
		flex: 0 0 60px;
	}
	
	.list-cover {
		height: 60px;
	}
	
	.list-title {
		font-size: 1rem;
	}
	
	.magazine-table th,
	.magazine-table td {
		padding: 0.5rem 0.25rem;
		font-size: 0.8rem;
	}
	
	.table-cover {
		width: 30px;
		height: 40px;
	}
	
	.timeline-content {
		padding: 0.75rem;
	}
	
	.timeline-title {
		font-size: 1.1rem;
	}
}

/* Empty State */
.magazine-list-empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #666;
	font-style: italic;
}

