/* Formulários de login/registro/senha */
.mm-auth-form {
	max-width: 420px;
	margin: 20px auto;
	padding: 28px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mm-auth-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
}

.mm-auth-form input[type="text"],
.mm-auth-form input[type="email"],
.mm-auth-form input[type="password"],
.mm-auth-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.mm-checkbox-row label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 6px;
}

.mm-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	font-size: 14px;
	text-decoration: none;
	text-align: center;
}

.mm-btn-primary {
	background: #2271b1;
	color: #fff;
}

.mm-btn-secondary {
	background: #eee;
	color: #333;
}

.mm-form-links {
	font-size: 13px;
	text-align: center;
	margin-top: 15px;
}

/* Campo-armadilha anti-spam (invisível para humanos, mas fora de display:none pra não ser ignorado por bots simples) */
.mm-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
}

/* Campo de senha com botão de mostrar/ocultar */
.mm-password-field {
	position: relative;
}

.mm-toggle-password {
	position: absolute;
	right: 10px;
	top: 32px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 15px;
	opacity: 0.5;
	padding: 4px;
	line-height: 1;
}

.mm-toggle-password.is-visible {
	opacity: 1;
}

.mm-hint {
	font-size: 12px;
	opacity: 0.6;
	margin-top: -8px;
}

/* Indicador de força de senha */
.mm-password-strength {
	height: 4px;
	border-radius: 2px;
	background: #eee;
	margin: -6px 0 14px;
	position: relative;
	overflow: hidden;
}

.mm-password-strength span {
	position: absolute;
	top: 100%;
	left: 0;
	font-size: 11px;
	margin-top: 3px;
	opacity: 0.65;
}

.mm-password-strength::before {
	content: '';
	display: block;
	height: 100%;
	width: 0;
	transition: width 0.2s, background 0.2s;
}

