/* AG Guest Forum v1.2.1 styles (safe mode) */
.agf-wrap { max-width: 900px; margin: 0 auto; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
.agf-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin: 16px 0; box-shadow: 0 1px 2px rgba(0,0,0,0.03); }
.agf-new-topic h3, .agf-reply-form h3, .agf-topics h3 { margin: 0 0 12px; }
.agf-row { display: flex; flex-direction: column; margin-bottom: 10px; }
.agf-row label { font-size: 13px; color: #374151; margin-bottom: 6px; }
.agf-row input[type="text"], .agf-row input[type="email"], .agf-row textarea { border: 1px solid #d1d5db; border-radius: 10px; padding: 10px; font-size: 15px; outline: none; }
.agf-row textarea { resize: vertical; }
.agf-btn { display: inline-block; background: #111827; color: #fff; padding: 10px 14px; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none; font-weight: 600; }
.agf-btn:hover { opacity: .9; }
.agf-btn-light { background: #f3f4f6; color: #111827; }

.agf-alert { padding: 10px 12px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.agf-alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.agf-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.agf-alert-warn { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

.agf-topics { margin-top: 16px; }
.agf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.agf-search { display: flex; gap: 6px; }
.agf-search input { min-width: 220px; }
.agf-topic-list { list-style: none; padding: 0; margin: 0; }
.agf-topic-item { padding: 12px; border-bottom: 1px solid #f3f4f6; }
.agf-topic-item:last-child { border-bottom: none; }
.agf-topic-title { font-weight: 600; text-decoration: none; color: #0f172a; }
.agf-topic-title:hover { text-decoration: underline; }
.agf-meta { font-size: 12.5px; color: #6b7280; display: flex; gap: 8px; align-items: center; margin-top: 6px; }

.agf-pagination { display: flex; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.agf-page-link a, .agf-page-link span { display: inline-block; padding: 6px 10px; border-radius: 8px; border: 1px solid #e5e7eb; text-decoration: none; }
.agf-page-link .current { background: #111827; color: white; border-color: #111827; }

.agf-topic-view .agf-topic-title { margin-top: 8px; margin-bottom: 6px; }
.agf-content { background: #fafafa; border: 1px solid #f3f4f6; padding: 12px; border-radius: 10px; }
.agf-reply { padding: 10px; border-bottom: 1px solid #f3f4f6; }
.agf-reply:last-child { border-bottom: none; }

.agf-reactions{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.agf-react-btn{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:6px 10px;font-size:13px;cursor:pointer}
.agf-react-btn:hover{background:#f9fafb}
.agf-emoji{font-size:15px;margin-right:4px}
.agf-count{font-variant-numeric:tabular-nums}
