/* ==========================================================================
   FORUM MARIÉS — Communauté Wedding OS
   Style: iOS-like Cards / Premium / Mobile-First
   Palette: Rose poudre, Doré, Vert sauge, Gris doux, Charbon
   ========================================================================== */

/* ===========================================
   1. CSS VARIABLES
   =========================================== */
:root {
	/* Palette Mariage */
	--fm-dore: #D4A574;
	--fm-dore-hover: #C49464;
	--fm-sauge: #9CAF88;
	--fm-sauge-hover: #7D9A68;
	--fm-rose: #F8E8E0;
	--fm-charbon: #2D2D2D;
	--fm-gris: #F5F5F5;

	/* App Colors */
	--fm-bg-app: #F5F5F5;
	--fm-card-bg: #FFFFFF;
	--fm-text-dark: #2D2D2D;
	--fm-text-soft: #64748B;
	--fm-text-muted: #94A3B8;
	--fm-border: #E8E0D8;
	--fm-border-light: #F0EBE5;

	/* Semantic Colors */
	--fm-success: #9CAF88;
	--fm-danger: #E88B8B;
	--fm-danger-dark: #D06060;
	--fm-warning: #F59E0B;
	--fm-info: #60A5FA;

	/* Gradients */
	--fm-grad-primary: linear-gradient(135deg, #D4A574 0%, #C4955A 100%);
	--fm-grad-success: linear-gradient(135deg, #9CAF88 0%, #7A9466 100%);
	--fm-grad-danger: linear-gradient(135deg, #E88B8B 0%, #D06060 100%);
	--fm-grad-pro: linear-gradient(135deg, #D4A574 0%, #9CAF88 100%);

	/* Shapes */
	--fm-radius: 12px;
	--fm-radius-sm: 8px;
	--fm-radius-lg: 16px;
	--fm-radius-xl: 24px;
	--fm-radius-pill: 999px;

	/* Shadows */
	--fm-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	--fm-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--fm-shadow-float: 0 10px 30px -5px rgba(0, 0, 0, 0.12);
	--fm-shadow-glow: 0 0 20px rgba(212, 165, 116, 0.3);
	--fm-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

	/* Typography */
	--fm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	/* Transitions */
	--fm-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
	--fm-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
	--fm-transition: 0.3s var(--fm-ease);
}

/* ===========================================
   2. BASE & LAYOUT
   =========================================== */
#wpt-forum-maries {
	font-family: var(--fm-font);
	background: var(--fm-bg-app);
	max-width: 1200px;
	margin: 0 auto;
	padding: 30px 16px 120px;
	color: var(--fm-text-dark);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

#wpt-forum-maries *,
#wpt-forum-maries *::before,
#wpt-forum-maries *::after {
	box-sizing: border-box;
}

#wpt-forum-maries img {
	max-width: 100%;
	display: block;
}

#wpt-forum-maries button,
#wpt-forum-maries select,
#wpt-forum-maries input,
#wpt-forum-maries textarea {
	font-family: inherit;
}

/* ===========================================
   3. HEADER
   =========================================== */
.fm-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 30px;
	flex-wrap: wrap;
	gap: 16px;
}

.fm-header-left {
	flex: 1;
	min-width: 200px;
}

.fm-header-tag {
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	color: var(--fm-text-muted);
	display: block;
	margin-bottom: 6px;
}

.fm-header-title {
	font-size: 2rem;
	font-weight: 900;
	color: var(--fm-charbon);
	margin: 0;
	line-height: 1.2;
}

.fm-header-subtitle {
	font-size: 0.9rem;
	color: var(--fm-text-soft);
	margin: 6px 0 0;
	font-weight: 500;
}

.fm-header-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.fm-stats-pill {
	background: var(--fm-card-bg);
	padding: 10px 18px;
	border-radius: var(--fm-radius);
	box-shadow: var(--fm-shadow-card);
	font-weight: 700;
	color: var(--fm-charbon);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
}

.fm-stats-pill i {
	color: var(--fm-dore);
	font-size: 1rem;
}

/* ===========================================
   4. BREADCRUMBS SEO
   =========================================== */
.fm-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	font-size: 0.82rem;
	color: var(--fm-text-muted);
	flex-wrap: wrap;
}

.fm-breadcrumbs a {
	color: var(--fm-text-soft);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.2s;
}

.fm-breadcrumbs a:hover {
	color: var(--fm-dore);
}

.fm-breadcrumbs .fm-bc-sep {
	color: var(--fm-border);
	font-size: 0.7rem;
}