.mm-strength-1::before { width: 25%; background: #b32d2e; }
.mm-strength-2::before { width: 50%; background: #d98c1f; }
.mm-strength-3::before { width: 75%; background: #cbbe1f; }
.mm-strength-4::before { width: 100%; background: #2e8b3d; }

.mm-message {
	padding: 10px 14px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 15px;
}

.mm-msg-error {
	background: #fbe9e9;
	color: #b32d2e;
}

.mm-msg-success {
	background: #e6f6e9;
	color: #1e3d24;
}

/* Conteúdo restrito */
.mm-restricted-content {
	max-width: 700px;
	margin: 0 auto;
}

.mm-preview-text {
	opacity: 0.7;
	font-style: italic;
}

.mm-restricted-cta {
	padding: 24px;
	border-radius: 8px;
	background: #f6f7f7;
	text-align: center;
	margin-top: 15px;
}

.mm-restricted-title {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 8px;
}

.mm-restricted-cta .mm-btn {
	margin: 5px;
}

/* Dashboard do membro */
.mm-dashboard {
	max-width: 700px;
	margin: 20px auto;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mm-dashboard-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
}

.mm-dashboard-header h3 {
	margin: 0;
}

.mm-user-email {
	opacity: 0.6;
	font-size: 13px;
	margin: 2px 0 0;
}

.mm-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

.mm-logout-btn {
	margin-left: auto;
}

.mm-dashboard-tabs {
	display: flex;
	gap: 10px;
	border-bottom: 1px solid #eee;
	margin-bottom: 20px;
}

.mm-tab-btn {
	background: none;
	border: none;
	padding: 10px 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	opacity: 0.5;
	border-bottom: 2px solid transparent;
}

.mm-tab-btn.is-active {
	opacity: 1;
	border-bottom-color: #2271b1;
}

.mm-content-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mm-content-list li {
	padding: 10px 12px;
	border-radius: 6px;
	background: #f6f7f7;
	margin-bottom: 8px;
}

.mm-content-list a {
	text-decoration: none;
	font-weight: 600;
}

/* Compartilhar perfil público (dashboard) */
.mm-share-profile {
	background: #f6f7f7;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 20px;
}

.mm-share-profile label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	opacity: 0.7;
	margin-bottom: 6px;
}

.mm-share-profile-row {
	display: flex;
	gap: 8px;
}

.mm-share-profile-input {
	flex: 1;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
	font-size: 13px;
	background: #fff;
}

.mm-copy-link-btn {
	white-space: nowrap;
}

/* Perfil público (versão simples, sem o plugin de gamificação) */
.mm-public-profile {
	max-width: 600px;
	margin: 20px auto;
	padding: 24px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.mm-public-profile-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 15px;
}

.mm-public-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.mm-public-profile-header h2 {
	margin: 0;
}

.mm-public-joined {
	font-size: 13px;
	opacity: 0.6;
	margin: 4px 0 0;
}

.mm-public-bio {
	font-size: 14px;
	line-height: 1.6;
	margin-top: 10px;
}

/* Página de perfil único (pública + edição inline pro dono) */
.mm-profile-page {
	max-width: 700px;
	margin: 20px auto;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	overflow: hidden;
}

.mm-cover-banner {
	height: 200px;
	background-size: cover;
	background-position: center;
	background-color: #e9ecef;
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 14px;
	box-sizing: border-box;
}

.mm-cover-banner-empty {
	background: linear-gradient(135deg, #dfe6ea, #f3f5f7);
}

.mm-edit-toggle-btn {
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.mm-profile-top {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 24px;
	margin-top: -40px;
	position: relative;
	z-index: 2;
}

.mm-profile-avatar-lg {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	background: #fff;
	flex-shrink: 0;
}

.mm-profile-top-info {
	padding-bottom: 0;
	margin-top: 55px;
}

.mm-profile-top-info h2 {
	margin: 0;
}

.mm-profile-page .mm-public-bio,
.mm-profile-page .mm-public-joined {
	padding: 0 24px;
}

.mm-profile-page .mm-message {
	margin: 15px 24px 0;
}

.mm-edit-panel {
	margin: 20px 24px 0;
	padding: 18px;
	border-radius: 8px;
	background: #f6f7f7;
}

.mm-edit-profile-form label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 4px;
}

.mm-edit-profile-form input[type="text"],
.mm-edit-profile-form textarea {
	width: 100%;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}

.mm-cover-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
	margin-top: 6px;
}

.mm-cover-option {
	display: block;
	cursor: pointer;
	border-radius: 6px;
	overflow: hidden;
	border: 3px solid transparent;
	position: relative;
}

.mm-cover-option input {
	position: absolute;
	opacity: 0;
}

.mm-cover-option img {
	display: block;
	width: 100%;
	height: 60px;
	object-fit: cover;
}

.mm-cover-option.is-selected {
	border-color: #2271b1;
}

.mm-profile-gamification {
	padding: 20px 24px 24px;
}

/* Redes sociais */
.mm-profile-socials {
	display: flex;
	gap: 10px;
	padding: 10px 24px 0;
}

.mm-social-link {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f6f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	text-decoration: none;
}

.mm-social-input-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.mm-social-icon {
	width: 24px;
	text-align: center;
	flex-shrink: 0;
}

.mm-social-input-row input {
	flex: 1;
}

/* Comentários recentes no perfil */
.mm-profile-comments {
	padding: 4px 24px 24px;
}

.mm-profile-comments h4 {
	margin-bottom: 10px;
}

.mm-comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mm-comment-item {
	padding: 10px 12px;
	border-radius: 6px;
	background: #f9f9f9;
}

.mm-comment-post-title {
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	color: #2271b1;
}

.mm-comment-excerpt {
	font-size: 13px;
	margin: 4px 0;
	color: #444;
}

.mm-comment-date {
	font-size: 11px;
	opacity: 0.6;
}

/* Shortcode [mm_comentarios] */
.mm-comments-block {
	width: 100%;
	margin: 20px 0;
}

.mm-comments-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
}

.mm-comment-entry {
	margin-bottom: 16px;
}

.mm-comment-entry-inner {
	display: flex;
	gap: 12px;
}

.mm-comment-entry-inner img {
	border-radius: 50%;
	flex-shrink: 0;
}

.mm-comment-meta {
	margin: 0 0 4px;
	font-size: 13px;
}

.mm-comment-author {
	font-weight: 700;
}

.mm-comment-meta .mm-comment-date {
	margin-left: 8px;
}

.mm-comment-text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.mm-comments-login-prompt {
	background: #f6f7f7;
	padding: 14px;
	border-radius: 6px;
	text-align: center;
}

.mm-comments-closed {
	opacity: 0.6;
	font-style: italic;
}

.mm-comments-block .comment-form-comment label,
.mm-comments-block #reply-title {
	font-weight: 700;
	display: block;
	margin-bottom: 6px;
}

.mm-comment-textarea {
	width: 100%;
	padding: 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
	box-sizing: border-box;
}

.mm-comments-block .form-submit input[type="submit"] {
	padding: 10px 20px;
	border-radius: 6px;
	border: none;
	background: #2271b1;
	color: #fff;
	cursor: pointer;
	margin-top: 10px;
}

/* Seletor de posts favoritos (formulário de edição) */
.mm-favorite-count {
	font-weight: 400;
	opacity: 0.6;
	font-size: 12px;
}

.mm-favorite-search {
	width: 100%;
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #ddd;
	box-sizing: border-box;
	margin-bottom: 8px;
}

.mm-favorite-posts-list {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 8px 12px;
	background: #fff;
}

.mm-favorite-post-row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
	font-weight: 400;
}

.mm-favorite-post-row input:disabled + span {
	opacity: 0.4;
}

/* Posts favoritos no perfil público */
.mm-profile-favorites {
	padding: 4px 24px 20px;
}

.mm-profile-favorites h4 {
	margin-bottom: 10px;
}

.mm-favorites-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}

.mm-favorite-card {
	border-radius: 8px;
	overflow: hidden;
	background: #f9f9f9;
	text-decoration: none;
	color: #222;
	display: block;
}

.mm-favorite-card img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	display: block;
}

.mm-favorite-card-title {
	display: block;
	padding: 8px 10px;
	font-size: 13px;
	font-weight: 600;
}

/* Onboarding: complete seu perfil */
.mm-onboarding-box {
	background: #fff6e5;
	border: 1px solid rgba(245,166,35,0.3);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

.mm-onboarding-title {
	font-weight: 700;
	margin: 0 0 10px;
}

.mm-onboarding-box .mm-progress-bar {
	height: 8px;
	border-radius: 4px;
	background: rgba(0,0,0,0.08);
	overflow: hidden;
	margin-bottom: 10px;
}

.mm-onboarding-box .mm-progress-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #f5a623, #f7c948);
}

.mm-onboarding-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mm-onboarding-checklist li.is-done {
	opacity: 0.6;
	text-decoration: line-through;
}

.mm-onboarding-complete {
	text-align: center;
	font-weight: 700;
	background: #e6f6e9;
	border-color: rgba(46,139,61,0.3);
}

@media (max-width: 480px) {
	.mm-cover-banner {
		height: 130px;
	}
	.mm-profile-top {
		margin-top: -40px;
	}
	.mm-profile-avatar-lg {
		width: 80px;
		height: 80px;
	}
}
