/**
 * Estilos para la vista pública de Portafolio
 * Ubicación: wp-content/themes/art/assets/css/pages/_single-portafolio.css
 */

/* ==========================================================
   Normalización Global de Enlaces (Evitar azules y subrayados)
   ========================================================== */
.art-single-container a,
.art-portfolio-hero-split a,
.art-portfolio-main-card a,
.art-portfolio-artist-card a,
.art-obras-grid a,
.art-obra-card a,
.art-other-portfolios-section a,
.art-other-portfolio-card {
	text-decoration: none !important;
	color: inherit;
	transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.art-single-container a:hover,
.art-portfolio-hero-split a:hover,
.art-obras-grid a:hover,
.art-other-portfolios-section a:hover {
	text-decoration: none !important;
}

/* ==========================================================
   Cabecera Dividida en 2 Bloques (Split Hero):
   - Bloque Principal (Portafolio Ancho)
   - Bloque Lateral (Ficha de Artista / Contacto Compacta)
   ========================================================== */
.art-portfolio-hero-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 1.5rem;
	align-items: stretch;
	margin-bottom: 2.5rem;
}

@media (max-width: 960px) {
	.art-portfolio-hero-split {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}
}

/* 1. Bloque Principal del Portafolio */
.art-portfolio-main-card {
	background: var(--color-fondo-1, #f4ecd0);
	border: 1.5px solid rgba(154, 99, 78, 0.3);
	border-radius: 0.75rem;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.art-portfolio-main-card__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 0.75rem;
}

.art-portfolio-badges-wrap {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.art-portfolio-date-badge {
	font-size: 0.75rem;
	color: var(--color-text-muted, #6b7280);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.art-portfolio-head-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.art-portfolio-main-title {
	font-size: 2rem;
	font-weight: 800;
	color: var(--color-txt-3, #374151);
	line-height: 1.2;
	margin: 0.5rem 0 1rem 0;
	letter-spacing: -0.02em;
}

.art-portfolio-main-desc {
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--color-txt-3, #374151);
	margin: 0;
}

.art-portfolio-main-desc p {
	margin-bottom: 0.75rem;
	color: var(--color-txt-3, #374151);
}

.art-portfolio-main-desc p:last-child {
	margin-bottom: 0;
}

.art-portfolio-main-desc--empty {
	color: var(--color-text-muted, #6b7280);
	font-style: italic;
}

/* ==========================================================
   Botones de Acción Rediseñados y Elegantes (UI Refinada)
   ========================================================== */
.art-btn-portfolio-action {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.85rem;
	border-radius: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.2s ease;
	line-height: 1.2;
}

.art-btn-portfolio-action--primary {
	background: var(--color-fondo-4, #9a634e);
	color: #ffffff !important;
	border: 1px solid var(--color-fondo-4, #9a634e);
	box-shadow: 0 2px 6px rgba(154, 99, 78, 0.25);
}

.art-btn-portfolio-action--primary:hover {
	background: #7d4d3a;
	border-color: #7d4d3a;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(154, 99, 78, 0.35);
}

.art-btn-portfolio-action--share {
	background: rgba(244, 236, 208, 0.8);
	color: var(--color-txt-3, #374151) !important;
	border: 1px solid rgba(154, 99, 78, 0.35);
}

.art-btn-portfolio-action--share:hover {
	background: var(--color-fondo-4, #9a634e);
	color: #ffffff !important;
	border-color: var(--color-fondo-4, #9a634e);
	transform: translateY(-1px);
}

/* 2. Bloque Lateral Compacto del Artista */
.art-portfolio-artist-card {
	background: var(--color-fondo-2, #e1d9c0);
	border: 1px solid rgba(55, 65, 81, 0.15);
	border-radius: 0.75rem;
	padding: 1.35rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.art-portfolio-artist-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(55, 65, 81, 0.1);
	padding-bottom: 0.5rem;
}

.art-portfolio-artist-label {
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-fondo-4, #9a634e);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.art-portfolio-artist-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.art-portfolio-artist-avatar-link {
	display: block;
	flex-shrink: 0;
	text-decoration: none !important;
}

.art-portfolio-artist-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2.5px solid var(--color-fondo-4, #9a634e);
	object-fit: cover;
	background: var(--color-fondo-1, #f4ecd0);
	display: block;
}

.art-portfolio-artist-meta {
	flex: 1;
	min-width: 0;
}

.art-portfolio-artist-name {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--color-txt-3, #374151);
	margin: 0;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.art-portfolio-artist-name a {
	color: var(--color-txt-3, #374151) !important;
	text-decoration: none !important;
}

.art-portfolio-artist-name a:hover {
	color: var(--color-fondo-4, #9a634e) !important;
}

.art-portfolio-artist-handle {
	font-size: 0.75rem;
	color: var(--color-text-muted, #6b7280);
	display: block;
	margin-top: 0.15rem;
}

.art-portfolio-artist-rank-wrap {
	margin-top: 0.35rem;
}

/* Espacio Asociado en Ficha Lateral */
.art-portfolio-artist-space {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--color-fondo-1, #f4ecd0);
	border: 1px solid rgba(154, 99, 78, 0.25);
	border-radius: 0.5rem;
	padding: 0.45rem 0.65rem;
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.art-portfolio-artist-space:hover {
	border-color: var(--color-fondo-4, #9a634e);
	transform: translateY(-1px);
}

.art-portfolio-artist-space__thumb {
	width: 32px;
	height: 32px;
	border-radius: 0.25rem;
	object-fit: cover;
	flex-shrink: 0;
}

.art-portfolio-artist-space__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.art-portfolio-artist-space__type {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--color-fondo-4, #9a634e);
	line-height: 1;
}

.art-portfolio-artist-space__title {
	font-size: 0.775rem;
	font-weight: 700;
	color: var(--color-txt-3, #374151);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

/* Botones de la Ficha del Artista */
.art-portfolio-artist-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.art-btn-artist-profile {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.55rem 0.85rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	background: var(--color-fondo-4, #9a634e);
	color: #ffffff !important;
	border: 1px solid var(--color-fondo-4, #9a634e);
	box-shadow: 0 2px 6px rgba(154, 99, 78, 0.2);
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.art-btn-artist-profile:hover {
	background: #7d4d3a;
	border-color: #7d4d3a;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(154, 99, 78, 0.3);
	color: #ffffff !important;
}

.art-btn-artist-works {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.5rem 0.85rem;
	border-radius: 6px;
	font-size: 0.8125rem;
	font-weight: 700;
	background: transparent;
	color: var(--color-fondo-4, #9a634e) !important;
	border: 1.5px solid var(--color-fondo-4, #9a634e);
	text-decoration: none !important;
	transition: all 0.2s ease;
}

.art-btn-artist-works .art-btn-arrow {
	transition: transform 0.2s ease;
	font-size: 0.75rem;
}

.art-btn-artist-works:hover {
	background: var(--color-fondo-4, #9a634e);
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(154, 99, 78, 0.25);
}

.art-btn-artist-works:hover .art-btn-arrow {
	transform: translateX(3px);
}

.art-portfolio-follow-wrap {
	display: flex;
	justify-content: stretch;
}

.art-portfolio-follow-wrap .art-follow-btn {
	width: 100%;
	justify-content: center;
	border-radius: 6px !important;
	text-decoration: none !important;
}

/* ==========================================================
   Catálogo de Obras: Redondeo sutil de 3px
   ========================================================== */
.art-obras-grid .art-obra-card,
.art-obras-grid .art-obra-card__image-wrapper,
.art-obras-grid .art-obra-card__img,
.art-obra-card,
.art-obra-card__image-wrapper,
.art-obra-card__img {
	border-radius: 3px !important;
}

/* ==========================================================
   Tarjetas de Obras (art-obra-card) - Enlaces limpios
   ========================================================== */
.art-obra-card__link {
	text-decoration: none !important;
	color: inherit !important;
}

.art-obra-card__author-link {
	text-decoration: none !important;
	color: #6b7280 !important;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.art-obra-card__author-link:hover,
.art-obra-card__author-link:hover .art-obra-card__author-name {
	color: var(--color-fondo-4, #9a634e) !important;
	text-decoration: none !important;
}

.art-obra-card__title a {
	color: var(--color-txt-3, #374151) !important;
	text-decoration: none !important;
}

.art-obra-card__title a:hover {
	color: var(--color-fondo-4, #9a634e) !important;
	text-decoration: none !important;
}

/* ==========================================================
   Otros Portafolios (Footer)
   ========================================================== */
.art-other-portfolios-section a.art-other-portfolio-card {
	text-decoration: none !important;
	color: inherit !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	border-radius: 0.5rem;
}

.art-other-portfolios-section a.art-other-portfolio-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
	border-color: var(--color-fondo-4, #9a634e);
	text-decoration: none !important;
}

.art-other-portfolio-card:hover img {
	transform: scale(1.05);
}

.art-other-portfolio-card img {
	transition: transform 0.3s ease;
}

.art-other-portfolio-card strong {
	color: var(--color-txt-3, #374151) !important;
}

.art-other-portfolio-card:hover strong {
	color: var(--color-fondo-4, #9a634e) !important;
}

/* Breadcrumbs Link Styling */
.art-breadcrumbs a {
	color: var(--color-txt-3, #374151) !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.art-breadcrumbs a:hover {
	color: var(--color-fondo-4, #9a634e) !important;
	text-decoration: none !important;
}

@media (max-width: 767px) {
	.art-portfolio-main-title {
		font-size: 1.5rem !important;
	}

	.art-portfolio-main-card,
	.art-portfolio-artist-card {
		padding: 1.25rem !important;
	}
}