.fm-breadcrumbs .fm-bc-current {
	color: var(--fm-charbon);
	font-weight: 700;
}

/* ===========================================
   5. CATEGORY THEMES NAVIGATION
   =========================================== */
.fm-categories {
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 0;
}

.fm-categories::-webkit-scrollbar {
	display: none;
}

.fm-category-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--fm-card-bg);
	border: 2px solid transparent;
	border-radius: var(--fm-radius-pill);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--fm-text-soft);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.25s ease;
	box-shadow: var(--fm-shadow-card);
}

.fm-category-chip:hover {
	border-color: var(--fm-dore);
	color: var(--fm-dore);
	transform: translateY(-2px);
	box-shadow: var(--fm-shadow-hover);
}

.fm-category-chip.is-active {
	background: var(--fm-grad-primary);
	color: #FFFFFF;
	border-color: transparent;
	box-shadow: var(--fm-shadow-glow);
}

.fm-category-chip i {
	font-size: 1rem;
}

.fm-category-chip .fm-chip-count {
	background: rgba(255, 255, 255, 0.25);
	padding: 2px 8px;
	border-radius: var(--fm-radius-pill);
	font-size: 0.72rem;
	font-weight: 800;
}

.fm-category-chip:not(.is-active) .fm-chip-count {
	background: var(--fm-gris);
}

/* ===========================================
   6. SEARCH & FILTER BAR
   =========================================== */
.fm-filter-bar {
	background: var(--fm-card-bg);
	padding: 10px;
	border-radius: var(--fm-radius);
	display: flex;
	gap: 10px;
	margin-bottom: 30px;
	box-shadow: var(--fm-shadow-float);
}

.fm-search-wrapper {
	flex: 2;
	background: var(--fm-gris);
	border-radius: var(--fm-radius);
	display: flex;
	align-items: center;
	padding: 0 15px;
	min-width: 0;
}

.fm-search-wrapper i {
	color: var(--fm-text-muted);
	margin-right: 10px;
	flex-shrink: 0;
}

.fm-search-input {
	border: none;
	background: transparent;
	height: 48px;
	width: 100%;
	outline: none;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--fm-charbon);
}

.fm-search-input::placeholder {
	color: var(--fm-text-muted);
	font-weight: 500;
}

.fm-select-wrapper {
	flex: 1;
	background: var(--fm-gris);
	border-radius: var(--fm-radius);
	position: relative;
	display: flex;
	align-items: center;
	min-width: 140px;
}

.fm-select {
	width: 100%;
	height: 48px;
	border: none;
	background: transparent;
	padding: 0 35px 0 15px;
	outline: none;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--fm-charbon);
	appearance: none;
	cursor: pointer;
}

.fm-select-arrow {
	position: absolute;
	right: 14px;
	color: var(--fm-text-muted);
	pointer-events: none;
	font-size: 0.8rem;
}

.fm-btn-filter {
	width: 48px;
	height: 48px;
	border-radius: var(--fm-radius);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.fm-btn-filter.primary {
	background: var(--fm-charbon);
	color: #FFFFFF;
}

.fm-btn-filter.primary:hover {
	background: var(--fm-dore);
}

.fm-btn-filter.secondary {
	background: var(--fm-gris);
	color: var(--fm-text-soft);
}

.fm-btn-filter.secondary:hover {
	background: var(--fm-rose);
	color: var(--fm-charbon);
}

/* ===========================================
   7. TOPIC CARDS LIST
   =========================================== */
.fm-topics-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fm-topic-card {
	background: var(--fm-card-bg);
	border-radius: var(--fm-radius);
	box-shadow: var(--fm-shadow-card);
	padding: 24px;
	transition: all 0.3s var(--fm-ease);
	cursor: pointer;
	position: relative;
	overflow: hidden;
	border: 2px solid transparent;
}

.fm-topic-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--fm-shadow-hover);
	border-color: var(--fm-border-light);
}

.fm-topic-card.is-sticky {
	border-left: 4px solid var(--fm-dore);
	background: linear-gradient(135deg, #FFFBF5 0%, #FFFFFF 30%);
}

.fm-topic-card.is-locked {
	opacity: 0.7;
}

.fm-topic-card.is-locked::after {
	content: '\f023';
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	top: 16px;
	right: 16px;
	color: var(--fm-text-muted);
	font-size: 0.9rem;
}

/* Topic card header */
.fm-topic-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 12px;
}

