/**
 * photo-roles.css — UI v3 Live Preview (split desktop, stack mobile)
 *
 * Mobile-first: preview vai pra cima dos slots
 * Desktop (≥768px): split 280px + 1fr
 *
 * @since 5.6.0
 */

.fa-photoroles { font-family: inherit; color: inherit; }
.fa-photoroles * { box-sizing: border-box; }

.fa-pr-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
@media (min-width: 560px) {
	.fa-pr-split { grid-template-columns: 220px 1fr; }
}

/* ═══════════════════════════════════════════
   PREVIEW (esquerda no desktop, topo no mobile)
   ═══════════════════════════════════════════ */
.fa-pr-preview {
	background: #f7f7f8;
	padding: 1rem;
	border-bottom: 1px solid #e5e5e5;
}
@media (min-width: 560px) {
	.fa-pr-preview { border-bottom: none; border-right: 1px solid #e5e5e5; }
}
.fa-pr-preview-label {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin-bottom: 8px;
	font-weight: 500;
}
.fa-pr-mini {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
}
.fa-pr-mini-cover {
	height: 70px;
	position: relative;
	background: linear-gradient(135deg, #d3d1c7, #b4b2a9);
	overflow: hidden;
}
.fa-pr-mini-cover > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 1;
}
.fa-pr-mini-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: #888;
	z-index: 1;
}
.fa-pr-mini-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #fff;
	position: absolute;
	bottom: -16px;
	left: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 16px;
	z-index: 2;
}
.fa-pr-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fa-pr-mini-body { padding: 22px 12px 12px; }
.fa-pr-mini-name { font-size: 13px; font-weight: 500; color: #222; }
.fa-pr-mini-meta { font-size: 11px; color: #888; margin-bottom: 10px; }
.fa-pr-mini-section {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #888;
	margin: 12px 0 6px;
	font-weight: 500;
}
.fa-pr-mini-principal {
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #888;
}
.fa-pr-mini-principal img { width: 100%; height: 100%; object-fit: cover; }
.fa-pr-mini-galeria {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3px;
	margin-top: 6px;
}
.fa-pr-mini-thumb {
	aspect-ratio: 1;
	border-radius: 2px;
	overflow: hidden;
	background: #f0f0f0;
}
.fa-pr-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fa-pr-mini-thumb.empty { background: #f0f0f0; }

/* ═══════════════════════════════════════════
   SLOTS (direita no desktop, abaixo no mobile)
   ═══════════════════════════════════════════ */
.fa-pr-slots { padding: 1rem 1.25rem; }

.fa-pr-slot {
	display: flex;
	gap: 14px;
	padding: 14px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	margin-bottom: 12px;
	align-items: flex-start;
	transition: border-color .15s, background .15s;
}

/* Slot da galeria: thumb pequeno fica em cima e info ocupa largura toda */
.fa-pr-slot--galeria {
	flex-direction: column;
	gap: 8px;
}
.fa-pr-slot--galeria .fa-pr-slot-thumb {
	display: none; /* não precisa de thumb genérico — a grid de fotos já é o conteúdo visual */
}
.fa-pr-slot.filled {
	border-color: #1d9e75;
	background: #e1f5ee;
}
.fa-pr-slot.required-empty {
	border-color: #e24b4a;
	background: #fcebeb;
}
.fa-pr-slot.is-uploading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}
.fa-pr-slot.is-uploading::after {
	content: 'enviando…';
	position: absolute;
	right: 14px;
	top: 14px;
	font-size: 11px;
	color: #185fa5;
	font-weight: 500;
}

.fa-pr-slot-thumb {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.fa-pr-slot-thumb.avatar-shape { border-radius: 50%; }
.fa-pr-slot-thumb.capa-shape {
	width: 96px;
	height: 36px;
}
.fa-pr-slot-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.fa-pr-icon { font-size: 22px; color: #888; }

.fa-pr-slot-info { flex: 1; min-width: 0; max-width: 100%; }
.fa-pr-slot-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
	flex-wrap: wrap;
}
.fa-pr-slot-title { font-size: 14px; font-weight: 500; color: #222; }

.fa-pr-pill {
	font-size: 10px;
	padding: 2px 7px;
	border-radius: 999px;
	font-weight: 500;
}
.fa-pr-pill.req  { background: #fcebeb; color: #791f1f; }
.fa-pr-pill.rec  { background: #faeeda; color: #854f0b; }
.fa-pr-pill.opt  { background: #f1efe8; color: #5f5e5a; }
.fa-pr-pill.done { background: #e1f5ee; color: #04342c; }

.fa-pr-slot-desc {
	font-size: 12px;
	color: #666;
	line-height: 1.5;
	margin-bottom: 8px;
}

.fa-pr-action {
	font-size: 12px;
	padding: 7px 14px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #d0d0d0;
	cursor: pointer;
	font-weight: 500;
	color: #185fa5;
	transition: background .15s;
}
.fa-pr-action:hover { background: #f0f6fd; }

/* ═══════════════════════════════════════════
   GALERIA
   ═══════════════════════════════════════════ */
.fa-pr-galeria-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 5px;
	margin-top: 8px;
}
@media (min-width: 560px) {
	.fa-pr-galeria-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 900px) {
	.fa-pr-galeria-grid { grid-template-columns: repeat(6, 1fr); }
}
.fa-pr-gal-thumb {
	aspect-ratio: 1;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	cursor: grab;
}
.fa-pr-gal-thumb:active { cursor: grabbing; }
.fa-pr-gal-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}
.fa-pr-gal-x {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(0,0,0,0.7);
	color: #fff;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
}
.fa-pr-gal-add {
	aspect-ratio: 1;
	border-radius: 4px;
	border: 1px dashed #c0c0c0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #888;
	cursor: pointer;
	background: #fafafa;
	transition: background .15s, border-color .15s;
}
.fa-pr-gal-add:hover {
	background: #f0f0f0;
	border-color: #888;
}

/* ═══════════════════════════════════════════
   MENSAGENS
   ═══════════════════════════════════════════ */
.fa-pr-msg {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 13px;
}
.fa-pr-msg--error { background: #fcebeb; color: #791f1f; }
.fa-pr-msg--info  { background: #e6f1fb; color: #0c447c; }
.fa-pr-msg--success { background: #e1f5ee; color: #04342c; }

/* ═══════════════════════════════════════════
   PREVIEW STICKY no desktop
   ═══════════════════════════════════════════ */
@media (min-width: 560px) {
	.fa-pr-preview {
		position: sticky;
		top: 1rem;
		align-self: flex-start;
		max-height: calc(100vh - 2rem);
		overflow-y: auto;
	}
}
