/* Área de Membros fooba.studio — bloco de status do usuário */

/* ── Wrapper do bloco (gerado pelo get_block_wrapper_attributes) ──── */
.wp-block-amf-user-status {
	display: inline-flex;
	align-items: center;
	position: relative;
}

/* ── Skeleton de carregamento ─────────────────────────────────────── */
.amf-user-status-loading {
	display: flex;
	align-items: center;
	gap: 8px;
}

.amf-user-status-skeleton-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(127,127,127,.22);
	flex-shrink: 0;
	animation: amf-pulse 1.4s ease-in-out infinite;
}

.amf-user-status-skeleton-text {
	width: 64px;
	height: 11px;
	border-radius: 3px;
	background: rgba(127,127,127,.22);
	animation: amf-pulse 1.4s ease-in-out infinite;
}

@keyframes amf-pulse {
	0%,100%{ opacity:.35 }
	50%     { opacity:.85 }
}

/* ── Wrapper do dropdown ──────────────────────────────────────────── */
.amf-usd-wrap {
	position: relative;
	display: inline-flex;
}

/* ── Trigger: texto + mininavatar ──────────────────────────────────── */
.amf-usd-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 24px;
	font-size: inherit;
	color: inherit;
	font-family: inherit;
	line-height: inherit;
}

.amf-usd-trigger:hover,
.amf-usd-wrap.is-open .amf-usd-trigger {
	background: rgba(127,127,127,.12);
}

.amf-usd-trigger-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: block;
}

.amf-usd-guest-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(127,127,127,.2);
	padding: 5px;
	box-sizing: border-box;
	color: currentColor;
	opacity: .7;
	display: block;
}

.amf-usd-trigger-name {
	white-space: nowrap;
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Card (dropdown) ───────────────────────────────────────────────── */
.amf-usd-card {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 280px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	padding: 24px 20px 20px;
	text-align: center;
	z-index: 9999;
	/* Seta indicadora */
	border: 1px solid rgba(0,0,0,.06);
}

.amf-usd-card::before {
	content: '';
	position: absolute;
	top: -7px;
	right: 20px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-left: 1px solid rgba(0,0,0,.06);
	border-top: 1px solid rgba(0,0,0,.06);
	transform: rotate(45deg);
}

.amf-usd-wrap.is-open .amf-usd-card {
	display: block;
	animation: amf-card-in .18s ease;
}

@keyframes amf-card-in {
	from { opacity:0; transform: translateY(-6px) scale(.97); }
	to   { opacity:1; transform: translateY(0)    scale(1);   }
}

/* ── Título (ex: "CONTA FOOBÁ") ────────────────────────────────────── */
.amf-usd-titulo {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #005bea;
	margin: 0 0 16px;
}

/* ── Descrição (visitantes) ────────────────────────────────────────── */
.amf-usd-descricao {
	font-size: 15px;
	line-height: 1.5;
	color: #333;
	margin: 0 0 20px;
}

/* ── Avatar grande (logado) ────────────────────────────────────────── */
.amf-usd-avatar-wrap {
	position: relative;
	display: inline-block;
	margin-bottom: 12px;
}

.amf-usd-avatar-big {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* Botão de lápis sobre o avatar */
.amf-usd-avatar-edit {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 26px;
	height: 26px;
	background: #005bea;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	border: 2px solid #fff;
	text-decoration: none;
}

.amf-usd-avatar-edit svg {
	width: 13px;
	height: 13px;
}

/* ── Nome do usuário ──────────────────────────────────────────────── */
.amf-usd-nome {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 18px;
	color: #111;
}

/* ── Botões de ação ──────────────────────────────────────────────── */
.amf-usd-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.amf-usd-btn {
	display: block;
	width: 100%;
	padding: 11px 16px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
	transition: opacity .15s;
}

.amf-usd-btn:hover {
	opacity: .88;
}

.amf-usd-btn-primary {
	background: #005bea;
	color: #fff;
}

.amf-usd-btn-ghost {
	background: transparent;
	color: #444;
	border: 1px solid #ddd;
}

/* ── Prévia no editor ─────────────────────────────────────────────── */
.amf-user-status-editor-preview {
	display: inline-flex;
}

.amf-user-status-editor-static {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	border: 1px dashed rgba(0,91,234,.4);
	border-radius: 24px;
	cursor: default;
}

.amf-user-status-editor-label {
	font-size: 12px;
	opacity: .75;
}

/* ── Botão Google dentro do dropdown ─────────────────────────────── */
.amf-usd-btn-google {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #fff;
	color: #3c4043;
	border: 1px solid #dadce0;
	font-weight: 500;
}

.amf-usd-btn-google:hover {
	background: #f8f9fa;
	color: #3c4043;
	opacity: 1;
}

.amf-usd-google-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.amf-usd-google-icon svg {
	width: 16px;
	height: 16px;
}