.fm-topic-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 2px solid var(--fm-border-light);
}

.fm-topic-avatar-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--fm-grad-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-weight: 800;
	font-size: 1rem;
}

.fm-topic-meta {
	flex: 1;
	min-width: 0;
}

.fm-topic-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--fm-charbon);
	margin: 0 0 4px;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fm-topic-title a {
	color: inherit;
	text-decoration: none;
}

.fm-topic-title a:hover {
	color: var(--fm-dore);
}

.fm-topic-author-line {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	color: var(--fm-text-soft);
	flex-wrap: wrap;
}

.fm-topic-author {
	font-weight: 700;
	color: var(--fm-charbon);
}

.fm-topic-date {
	color: var(--fm-text-muted);
}

/* Topic excerpt */
.fm-topic-excerpt {
	font-size: 0.88rem;
	color: var(--fm-text-soft);
	line-height: 1.6;
	margin-bottom: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Topic footer with counters */
.fm-topic-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.fm-topic-counters {
	display: flex;
	gap: 16px;
	align-items: center;
}

.fm-topic-counter {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--fm-text-muted);
}

.fm-topic-counter i {
	font-size: 0.85rem;
}

.fm-topic-counter.replies i {
	color: var(--fm-sauge);
}

.fm-topic-counter.views i {
	color: var(--fm-text-muted);
}

.fm-topic-counter.reactions i {
	color: var(--fm-danger);
}

.fm-topic-tags {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.fm-topic-tag {
	padding: 4px 10px;
	border-radius: var(--fm-radius-pill);
	font-size: 0.7rem;
	font-weight: 700;
	background: var(--fm-gris);
	color: var(--fm-text-soft);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fm-topic-tag.sticky {
	background: var(--fm-rose);
	color: var(--fm-dore);
}

/* ===========================================
   8. BADGES (Pro Vérifié, Modérateur, etc.)
   =========================================== */
.fm-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: var(--fm-radius-pill);
	font-size: 0.68rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	white-space: nowrap;
}

.fm-badge-pro {
	background: var(--fm-grad-pro);
	color: #FFFFFF;
	box-shadow: 0 2px 8px rgba(212, 165, 116, 0.35);
}

.fm-badge-pro i {
	font-size: 0.65rem;
}

.fm-badge-mod {
	background: var(--fm-charbon);
	color: #FFFFFF;
}

.fm-badge-new {
	background: var(--fm-sauge);
	color: #FFFFFF;
}

.fm-badge-hot {
	background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
	color: #FFFFFF;
	animation: fmPulseGlow 2s ease-in-out infinite;
}

@keyframes fmPulseGlow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
	50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.fm-badge-resolved {
	background: var(--fm-gris);
	color: var(--fm-sauge);
	border: 1px solid var(--fm-sauge);
}

/* ===========================================
   9. REACTION BUTTONS
   =========================================== */
.fm-reactions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.fm-reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: var(--fm-radius-pill);
	border: 2px solid var(--fm-border-light);
	background: var(--fm-card-bg);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--fm-text-soft);
	cursor: pointer;
	transition: all 0.25s ease;
	user-select: none;
}

.fm-reaction-btn:hover {
	border-color: var(--fm-dore);
	color: var(--fm-dore);
	transform: scale(1.05);
	box-shadow: var(--fm-shadow-card);
}

.fm-reaction-btn:active {
	transform: scale(0.95);
}

.fm-reaction-btn.is-active {
	border-color: var(--fm-dore);
	background: var(--fm-rose);
	color: var(--fm-dore);
}

.fm-reaction-btn.is-active.heart {
	border-color: var(--fm-danger);
	background: #FEF2F2;
	color: var(--fm-danger);
}

.fm-reaction-btn.is-active.useful {
	border-color: var(--fm-sauge);
	background: #F0FDF4;
	color: var(--fm-sauge-hover);
}

.fm-reaction-btn.is-active.bravo {
	border-color: var(--fm-dore);
	background: var(--fm-rose);
	color: var(--fm-dore);
}

.fm-reaction-btn .fm-reaction-emoji {
	font-size: 1rem;
	line-height: 1;
}

.fm-reaction-btn .fm-reaction-count {
	font-weight: 800;
	font-size: 0.78rem;
}

/* Reaction animation burst */
.fm-reaction-btn.is-burst {
	animation: fmReactionBurst 0.5s var(--fm-ease);
}

