/* El Rincón Cómics Gallery - estilos base
   Ajusta las variables :root para cambiar colores fácilmente. */

.rccg-wrapper {
	--rccg-bg: #16181c;
	--rccg-card-bg: #1f2227;
	--rccg-accent: #c0392b;
	--rccg-text: #f2f2f2;
	--rccg-text-muted: #a0a0a0;
	--rccg-radius: 10px;

	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 0 40px;
	color: var(--rccg-text);
}

.rccg-section-title {
	font-size: 1.6rem;
	margin: 30px 0 16px;
	border-left: 4px solid var(--rccg-accent);
	padding-left: 12px;
}

.rccg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.rccg-card {
	display: block;
	background: var(--rccg-card-bg);
	border-radius: var(--rccg-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.rccg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.rccg-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #000;
}

.rccg-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rccg-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #2a2d33, #1a1c20);
}

.rccg-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 0.75rem;
	padding: 4px 8px;
	border-radius: 20px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
}

.rccg-badge--upcoming {
	background: var(--rccg-accent);
}

.rccg-badge--protected {
	background: rgba(0, 0, 0, 0.75);
}

.rccg-card-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px 12px 10px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0) 100%);
}

.rccg-card-body {
	padding: 8px 14px 12px;
}

.rccg-card-title {
	font-size: 0.98rem;
	margin: 0;
	line-height: 1.3;
	color: #fff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.rccg-card-date {
	font-size: 0.8rem;
	color: var(--rccg-text-muted);
	margin: 0;
}

.rccg-card-desc {
	font-size: 0.85rem;
	color: var(--rccg-text-muted);
	margin: 6px 0 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rccg-card--upcoming {
	opacity: 0.9;
}

.rccg-pagination {
	margin-top: 24px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.rccg-pagination .page-numbers {
	padding: 8px 14px;
	border-radius: 6px;
	background: var(--rccg-card-bg);
	color: var(--rccg-text);
	text-decoration: none;
}

.rccg-pagination .page-numbers.current {
	background: var(--rccg-accent);
	color: #fff;
}

.rccg-empty {
	color: var(--rccg-text-muted);
}
