/* ============================================================
   Golf Post Community — gp-community.css
   Mobile-first card-based design (v2 — feed modes, trending, modal)
   ============================================================ */

/* === Layout === */
.community-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }
.feed { display: flex; flex-direction: column; gap: 16px; }

/* === Feed Tabs (server-side links) === */
.community-tabs { display: flex; gap: 0; background: var(--gp-bg-card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 8px; }
.community-tab { flex: 1; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--gp-text-muted); text-align: center; text-decoration: none; border-bottom: 2px solid transparent; transition: all 0.2s; }
.community-tab:hover { color: var(--gp-green); text-decoration: none; }
.community-tab--active { color: var(--gp-green); border-bottom-color: var(--gp-green); background: var(--gp-green-tint); }

/* Legacy filter tabs (keep for backward compat) */
.feed-filters { display: flex; gap: 0; background: var(--gp-bg-card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.06); margin-bottom: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.feed-filters::-webkit-scrollbar { display: none; }
.feed-filter { flex: 1; min-width: 0; padding: 12px 16px; font-size: 13px; font-weight: 600; color: var(--gp-text-muted); text-align: center; text-decoration: none; border: none; background: none; cursor: pointer; transition: all 0.2s; font-family: var(--gp-font); white-space: nowrap; border-bottom: 2px solid transparent; }
.feed-filter:hover { color: var(--gp-green); }
.feed-filter--active { color: var(--gp-green); border-bottom-color: var(--gp-green); background: var(--gp-green-tint); }

/* === Empty State === */
.community-empty-state { text-align: center; padding: 48px 24px; background: var(--gp-bg-card); border-radius: var(--gp-radius); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.community-empty-state__icon { font-size: 48px; margin-bottom: 16px; }
.community-empty-state__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.community-empty-state__text { font-size: 14px; color: var(--gp-text-muted); line-height: 1.5; max-width: 400px; margin: 0 auto; }

/* === Feed Card (Post) === */
.feed-card { background: var(--gp-bg-card); border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.feed-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.feed-card__header { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; }
.feed-card__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #c8e6c9; display: flex; align-items: center; justify-content: center; }
.feed-card__avatar--premium { border: 2px solid var(--gp-green); }
.feed-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-card__avatar-initials { font-size: 14px; font-weight: 700; color: #2e7d32; line-height: 1; pointer-events: none; }
.feed-card__club-link { color: var(--gp-green); font-weight: 600; text-decoration: none; font-size: 11px; }
.feed-card__club-link:hover { text-decoration: underline; }
.feed-card__author { flex: 1; min-width: 0; }
.feed-card__name { font-size: 14px; font-weight: 700; }
.feed-card__name a { color: var(--gp-text); text-decoration: none; }
.feed-card__name a:hover { color: var(--gp-green); }
.feed-card__meta-line { font-size: 12px; color: var(--gp-text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.feed-card__badge { display: inline-block; background: var(--gp-green); color: #fff; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; vertical-align: middle; }
.feed-card__type-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }
.feed-card__type-badge--post { background: #e3f2fd; color: #1565c0; }
.feed-card__type-badge--review { background: #fff3e0; color: #e65100; }
.feed-card__type-badge--checkin { background: #e8f5e9; color: #2e7d32; }
.feed-card__type-badge--blog { background: #f3e5f5; color: #7b1fa2; }
.feed-card__edit-link { font-size: 12px; color: var(--gp-text-muted); text-decoration: none; margin-left: auto; }
.feed-card__edit-link:hover { color: var(--gp-green); }
.feed-card__owner-actions { position: relative; margin-left: auto; }
.feed-card__more-btn { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--gp-text-muted); padding: 4px 8px; border-radius: 50%; line-height: 1; font-family: inherit; }
.feed-card__more-btn:hover { background: #f1f5f9; color: var(--gp-text); }
.feed-card__menu { display: none; position: absolute; right: 0; top: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 50; min-width: 160px; padding: 4px 0; }
.feed-card__menu--open { display: block; }
.feed-card__menu-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 16px; font-size: 14px; color: var(--gp-text); background: none; border: none; cursor: pointer; text-decoration: none; font-family: inherit; text-align: left; }
.feed-card__menu-item:hover { background: #f8fafc; }
.feed-card__menu-item--danger { color: #d32f2f; }
.feed-card__menu-item--danger:hover { background: #fef2f2; }
.feed-card__image { margin-top: 12px; max-height: 400px; overflow: hidden; }
.feed-card__image img { width: 100%; display: block; object-fit: cover; }
.feed-card__body { padding: 14px 16px; }
.feed-card__text { font-size: 14px; line-height: 1.6; color: var(--gp-text); white-space: pre-wrap; word-break: break-word; }
.feed-card__text--expandable { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.feed-card__expand { background: none; border: none; color: var(--gp-green); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px 0; font-family: inherit; }
.feed-card__expand:hover { text-decoration: underline; }
.feed-card__actions { display: flex; gap: 16px; padding: 0 16px 14px; }
.feed-card__action { font-size: 13px; color: var(--gp-text-muted); display: flex; align-items: center; gap: 4px; text-decoration: none; cursor: pointer; background: none; border: none; padding: 4px 0; font-family: inherit; }
.feed-card__action:hover { color: var(--gp-green); }
.feed-card__action--liked { color: #e74c3c; }
.feed-card__action--liked:hover { color: #c0392b; }

/* === Comment Section === */
.feed-card__comments { padding: 0 16px 14px; display: none; }
.feed-card__comments.open { display: block; }
.feed-card__comments-list { border-top: 1px solid var(--gp-border); padding-top: 8px; }
.comment-item { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f5f5f5; }
.comment-item:last-child { border-bottom: none; }
.comment-item__avatar { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e0e0e0; }
.comment-item__avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-item__body { flex: 1; min-width: 0; }
.comment-item__name { font-size: 12px; font-weight: 700; }
.comment-item__text { font-size: 13px; line-height: 1.4; margin-top: 2px; }
.comment-item__time { font-size: 11px; color: var(--gp-text-muted); margin-top: 2px; }
.comment-input-row { display: flex; gap: 8px; margin-top: 8px; }
.comment-input { flex: 1; padding: 8px 12px; border: 1px solid var(--gp-border); border-radius: 20px; font-size: 13px; font-family: inherit; outline: none; }
.comment-input:focus { border-color: var(--gp-green); }
.comment-send-btn { background: var(--gp-green); color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.comment-send-btn:hover { background: #039d6b; }
.comment-send-btn:disabled { background: #ccc; cursor: not-allowed; }

/* === Feed Card (Review) === */
.feed-review { background: var(--gp-bg-card); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: 16px; }
.feed-review__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.feed-review__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e0e0e0; }
.feed-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-review__info { flex: 1; }
.feed-review__byline { font-size: 13px; }
.feed-review__byline a { color: var(--gp-text); font-weight: 700; text-decoration: none; }
.feed-review__byline a:hover { color: var(--gp-green); }
.feed-review__time { font-size: 12px; color: var(--gp-text-muted); }
.feed-review__club { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.feed-review__club a { color: var(--gp-text); text-decoration: none; }
.feed-review__club a:hover { color: var(--gp-green); }
.feed-review__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.feed-review__stars { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.feed-review__score { font-size: 14px; font-weight: 700; color: var(--gp-green); }
.feed-review__text { font-size: 13px; color: var(--gp-text-muted); line-height: 1.5; }
.feed-review__type-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--gp-green); background: var(--gp-green-tint); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.feed-review__categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.feed-review__cat { text-align: center; background: #f8f9fa; border-radius: 6px; padding: 6px 4px; }
.feed-review__cat-label { font-size: 9px; color: var(--gp-text-muted); text-transform: uppercase; letter-spacing: 0.3px; }
.feed-review__cat-value { font-size: 13px; font-weight: 700; color: var(--gp-text); }

/* === Sidebar === */
.sidebar-card { background: var(--gp-bg-card); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); padding: 16px; margin-bottom: 16px; }
.sidebar-card__title { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; color: var(--gp-text-muted); }

/* Sidebar Quick Post */
.sidebar-quickpost { padding: 12px; background: #f8f9fa; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
.sidebar-quickpost:hover { background: #e8f5e9; }
.sidebar-quickpost__placeholder { font-size: 13px; color: var(--gp-text-muted); }
.sidebar-quickpost__btn { background: none; border: 1px solid var(--gp-border); border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--gp-text-muted); font-family: inherit; transition: all 0.15s; flex: 1; }
.sidebar-quickpost__btn:hover { background: var(--gp-green-tint); color: var(--gp-green); border-color: var(--gp-green); }

/* Sidebar Trending */
.trending-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gp-border); text-decoration: none; color: inherit; align-items: flex-start; }
.trending-item:last-child { border-bottom: none; }
.trending-item:hover { color: var(--gp-green); }
.trending-item__rank { width: 22px; height: 22px; border-radius: 50%; background: var(--gp-green-tint); color: var(--gp-green); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.trending-item__content { flex: 1; min-width: 0; }
.trending-item__text { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.trending-item__meta { font-size: 11px; color: var(--gp-text-muted); margin-top: 4px; }
.trending-item__thumb { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.trending-item__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Sidebar CTA items */
.sidebar-cta-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gp-border); text-decoration: none; color: inherit; font-size: 13px; font-weight: 600; }
.sidebar-cta-item:last-child { border-bottom: none; }
.sidebar-cta-item:hover { color: var(--gp-green); }
.sidebar-cta-item__icon { font-size: 18px; width: 28px; text-align: center; flex-shrink: 0; }
.sidebar-cta-item__text { flex: 1; }

/* User mini card (sidebar) */
.user-mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gp-border); text-decoration: none; color: inherit; }
.user-mini:last-child { border-bottom: none; }
.user-mini:hover { color: var(--gp-green); text-decoration: none; }
.user-mini__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e0e0e0; }
.user-mini__avatar--premium { border: 2px solid var(--gp-green); }
.user-mini__avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-mini__info { flex: 1; min-width: 0; }
.user-mini__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-mini__detail { font-size: 11px; color: var(--gp-text-muted); }

/* Club mini card (sidebar) */
.club-mini { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gp-border); text-decoration: none; color: inherit; }
.club-mini:last-child { border-bottom: none; }
.club-mini:hover { color: var(--gp-green); text-decoration: none; }
.club-mini__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--gp-green-tint); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.club-mini__info { flex: 1; min-width: 0; }
.club-mini__name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-mini__detail { font-size: 11px; color: var(--gp-text-muted); }
.club-mini__rating { font-size: 13px; font-weight: 700; color: var(--gp-green); }

/* === Hero Banner === */
.community-hero { background: linear-gradient(135deg, #0a1628, #1a3a2a); color: #fff; padding: 32px 0; }
.community-hero__title { font-size: 28px; font-weight: 800; margin: 0; }
.community-hero__subtitle { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 4px; }
.community-hero__actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.community-hero__btn { display: inline-block; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; font-family: var(--gp-font); }
.community-hero__btn--primary { background: var(--gp-green); color: #fff; }
.community-hero__btn--primary:hover { background: var(--gp-green-dark); color: #fff; text-decoration: none; }
.community-hero__btn--secondary { background: rgba(255,255,255,0.15); color: #fff; }
.community-hero__btn--secondary:hover { background: rgba(255,255,255,0.25); color: #fff; text-decoration: none; }

/* === CTA Box === */
.community-cta { background: linear-gradient(135deg, var(--gp-green), #0a8e5e); color: #fff; border-radius: var(--gp-radius); padding: 20px; text-align: center; }
.community-cta__title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.community-cta__text { font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.community-cta__btn { display: inline-block; padding: 8px 20px; background: #fff; color: var(--gp-green); border-radius: 6px; font-size: 13px; font-weight: 700; text-decoration: none; }
.community-cta__btn:hover { background: #f0f0f0; text-decoration: none; color: var(--gp-green); }

/* === Post Creation Modal === */
.post-modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 10000; align-items: flex-start; justify-content: center; padding-top: 10vh; }
.post-modal-overlay.open { display: flex; }
.post-modal { background: #fff; border-radius: 16px; width: 90%; max-width: 560px; max-height: 80vh; overflow-y: auto; box-shadow: 0 16px 48px rgba(0,0,0,0.2); }
.post-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--gp-border); }
.post-modal__title { font-size: 17px; font-weight: 800; }
.post-modal__close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--gp-text-muted); padding: 4px; line-height: 1; }
.post-modal__close:hover { color: var(--gp-text); }
.post-modal__body { padding: 20px; }

/* Post type selector */
.post-modal__types { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.post-modal__type-btn { padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--gp-border); background: none; color: var(--gp-text-muted); font-family: var(--gp-font); transition: all 0.15s; }
.post-modal__type-btn:hover { border-color: var(--gp-green); color: var(--gp-green); }
.post-modal__type-btn--active { background: var(--gp-green); color: #fff; border-color: var(--gp-green); }

/* Activity chips */
.post-modal__activities { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.post-modal__activity-chip { padding: 5px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid var(--gp-border); background: #f8f9fa; color: var(--gp-text-muted); font-family: var(--gp-font); transition: all 0.15s; }
.post-modal__activity-chip:hover { border-color: var(--gp-green); color: var(--gp-green); }
.post-modal__activity-chip--active { background: var(--gp-green-tint); color: var(--gp-green); border-color: var(--gp-green); }

.post-modal__textarea { width: 100%; min-height: 120px; padding: 14px; border: 1px solid var(--gp-border); border-radius: 12px; font-size: 15px; font-family: var(--gp-font); line-height: 1.6; resize: vertical; outline: none; box-sizing: border-box; }
.post-modal__textarea:focus { border-color: var(--gp-green); box-shadow: 0 0 0 3px rgba(4,174,121,0.1); }
.post-modal__textarea::placeholder { color: #bbb; }
.post-modal__toolbar { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.post-modal__tool-btn { background: none; border: 1px solid var(--gp-border); border-radius: 8px; padding: 8px 12px; font-size: 14px; cursor: pointer; color: var(--gp-text-muted); transition: all .15s; font-family: var(--gp-font); }
.post-modal__tool-btn:hover { background: var(--gp-green-tint); color: var(--gp-green); border-color: var(--gp-green); }
.post-modal__club-search { position: relative; flex: 1; }
.post-modal__club-input { width: 100%; padding: 8px 12px; border: 1px solid var(--gp-border); border-radius: 8px; font-size: 13px; font-family: var(--gp-font); outline: none; box-sizing: border-box; }
.post-modal__club-input:focus { border-color: var(--gp-green); }
.post-modal__club-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid var(--gp-border); border-top: none; border-radius: 0 0 8px 8px; max-height: 180px; overflow-y: auto; z-index: 10; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.post-modal__club-results.open { display: block; }
.post-modal__club-result { padding: 8px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.post-modal__club-result:hover { background: var(--gp-green-tint); }
.post-modal__club-selected { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--gp-green-tint); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--gp-green); margin-top: 8px; }
.post-modal__club-remove { background: none; border: none; cursor: pointer; color: var(--gp-text-muted); font-size: 14px; padding: 0 2px; line-height: 1; }
.post-modal__images-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.post-modal__img-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; position: relative; display: inline-block; }
.post-modal__img-remove { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; }
.post-modal__footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--gp-border); }
.post-modal__submit { background: var(--gp-green); color: #fff; border: none; padding: 10px 28px; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--gp-font); transition: background .2s; }
.post-modal__submit:hover { background: #039d6b; }
.post-modal__submit:disabled { background: #ccc; cursor: not-allowed; }
.post-modal__cancel { background: none; border: 1px solid var(--gp-border); padding: 10px 20px; border-radius: 10px; font-size: 14px; cursor: pointer; color: var(--gp-text-muted); font-family: var(--gp-font); }
.post-modal__cancel:hover { background: #f5f5f5; }

/* === Review Form (standalone) === */
.review-standalone { max-width: 640px; margin: 0 auto; padding: 24px 16px 60px; }
.review-standalone__club-search { position: relative; margin-bottom: 24px; }
.review-standalone__club-input { width: 100%; padding: 14px 18px; border: 2px solid var(--gp-border); border-radius: 12px; font-size: 16px; font-family: var(--gp-font); outline: none; box-sizing: border-box; background: var(--gp-bg-card); }
.review-standalone__club-input:focus { border-color: var(--gp-green); }
.review-standalone__club-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 2px solid var(--gp-green); border-top: none; border-radius: 0 0 12px 12px; max-height: 280px; overflow-y: auto; z-index: 10; display: none; box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.review-standalone__club-results.open { display: block; }
.review-standalone__club-result { padding: 12px 18px; cursor: pointer; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 12px; }
.review-standalone__club-result:hover { background: var(--gp-green-tint); }
.review-standalone__club-result:last-child { border-bottom: none; }
.review-standalone__selected { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--gp-bg-card); border-radius: var(--gp-radius); box-shadow: var(--gp-shadow); margin-bottom: 24px; }
.review-standalone__selected-icon { width: 56px; height: 56px; border-radius: 12px; background: var(--gp-green-tint); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.review-standalone__selected-info { flex: 1; }
.review-standalone__selected-name { font-size: 17px; font-weight: 700; }
.review-standalone__selected-detail { font-size: 13px; color: var(--gp-text-muted); }
.review-standalone__selected-change { background: none; border: 1px solid var(--gp-border); border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--gp-text-muted); font-family: var(--gp-font); }
.review-standalone__selected-change:hover { border-color: var(--gp-green); color: var(--gp-green); }

/* === Community Widget (embeddable cards for homepage) === */
.community-widget { margin: 24px 0; }
.community-widget__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.community-widget__title { font-size: 16px; font-weight: 800; }
.community-widget__more { font-size: 13px; color: var(--gp-green); text-decoration: none; font-weight: 600; }
.community-widget__more:hover { text-decoration: underline; }
.community-widget__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.community-widget__card { background: var(--gp-bg-card, #fff); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); padding: 14px; border: 1px solid #e2e8f0; transition: transform 0.2s, box-shadow 0.2s; }
.community-widget__card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.community-widget__card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.community-widget__card-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #c8e6c9; display: flex; align-items: center; justify-content: center; }
.community-widget__card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-widget__card-initials { font-size: 12px; font-weight: 700; color: #2e7d32; }
.community-widget__card-author { font-size: 13px; font-weight: 700; }
.community-widget__card-time { font-size: 11px; color: var(--gp-text-muted); }
.community-widget__card-text { font-size: 13px; line-height: 1.5; color: var(--gp-text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.community-widget__card-image { margin-top: 10px; border-radius: 8px; overflow: hidden; max-height: 160px; }
.community-widget__card-image img { width: 100%; display: block; object-fit: cover; }
.community-widget__card-footer { display: flex; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--gp-text-muted); }

/* === Spinner === */
.community-spinner { width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: var(--gp-green); border-radius: 50%; animation: gpCommSpin 0.8s linear infinite; margin: 0 auto; }
@keyframes gpCommSpin { to { transform: rotate(360deg); } }

/* === Responsive === */
@media (max-width: 768px) {
    .community-layout { grid-template-columns: 1fr; }
    .community-hero__title { font-size: 22px; }
    .community-hero__actions { flex-wrap: wrap; }
    .community-hero__btn { padding: 8px 16px; font-size: 13px; }
    .community-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .community-tabs::-webkit-scrollbar { display: none; }
    .community-tab { min-width: 80px; padding: 10px 12px; font-size: 13px; }
    .feed-filters { overflow-x: auto; }
    .feed-filter { min-width: 80px; padding: 10px 12px; font-size: 12px; }
    .community-widget__grid { grid-template-columns: 1fr; }
    .post-modal { width: 95%; margin: 0 auto; max-height: 90vh; }
    .post-modal__types { gap: 4px; }
    .post-modal__type-btn { padding: 5px 10px; font-size: 12px; }
    .feed-review__categories { grid-template-columns: repeat(2, 1fr); }
    .feed-card__images { margin: 12px 0 0 !important; }
}