@keyframes fmReactionBurst {
	0% { transform: scale(1); }
	30% { transform: scale(1.25); }
	60% { transform: scale(0.9); }
	100% { transform: scale(1); }
}

/* ===========================================
   10. REPLY CARDS
   =========================================== */
.fm-replies-section {
	margin-top: 24px;
}

.fm-replies-heading {
	font-size: 1rem;
	font-weight: 800;
	color: var(--fm-charbon);
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.fm-replies-heading .fm-count {
	background: var(--fm-gris);
	padding: 3px 10px;
	border-radius: var(--fm-radius-pill);
	font-size: 0.78rem;
	color: var(--fm-text-soft);
}

.fm-replies-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fm-reply-card {
	background: var(--fm-card-bg);
	border-radius: var(--fm-radius);
	box-shadow: var(--fm-shadow-card);
	padding: 20px;
	position: relative;
	transition: box-shadow 0.2s ease;
}

.fm-reply-card:hover {
	box-shadow: var(--fm-shadow-float);
}

.fm-reply-card.is-pro-reply {
	border-left: 3px solid var(--fm-dore);
	background: linear-gradient(135deg, #FFFBF5 0%, #FFFFFF 20%);
}

.fm-reply-card.is-threaded {
	margin-left: 40px;
	border-left: 2px solid var(--fm-border-light);
}

.fm-reply-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 10px;
}

.fm-reply-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.fm-reply-author {
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--fm-charbon);
}

.fm-reply-time {
	font-size: 0.75rem;
	color: var(--fm-text-muted);
}

.fm-reply-content {
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--fm-text-dark);
}

.fm-reply-content p {
	margin: 0 0 10px;
}

.fm-reply-content p:last-child {
	margin-bottom: 0;
}

.fm-reply-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--fm-border-light);
}

.fm-reply-actions {
	display: flex;
	gap: 12px;
}

.fm-reply-action-btn {
	background: none;
	border: none;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fm-text-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px;
	border-radius: var(--fm-radius-sm);
	transition: all 0.2s ease;
}

.fm-reply-action-btn:hover {
	background: var(--fm-gris);
	color: var(--fm-dore);
}

/* ===========================================
   11. NEW TOPIC / REPLY FORM
   =========================================== */
.fm-form-card {
	background: var(--fm-card-bg);
	border-radius: var(--fm-radius-lg);
	box-shadow: var(--fm-shadow-float);
	padding: 28px;
	margin-bottom: 30px;
}

.fm-form-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--fm-charbon);
	margin: 0 0 20px;
}

.fm-form-group {
	margin-bottom: 18px;
}

.fm-form-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--fm-text-soft);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.fm-form-input,
.fm-form-textarea,
.fm-form-select {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--fm-border-light);
	border-radius: var(--fm-radius);
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--fm-charbon);
	background: var(--fm-card-bg);
	transition: all 0.2s ease;
	outline: none;
}

.fm-form-input:focus,
.fm-form-textarea:focus,
.fm-form-select:focus {
	border-color: var(--fm-dore);
	box-shadow: 0 0 0 4px rgba(212, 165, 116, 0.15);
}

.fm-form-input::placeholder,
.fm-form-textarea::placeholder {
	color: var(--fm-text-muted);
}

.fm-form-textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

.fm-form-select {
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394A3B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.fm-form-hint {
	font-size: 0.75rem;
	color: var(--fm-text-muted);
	margin-top: 6px;
}

.fm-form-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
}

.fm-form-draft-indicator {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--fm-text-muted);
	margin-right: auto;
}

.fm-form-draft-indicator i {
	color: var(--fm-sauge);
}

/* ===========================================
   12. BUTTONS
   =========================================== */
.fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border: none;
	border-radius: var(--fm-radius);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
	white-space: nowrap;
}

.fm-btn:active {
	transform: scale(0.96);
}

.fm-btn-primary {
	background: var(--fm-grad-primary);
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(212, 165, 116, 0.35);
}

.fm-btn-primary:hover {
	box-shadow: 0 8px 20px rgba(212, 165, 116, 0.45);
	transform: translateY(-2px);
}

.fm-btn-secondary {
	background: var(--fm-gris);
	color: var(--fm-text-soft);
}

.fm-btn-secondary:hover {
	background: var(--fm-rose);
	color: var(--fm-dore);
}

.fm-btn-ghost {
	background: transparent;
	color: var(--fm-text-soft);
	border: 2px solid var(--fm-border);
}

.fm-btn-ghost:hover {
	border-color: var(--fm-dore);
	color: var(--fm-dore);
}

