/**
 * NovaFeed v1.0.0 — MOBILE (nwm-)
 * Porté de NovaWall v1.5.5
 */

/* Fix marge haute guest mobile */
.nwm-container.nwm-guest { padding-top: 16px; }

.nwm-container { max-width: 100%; margin: 0; padding: 0 8px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }

/* NovaStore */
.nwm-app-banner { display: flex; justify-content: center; padding: 8px 0; margin-bottom: 10px; }
.nwm-app-btn-left { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 16px; background: #fff; color: #096e09; font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid #096e09; border-right: none; border-radius: 999px 0 0 999px; line-height: 1; }
.nwm-app-btn-right { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; background: #111827; color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; border: 2px solid #111827; border-left: none; border-radius: 0 999px 999px 0; letter-spacing: 0.5px; line-height: 1; }
.nwm-app-btn-left:active { background: #f0fdf0; }
.nwm-app-btn-right:active { background: #374151; }
.nwm-store-icon { width: 22px; height: 22px; object-fit: contain; display: block; }

/* Feed */
.nwm-feed { display: flex; flex-direction: column; gap: 0; }

/* Item */
.nwm-item { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 8px; position: relative; }
.nwm-item:first-child { border-top: 1px solid #e5e7eb; }
.nwm-item.nw-is-read { opacity: 0.65; }

/* Header */
.nwm-header { margin-bottom: 6px; }
.nwm-header-top { display: flex; align-items: center; gap: 8px; margin-bottom: 1px; }
.nwm-avatar { flex-shrink: 0; }
.nwm-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: block; }
.nwm-author { font-weight: 600; font-size: 14px; color: #111827; text-decoration: none; line-height: 1; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nwm-author:active { color: #096e09; }
.nwm-date { font-size: 11px; color: #9ca3af; line-height: 1; white-space: nowrap; flex-shrink: 0; }
.nwm-header-bottom { display: flex; align-items: center; gap: 5px; padding-left: 36px; margin-top: 1px; margin-bottom: 6px; }

/* Badges */
.nwm-badge, .nwm-container .nw-unread-badge { display: inline-block; padding: 2px 7px 1px 7px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 999px; line-height: 13px; text-align: center; vertical-align: middle; }
.nwm-badge { background: #0BB631; color: #fff; }
.nwm-container .nw-unread-badge { background: #fbbf24; color: #78350f; }
.nwm-type-blog .nwm-badge { background: #3b82f6; }
.nwm-type-post .nwm-badge { background: #8b5cf6; }
.nwm-type-topic .nwm-badge { background: #096e09; }

/* Content */
.nwm-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: #111827; }
.nwm-thumb { display: block; margin-bottom: 6px; border-radius: 8px; overflow: hidden; }
.nwm-thumb img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: cover; }
.nwm-excerpt { margin: 0 0 6px; font-size: 15px; line-height: 1.55; color: #374151; }
.nwm-readmore { display: inline-block; font-size: 14px; font-weight: 700; color: #096e09; text-decoration: none; padding-bottom: 4px; }

/* Dismiss */
.nwm-container .nvf-dismiss-btn { position: absolute; top: 8px; right: 8px; background: none; border: none; font-size: 16px; color: #9ca3af; cursor: pointer; padding: 4px 6px; }

/* Load More */
.nwm-load-more-wrap { padding: 14px 0; text-align: center; }
.nwm-container .nvf-load-more { display: inline-block; padding: 14px 28px; background: #fff; border: 2px solid #096e09; color: #096e09; font-size: 15px; font-weight: 600; border-radius: 8px; cursor: pointer; -webkit-appearance: none; }
.nwm-container .nvf-load-more:active { background: #096e09; color: #fff; }
.nwm-container .nvf-load-more:disabled { opacity: 0.6; }

/* Follow Button mobile */
.nwm-container .nvf-follow-btn { padding: 5px 14px; font-size: 13px; }
.nwm-container .nvf-follow-btn:active { background: #096e09; color: #fff; }

/* CTA */
.nwm-cta { text-align: center; padding: 28px 16px; background: #fff; border: 2px solid #096e09; border-radius: 12px; margin-top: 16px; }
.nwm-cta-title { font-size: 19px; font-weight: 800; color: #111827; margin: 0 0 14px; }
.nwm-cta-text { font-size: 15px; line-height: 1.6; color: #374151; margin: 0 0 22px; text-align: left; }
.nwm-cta-text-left { font-size: 14px; line-height: 1.55; color: #374151; margin: 0 0 22px; text-align: left; }
.nwm-cta-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.nwm-cta-feat { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; color: #111827; }
.nwm-cta-feat-icon { width: 24px; height: 24px; object-fit: contain; display: block; flex-shrink: 0; }
.nwm-cta-steps { display: flex; flex-direction: column; gap: 10px; margin: 0 auto 20px; text-align: left; max-width: 280px; }
.nwm-cta-step { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; color: #374151; }
.nwm-step-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #096e09; color: #fff; font-weight: 700; font-size: 13px; border-radius: 50%; flex-shrink: 0; }
.nwm-cta-btn { display: block; padding: 14px; background: #096e09; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; text-align: center; }
.nwm-cta-btn:active { background: #075207; }
.nwm-cta-login { margin: 20px 0; padding: 16px; background: #f9f2e3; border-radius: 8px; }
.nwm-cta-login .nf-forum-login, .nwm-cta-login .nf-wrap { max-width: 100%; margin: 0; padding: 0; background: transparent; border: none; box-shadow: none; }
.nwm-cta-login .nf-form input[type="text"], .nwm-cta-login .nf-form input[type="password"], .nwm-cta-login .nf-form input[type="email"] { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 16px; -webkit-appearance: none; }
.nwm-cta-login .nf-form button[type="submit"] { width: 100%; padding: 12px; background: #096e09; color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; -webkit-appearance: none; }
.nwm-cta-register { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.nwm-cta-register p { margin: 0 0 8px; font-size: 13px; color: #6b7280; }
.nwm-register-btn { display: block; padding: 12px; background: #096e09; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; text-align: center; }
.nwm-login-btn { display: block; padding: 12px; background: #096e09; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; border-radius: 8px; text-align: center; }
.nwm-cta-small { font-size: 11px; color: #6b7280; margin-top: 6px; }
