/*
Theme Name: Generación Maldita
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Description: Tema hijo de Twenty Twenty-Five para customizaciones de Generación Maldita.
Author: Generación Maldita
Template: twentytwentyfive
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* Add overrides below, or use the Site Editor + Additional CSS. */

/* Single fanzine: portada tipo revista y relieve sobre el resto de CPT */
.gm-single-fanzine .gm-fanzine-hero-wrap {
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 12%, transparent);
}

.gm-single-fanzine .gm-fanzine-cover img {
	box-shadow:
		0 12px 28px color-mix(in srgb, currentColor 18%, transparent),
		0 2px 0 color-mix(in srgb, currentColor 8%, transparent);
	transform: rotate(-0.6deg);
	max-width: min(100%, 320px);
	margin-inline: auto;
}

@media (min-width: 782px) {
	.gm-single-fanzine .gm-fanzine-cover img {
		margin-inline: 0;
	}
}

/* Archivo de fanzines: miniaturas de portada coherentes con la ficha */
.gm-archive-fanzine .gm-archive-fanzine-cover img {
	max-width: min(100%, 220px);
	margin-inline: auto;
	box-shadow: 0 8px 20px color-mix(in srgb, currentColor 14%, transparent);
}

@media (min-width: 782px) {
	.gm-archive-fanzine .gm-archive-fanzine-cover img {
		margin-inline: 0;
	}
}

/* —— Búsqueda: tarjetas oscuras y variación por tipo de contenido —— */
.gm-search-results .gm-search-inline-form .wp-block-search__inside-wrapper {
	border-radius: 6px;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	background: color-mix(in srgb, currentColor 6%, transparent);
}

.gm-search-results .gm-search-inline-form .wp-block-search__input {
	background: transparent;
}

.gm-search-results .gm-search-card {
	border-radius: 10px;
	border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
	background: color-mix(in srgb, currentColor 5%, transparent);
	box-shadow: 0 10px 28px color-mix(in srgb, currentColor 8%, transparent);
	border-inline-start: 4px solid color-mix(in srgb, currentColor 35%, transparent);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gm-search-results .gm-search-card:hover {
	border-color: color-mix(in srgb, currentColor 22%, transparent);
	box-shadow: 0 14px 36px color-mix(in srgb, currentColor 12%, transparent);
}

.gm-search-results .gm-search-type-badge {
	display: inline-block;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.55rem;
	border-radius: 4px;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.gm-search-results .gm-search-card-terms .wp-block-post-terms:empty {
	display: none;
}

.gm-search-results .gm-search-card-thumb img {
	border-radius: 6px;
	box-shadow: 0 6px 18px color-mix(in srgb, currentColor 12%, transparent);
}

/* Acentos por CPT (clases type-* en el <li> del post-template) */
.gm-search-results .type-cortometraje .gm-search-card {
	border-inline-start-color: #c41e3a;
}

.gm-search-results .type-artista .gm-search-card {
	border-inline-start-color: var(--wp--preset--color--accent-3, #503aa8);
}

.gm-search-results .type-espacio .gm-search-card {
	border-inline-start-color: #2d8cf0;
}

.gm-search-results .type-proyeccion .gm-search-card {
	border-inline-start-color: #e6a317;
}

.gm-search-results .type-fanzine .gm-search-card {
	border-inline-start-color: var(--wp--preset--color--accent-2, #f6cff4);
}

.gm-search-results .type-post .gm-search-card {
	border-inline-start-color: var(--wp--preset--color--accent-1, #ffee58);
}

.gm-search-results .type-page .gm-search-card {
	border-inline-start-color: color-mix(in srgb, var(--wp--preset--color--accent-4, #888) 80%, transparent);
}

/* Fanzine / espacio: cartel más “portada” */
.gm-search-results .type-fanzine .gm-search-card-media,
.gm-search-results .type-cortometraje .gm-search-card-media {
	max-width: 260px;
	margin-inline: auto;
}

@media (min-width: 782px) {
	.gm-search-results .type-fanzine .gm-search-card-media,
	.gm-search-results .type-cortometraje .gm-search-card-media {
		margin-inline: 0;
	}
}