.fm-btn-danger {
	background: var(--fm-grad-danger);
	color: #FFFFFF;
}

.fm-btn-sm {
	padding: 8px 16px;
	font-size: 0.8rem;
	border-radius: var(--fm-radius-sm);
}

.fm-btn-lg {
	padding: 16px 32px;
	font-size: 1rem;
	border-radius: var(--fm-radius);
}

.fm-btn-icon {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
}

.fm-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

/* ===========================================
   13. UPLOAD ZONE (Drag & Drop)
   =========================================== */
.fm-upload-zone {
	border: 2px dashed var(--fm-border);
	border-radius: var(--fm-radius);
	padding: 32px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	background: var(--fm-gris);
}

.fm-upload-zone:hover {
	border-color: var(--fm-dore);
	background: var(--fm-rose);
}

.fm-upload-zone.is-dragover {
	border-color: var(--fm-dore);
	background: var(--fm-rose);
	transform: scale(1.02);
	box-shadow: var(--fm-shadow-glow);
}

.fm-upload-zone.is-dragover .fm-upload-icon {
	transform: scale(1.2);
}

.fm-upload-icon {
	font-size: 2rem;
	color: var(--fm-dore);
	margin-bottom: 10px;
	transition: transform 0.3s var(--fm-ease);
}

.fm-upload-text {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--fm-text-soft);
}

.fm-upload-text strong {
	color: var(--fm-dore);
}

.fm-upload-hint {
	font-size: 0.75rem;
	color: var(--fm-text-muted);
	margin-top: 6px;
}

.fm-upload-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

/* Upload preview grid */
.fm-upload-previews {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 10px;
	margin-top: 16px;
}

.fm-upload-preview {
	position: relative;
	border-radius: var(--fm-radius-sm);
	overflow: hidden;
	aspect-ratio: 1;
}

.fm-upload-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-upload-preview-remove {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #FFFFFF;
	border: none;
	font-size: 0.7rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.fm-upload-preview-remove:hover {
	background: var(--fm-danger-dark);
}

.fm-upload-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--fm-border-light);
	overflow: hidden;
}

.fm-upload-progress-bar {
	height: 100%;
	background: var(--fm-grad-primary);
	width: 0%;
	transition: width 0.3s ease;
}

/* ===========================================
   14. PHOTO GALLERY (Topic detail)
   =========================================== */
.fm-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 8px;
	margin: 16px 0;
}

.fm-photo-thumb {
	border-radius: var(--fm-radius-sm);
	overflow: hidden;
	aspect-ratio: 1;
	cursor: pointer;
	transition: transform 0.25s var(--fm-ease);
}

.fm-photo-thumb:hover {
	transform: scale(1.05);
}

.fm-photo-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ===========================================
   15. MODAL (Image Preview, Confirmation)
   =========================================== */
.fm-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.fm-modal-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.fm-modal-content {
	background: var(--fm-card-bg);
	border-radius: var(--fm-radius-lg);
	max-width: 680px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s var(--fm-ease-smooth);
}

.fm-modal-overlay.is-visible .fm-modal-content {
	transform: translateY(0) scale(1);
}

.fm-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--fm-border-light);
}

.fm-modal-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--fm-charbon);
	margin: 0;
}

.fm-modal-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--fm-gris);
	color: var(--fm-text-soft);
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.fm-modal-close:hover {
	background: var(--fm-charbon);
	color: #FFFFFF;
}

.fm-modal-body {
	padding: 24px;
}

.fm-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--fm-border-light);
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Image preview modal */
.fm-modal-image-preview {
	max-width: 960px;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.fm-modal-image-preview img {
	width: 100%;
	border-radius: var(--fm-radius);
}

/* ===========================================
   16. SHARE BUTTONS
   =========================================== */
.fm-share-bar {
	display: flex;
	gap: 8px;
	align-items: center;
}

.fm-share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.25s ease;
	color: #FFFFFF;
}

.fm-share-btn:hover {
	transform: scale(1.15);
}

.fm-share-btn.whatsapp {
	background: #25D366;
}

.fm-share-btn.facebook {
	background: #1877F2;
}

.fm-share-btn.copy-link {
	background: var(--fm-charbon);
}

.fm-share-btn.copy-link.is-copied {
	background: var(--fm-sauge);
}

/* ===========================================
   17. PAGINATION
   =========================================== */
.fm-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
}

.fm-page-btn {
	width: 40px;
	height: 40px;
	border-radius: var(--fm-radius-sm);
	border: none;
	background: var(--fm-card-bg);
	color: var(--fm-text-soft);
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	box-shadow: var(--fm-shadow-card);
}

.fm-page-btn:hover {
	background: var(--fm-rose);
	color: var(--fm-dore);
}

.fm-page-btn.is-active {
	background: var(--fm-grad-primary);
	color: #FFFFFF;
	box-shadow: 0 4px 12px rgba(212, 165, 116, 0.35);
}

.fm-page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.fm-page-dots {
	color: var(--fm-text-muted);
	font-weight: 700;
	padding: 0 4px;
}

/* ===========================================
   18. LOADING STATES
   =========================================== */

/* Skeleton shimmer */
.fm-skeleton {
	background: linear-gradient(90deg, var(--fm-gris) 25%, #EAEAEA 50%, var(--fm-gris) 75%);
	background-size: 200% 100%;
	animation: fmShimmer 1.5s ease-in-out infinite;
	border-radius: var(--fm-radius);
}

@keyframes fmShimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.fm-skeleton-card {
	height: 140px;
	margin-bottom: 16px;
}

.fm-skeleton-line {
	height: 14px;
	margin-bottom: 10px;
}

.fm-skeleton-line.short {
	width: 60%;
}

.fm-skeleton-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

/* Spinner */
.fm-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--fm-border-light);
	border-top-color: var(--fm-dore);
	border-radius: 50%;
	animation: fmSpin 0.7s linear infinite;
	margin: 24px auto;
}

@keyframes fmSpin {
	to { transform: rotate(360deg); }
}

/* Loading overlay on cards */
.fm-loading-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--fm-radius);
	z-index: 10;
}

/* ===========================================
   19. TOAST NOTIFICATIONS
   =========================================== */
.fm-toast-container {
	position: fixed;
	bottom: 30px;
	right: 20px;
	z-index: 9500;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.fm-toast {
	background: var(--fm-charbon);
	color: #FFFFFF;
	padding: 14px 20px;
	border-radius: var(--fm-radius);
	font-size: 0.85rem;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: auto;
	animation: fmToastIn 0.4s var(--fm-ease-smooth);
	max-width: 360px;
}

.fm-toast.is-leaving {
	animation: fmToastOut 0.3s ease forwards;
}

.fm-toast.success {
	background: var(--fm-sauge);
}

.fm-toast.error {
	background: var(--fm-danger-dark);
}

.fm-toast.warning {
	background: var(--fm-warning);
	color: var(--fm-charbon);
}

@keyframes fmToastIn {
	from {
		opacity: 0;
		transform: translateX(40px) scale(0.9);
	}
	to {
		opacity: 1;
		transform: translateX(0) scale(1);
	}
}

@keyframes fmToastOut {
	to {
		opacity: 0;
		transform: translateX(40px) scale(0.9);
	}
}

/* ===========================================
   20. EMPTY STATE
   =========================================== */
.fm-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: var(--fm-card-bg);
	border-radius: var(--fm-radius-lg);
	box-shadow: var(--fm-shadow-card);
}

.fm-empty-icon {
	font-size: 3rem;
	margin-bottom: 16px;
	display: inline-block;
	animation: fmEmptyFloat 3s ease-in-out infinite;
}

@keyframes fmEmptyFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.fm-empty-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--fm-charbon);
	margin: 0 0 8px;
}

.fm-empty-text {
	font-size: 0.9rem;
	color: var(--fm-text-soft);
	margin: 0 0 24px;
}

/* ===========================================
   21. MICRO-INTERACTIONS & ANIMATIONS
   =========================================== */

/* Card entrance stagger */
.fm-topic-card.fm-anim-enter {
	opacity: 0;
	transform: translateY(20px);
}

.fm-topic-card.fm-anim-visible {
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.5s ease, transform 0.5s var(--fm-ease-smooth);
}

/* Confetti burst on bravo reaction */
.fm-confetti-burst {
	position: absolute;
	pointer-events: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	animation: fmConfetti 0.8s ease-out forwards;
}

@keyframes fmConfetti {
	0% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(var(--fm-confetti-x, 20px), var(--fm-confetti-y, -30px)) scale(0);
	}
}

/* Live counter pulse */
.fm-live-pulse {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--fm-sauge);
}

.fm-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fm-sauge);
	animation: fmLivePulse 1.5s ease-in-out infinite;
}

@keyframes fmLivePulse {
	0%, 100% {
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(156, 175, 136, 0.6);
	}
	50% {
		opacity: 0.7;
		box-shadow: 0 0 0 6px rgba(156, 175, 136, 0);
	}
}

/* Notification badge bounce */
.fm-notif-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: var(--fm-radius-pill);
	background: var(--fm-danger);
	color: #FFFFFF;
	font-size: 0.68rem;
	font-weight: 800;
	animation: fmNotifBounce 0.5s var(--fm-ease);
}

@keyframes fmNotifBounce {
	0% { transform: scale(0); }
	60% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* ===========================================
   22. ADMIN MODERATION PANEL
   =========================================== */
.fm-mod-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	background: #FFF7ED;
	border-radius: var(--fm-radius-sm);
	border: 1px solid #FED7AA;
	margin-top: 12px;
	font-size: 0.78rem;
}

.fm-mod-bar i {
	color: var(--fm-warning);
}

.fm-mod-score {
	font-weight: 800;
	color: var(--fm-charbon);
}

.fm-mod-actions {
	margin-left: auto;
	display: flex;
	gap: 8px;
}

.fm-mod-btn {
	padding: 4px 12px;
	border-radius: var(--fm-radius-pill);
	border: none;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
}

.fm-mod-btn.approve {
	background: var(--fm-sauge);
	color: #FFFFFF;
}

.fm-mod-btn.reject {
	background: var(--fm-danger);
	color: #FFFFFF;
}

.fm-mod-btn:hover {
	transform: scale(1.05);
}

/* ===========================================
   23. PDF EXPORT BUTTON
   =========================================== */
.fm-export-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--fm-card-bg);
	border: 2px solid var(--fm-border);
	border-radius: var(--fm-radius);
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--fm-text-soft);
	cursor: pointer;
	transition: all 0.25s ease;
}

.fm-export-btn:hover {
	border-color: var(--fm-dore);
	color: var(--fm-dore);
	box-shadow: var(--fm-shadow-card);
}

.fm-export-btn i {
	font-size: 1rem;
}

/* ===========================================
   24. CONNECTED USER PROMPT (Login CTA)
   =========================================== */
.fm-login-cta {
	background: linear-gradient(135deg, var(--fm-rose) 0%, #FFFFFF 100%);
	border: 2px solid var(--fm-border);
	border-radius: var(--fm-radius-lg);
	padding: 32px;
	text-align: center;
	margin: 24px 0;
}

.fm-login-cta-title {
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--fm-charbon);
	margin: 0 0 8px;
}

.fm-login-cta-text {
	font-size: 0.88rem;
	color: var(--fm-text-soft);
	margin: 0 0 20px;
}

/* ===========================================
   25. RESPONSIVE — MOBILE FIRST
   =========================================== */

/* Tablet (max 768px) */
@media (max-width: 768px) {
	#wpt-forum-maries {
		padding: 20px 12px 100px;
	}

	.fm-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-header-title {
		font-size: 1.6rem;
	}

	.fm-header-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.fm-filter-bar {
		flex-direction: column;
		gap: 8px;
	}

	.fm-search-wrapper,
	.fm-select-wrapper {
		flex: none;
		width: 100%;
	}

	.fm-btn-filter {
		width: 100%;
		height: 44px;
	}

	.fm-topic-card {
		padding: 18px;
	}

	.fm-topic-head {
		gap: 10px;
	}

	.fm-topic-avatar,
	.fm-topic-avatar-placeholder {
		width: 38px;
		height: 38px;
	}

	.fm-topic-title {
		font-size: 0.95rem;
	}

	.fm-topic-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.fm-reactions {
		gap: 6px;
	}

	.fm-reaction-btn {
		padding: 6px 12px;
		font-size: 0.78rem;
	}

	.fm-reply-card.is-threaded {
		margin-left: 16px;
	}

	.fm-form-card {
		padding: 20px;
	}

	.fm-form-actions {
		flex-direction: column;
	}

	.fm-form-actions .fm-btn {
		width: 100%;
	}

	.fm-modal-content {
		max-width: 100%;
		margin: 10px;
		max-height: 85vh;
	}

	.fm-share-bar {
		justify-content: center;
	}

	.fm-photo-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}

	.fm-upload-previews {
		grid-template-columns: repeat(3, 1fr);
	}

	.fm-pagination {
		gap: 4px;
	}

	.fm-page-btn {
		width: 36px;
		height: 36px;
		font-size: 0.78rem;
	}

	.fm-categories {
		gap: 8px;
		margin-bottom: 20px;
	}

	.fm-category-chip {
		padding: 8px 16px;
		font-size: 0.8rem;
	}

	.fm-toast-container {
		left: 12px;
		right: 12px;
		bottom: 20px;
	}

	.fm-toast {
		max-width: 100%;
	}

	.fm-mod-bar {
		flex-wrap: wrap;
	}

	.fm-mod-actions {
		margin-left: 0;
		width: 100%;
		justify-content: flex-end;
	}

	.fm-login-cta {
		padding: 24px 16px;
	}
}

/* Small phone (max 420px) */
@media (max-width: 420px) {
	.fm-header-title {
		font-size: 1.35rem;
	}

	.fm-stats-pill {
		padding: 8px 14px;
		font-size: 0.8rem;
	}

	.fm-topic-counters {
		gap: 10px;
	}

	.fm-topic-counter {
		font-size: 0.72rem;
	}

	.fm-photo-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.fm-upload-previews {
		grid-template-columns: repeat(2, 1fr);
	}

	.fm-breadcrumbs {
		font-size: 0.75rem;
	}
}

/* Large desktop (min 1024px) */
@media (min-width: 1024px) {
	.fm-topics-grid-view {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.fm-photo-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}

/* ===========================================
   26. PRINT STYLES
   =========================================== */
@media print {
	#wpt-forum-maries {
		background: #FFFFFF;
		padding: 0;
	}

	.fm-filter-bar,
	.fm-categories,
	.fm-header-actions,
	.fm-share-bar,
	.fm-reactions,
	.fm-upload-zone,
	.fm-pagination,
	.fm-toast-container,
	.fm-mod-bar,
	.fm-login-cta,
	.fm-form-card {
		display: none !important;
	}

	.fm-topic-card {
		box-shadow: none;
		border: 1px solid #DDD;
		break-inside: avoid;
	}

	.fm-reply-card {
		box-shadow: none;
		border: 1px solid #DDD;
	}
}

/* ===========================================
   27. REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ===========================================
   28. INFINITE SCROLL LOADER
   =========================================== */
.fm-infinite-loader {
	text-align: center;
	padding: 30px 0;
}

.fm-infinite-loader .fm-spinner {
	margin: 0 auto;
}

.fm-load-more-btn {
	display: block;
	margin: 30px auto 0;
	padding: 12px 32px;
	background: var(--fm-card-bg);
	border: 2px solid var(--fm-border);
	border-radius: var(--fm-radius-pill);
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--fm-text-soft);
	cursor: pointer;
	transition: all 0.25s ease;
}

.fm-load-more-btn:hover {
	border-color: var(--fm-dore);
	color: var(--fm-dore);
	box-shadow: var(--fm-shadow-card);
}

/* ===========================================
   29. TOPIC DETAIL VIEW
   =========================================== */
.fm-topic-detail {
	background: var(--fm-card-bg);
	border-radius: var(--fm-radius-lg);
	box-shadow: var(--fm-shadow-card);
	padding: 32px;
	margin-bottom: 24px;
}

.fm-topic-detail-title {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--fm-charbon);
	margin: 0 0 16px;
	line-height: 1.3;
}

.fm-topic-detail-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.fm-topic-detail-body {
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--fm-text-dark);
}

.fm-topic-detail-body p {
	margin: 0 0 14px;
}

.fm-topic-detail-body p:last-child {
	margin-bottom: 0;
}

.fm-topic-detail-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--fm-border-light);
	flex-wrap: wrap;
	gap: 12px;
}

/* ===========================================
   30. BACK TO TOP BUTTON
   =========================================== */
.fm-back-to-top {
	position: fixed;
	bottom: 30px;
	left: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--fm-charbon);
	color: #FFFFFF;
	border: none;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.3s ease;
	z-index: 100;
}

.fm-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fm-back-to-top:hover {
	background: var(--fm-dore);
	transform: translateY(-3px);
}

/* ===========================================
   31. NEW REPLY NOTIFICATION BAR
   =========================================== */
.fm-new-replies-bar {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--fm-grad-primary);
	color: #FFFFFF;
	text-align: center;
	padding: 12px 20px;
	border-radius: var(--fm-radius);
	margin-bottom: 16px;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
	display: none;
	animation: fmSlideDown 0.4s var(--fm-ease-smooth);
}

.fm-new-replies-bar.is-visible {
	display: block;
}

.fm-new-replies-bar:hover {
	opacity: 0.9;
}

@keyframes fmSlideDown {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
