/* =============================================================================
   Wadewow Community — page styles
   Used only on /community.html
   ============================================================================= */

.community-hero {
    text-align: center;
    padding: 100px 0 60px;
    background: linear-gradient(180deg, var(--bg-soft, #f7f3ee) 0%, var(--bg, #fff) 100%);
}

.community-hero .eyebrow {
    color: var(--accent, #E8704C);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.community-hero h1 {
    font-family: var(--display, 'Fraunces', Georgia, serif);
    font-size: clamp(32px, 4.5vw, 52px);
    margin: 0 0 16px;
    line-height: 1.1;
}

.community-hero h1 em {
    color: var(--accent, #E8704C);
    font-style: italic;
}

.community-hero p {
    color: var(--ink-soft, #4b5563);
    max-width: 620px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.55;
}

/* Auth pill (top right of hero / feed) */
.community-auth-pill {
    position: absolute;
    top: 80px;
    right: var(--pad, 32px);
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ----- Generic .wd-btn-sm (community page buttons) -----
   Solid variant uses the site-wide brand gradient (--brand-gradient from styles.css).
   Applies to all community buttons: Sign in / Join (auth-pill), Create an account
   (compose empty state), Resend email (verify banner), Post (composer), etc. */
.wd-btn-sm {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: inherit;
}
.wd-btn-sm.outline {
    background: transparent;
    color: var(--ink, #1a1a1a);
    border: 1.5px solid var(--line-strong, #c4c4c4);
}
.wd-btn-sm.outline:hover {
    border-color: var(--ink, #1a1a1a);
}
.wd-btn-sm.lg {
    padding: 14px 32px;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(232, 112, 76, 0.30);
}
.wd-btn-sm.lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(232, 112, 76, 0.40);
}
.wd-btn-sm.solid {
    background: var(--brand-gradient, linear-gradient(135deg, #FF8A65 0%, #E8704C 50%, #D65A37 100%));
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 112, 76, 0.25);
}
.wd-btn-sm.solid:hover {
    background: var(--brand-gradient-hover, linear-gradient(135deg, #FF7A55 0%, #D65A37 50%, #B04822 100%));
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(232, 112, 76, 0.40);
}
.wd-btn-sm.solid:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.community-auth-pill .wd-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    background: var(--bg-soft, #f7f3ee);
    font-size: 14px;
    color: var(--ink, #1a1a1a);
}
.community-auth-pill .wd-user-chip .wd-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent, #E8704C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.community-auth-pill .wd-user-chip button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft, #4b5563);
    font-size: 12px;
    padding: 0 4px;
}

/* Inspire section (shown above feed until first real posts arrive) */
.community-inspire {
    padding: 80px 0 60px;
    background: var(--bg, #fff);
}

.community-inspire-header {
    text-align: center;
    margin-bottom: 48px;
}

.community-inspire-header .eyebrow {
    color: var(--accent, #E8704C);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 12px;
}

.community-inspire-header h2 {
    font-family: var(--display, 'Fraunces', Georgia, serif);
    font-size: clamp(28px, 3.5vw, 40px);
    margin: 0;
    line-height: 1.15;
    color: var(--ink, #1a1a1a);
}
.community-inspire-header .community-inspire-sub {
    color: var(--ink-soft, #6b7280);
    font-size: 16px;
    margin: 12px 0 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.community-inspire-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.community-inspire-card {
    background: var(--bg, #fff);
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 16px;
    padding: 28px 24px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;       /* clickable launcher */
    text-align: left;
    font: inherit;
    color: inherit;
    width: 100%;
    display: block;
}
.community-inspire-card:focus-visible {
    outline: 3px solid rgba(232, 112, 76, 0.45);
    outline-offset: 2px;
}

.community-inspire-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: var(--accent, #E8704C);
}

.community-inspire-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.community-inspire-card h3 {
    font-family: var(--display, 'Fraunces', Georgia, serif);
    font-size: 20px;
    margin: 0 0 12px;
    color: var(--ink, #1a1a1a);
    line-height: 1.2;
}

.community-inspire-card p {
    color: var(--ink-soft, #4b5563);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.community-inspire-meta {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent, #E8704C);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .community-inspire-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .community-inspire-grid { grid-template-columns: 1fr; }
}

/* Compose box (only for logged-in users) */
.community-compose {
    background: #fff;
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

/* ----- Twitter-style composer (always at top for logged-in users) ----- */
.community-compose-card {
    background: #fff;
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 16px;
    padding: 20px 24px 16px;
    margin: 0 auto 32px;
    max-width: 720px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.community-compose-card:focus-within {
    border-color: var(--accent, #E8704C);
    box-shadow: 0 4px 18px rgba(232, 112, 76, 0.10);
}
.community-compose-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.wd-avatar.wd-avatar-lg {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #FF8A65 0%, #E8704C 100%);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.community-compose-meta { line-height: 1.2; }
.community-compose-name { font-weight: 700; font-size: 15px; color: var(--ink, #1a1a1a); }
.community-compose-handle { font-size: 13px; color: var(--ink-soft, #6b7280); }

.community-compose-textarea {
    width: 100%;
    min-height: 80px;
    max-height: 360px;
    border: none;
    background: transparent;
    resize: none;
    font: inherit;
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink, #1a1a1a);
    padding: 8px 0;
    outline: none;
    font-family: inherit;
}
.community-compose-textarea::placeholder {
    color: var(--ink-soft, #9ca3af);
    line-height: 1.55;
}

.community-compose-media {
    margin-top: 4px;
}
.community-compose .wd-image-previews,
.community-compose-card .wd-image-previews {
    display: none;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.community-compose-card .wd-image-previews.show {
    display: flex;
}
.community-compose .wd-video-input,
.community-compose-card .wd-video-input {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, margin 0.25s ease;
}
.community-compose-card .wd-video-input.show {
    max-height: 80px;
    margin: 8px 0;
}
.community-compose-card .wd-video-input input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg-soft, #fafafa);
    color: var(--ink, #1a1a1a);
    font-family: inherit;
    transition: border-color 0.2s ease;
}
.community-compose-card .wd-video-input input:focus {
    outline: none;
    border-color: var(--accent, #E8704C);
    background: #fff;
}

.community-compose-card .community-compose-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #e5e5e5);
    margin-top: 4px;
}
.community-compose-card .wd-tb-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft, #6b7280);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-family: inherit;
}
.community-compose-card .wd-tb-btn:hover {
    background: var(--accent-soft, rgba(232, 112, 76, 0.08));
    color: var(--accent, #E8704C);
}
.community-compose-card .wd-tb-btn.active {
    background: var(--accent-soft, rgba(232, 112, 76, 0.12));
    color: var(--accent-deep, #c44a2c);
}
.community-compose-card .wd-tb-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--ink-soft, #6b7280);
    font-variant-numeric: tabular-nums;
}
.community-compose-card .wd-tb-count.over { color: #dc2626; }

.community-compose-card .community-compose-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #e5e5e5);
}
.community-compose-card .wd-draft-status {
    flex: 1;
    font-size: 13px;
    color: var(--ink-soft, #6b7280);
    font-style: italic;
    min-width: 0;
}
.community-compose-card .wd-cancel {
    background: transparent;
    border: 1.5px solid var(--line, #e5e5e5);
    color: var(--ink, #1a1a1a);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}
.community-compose-card .wd-cancel:hover {
    border-color: var(--ink, #1a1a1a);
}
.community-compose-card .wd-form-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
    min-height: 0;
}
.community-compose-card .wd-form-error.show {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 8px 12px;
    border-radius: 8px;
}

/* ----- "Join to share" CTA (shown when not logged in) ----- */
.community-compose-cta {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 16px;
    padding: 32px 28px;
    margin: 0 auto 32px;
    max-width: 720px;
    text-align: center;
}
.community-compose-cta h3 {
    font-family: var(--display, 'Fraunces', Georgia, serif);
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--ink, #1a1a1a);
}
.community-compose-cta p {
    color: var(--ink-soft, #6b7280);
    font-size: 15px;
    margin: 0 0 20px;
    line-height: 1.5;
}
.community-compose-cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.community-compose textarea {
    width: 100%;
    min-height: 100px;
    border: none;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink, #1a1a1a);
    outline: none;
    padding: 0;
    background: transparent;
}

.community-compose textarea::placeholder {
    color: var(--ink-soft, #9ca3af);
}

.community-compose-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line, #e5e5e5);
    flex-wrap: wrap;
}

.community-compose-toolbar .wd-tb-btn {
    background: var(--bg-soft, #f7f3ee);
    border: 1px solid transparent;
    color: var(--ink-soft, #4b5563);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.community-compose-toolbar .wd-tb-btn:hover {
    border-color: var(--line-strong, #c4c4c4);
    color: var(--ink, #1a1a1a);
}
.community-compose-toolbar .wd-tb-btn.active {
    background: var(--accent-soft, #fde2d3);
    color: var(--accent-dark, #c2410c);
    border-color: var(--accent, #E8704C);
}

.community-compose-toolbar .wd-tb-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--ink-soft, #9ca3af);
}
.community-compose-toolbar .wd-tb-count.over {
    color: #dc2626;
}

.community-compose .wd-video-input,
.community-compose .wd-image-previews {
    margin-top: 12px;
    display: none;
}
.community-compose .wd-video-input.show,
.community-compose .wd-image-previews.show {
    display: block;
}
.community-compose .wd-video-input input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}
.community-compose .wd-image-previews {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.community-compose .wd-image-previews .wd-thumb {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-soft, #f7f3ee);
    position: relative;
    border: 1px solid var(--line, #e5e5e5);
}
.community-compose .wd-image-previews .wd-thumb .wd-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.community-compose-submit {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.community-compose-submit button {
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.community-compose-submit .wd-cancel {
    background: transparent;
    color: var(--ink-soft, #4b5563);
}
.community-compose-submit .wd-submit {
    background: var(--brand-gradient, linear-gradient(135deg, #FF8A65 0%, #E8704C 50%, #D65A37 100%));
    color: #fff;
    box-shadow: 0 4px 12px rgba(232, 112, 76, 0.25);
}
.community-compose-submit .wd-submit:hover {
    background: var(--brand-gradient-hover, linear-gradient(135deg, #FF7A55 0%, #D65A37 50%, #B04822 100%));
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(232, 112, 76, 0.40);
}
.community-compose-submit .wd-submit:disabled {
    background: #d1d5db;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Posts feed */
.community-feed {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 0 80px;
}

.community-post {
    background: #fff;
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 16px;
    padding: 24px;
    margin: 0 0 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.community-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.community-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent, #E8704C);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.community-post-author {
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    line-height: 1.2;
}

.community-post-date {
    font-size: 12px;
    color: var(--ink-soft, #9ca3af);
    margin-top: 2px;
}

.community-post-content {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink, #1a1a1a);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 16px;
}

.community-post-images {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
}
.community-post-images.count-1 { grid-template-columns: 1fr; }
.community-post-images.count-2 { grid-template-columns: 1fr 1fr; }
.community-post-images.count-3 { grid-template-columns: 1fr 1fr 1fr; }

.community-post-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 360px;
}

.community-post-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.community-post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Empty state */
.community-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ink-soft, #6b7280);
}
.community-empty h3 {
    font-family: var(--display, 'Fraunces', Georgia, serif);
    font-size: 24px;
    color: var(--ink, #1a1a1a);
    margin: 0 0 12px;
}

/* Modal (auth) */
.wd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wd-modal-backdrop.show {
    display: flex;
}
.wd-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
}
.wd-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--ink-soft, #6b7280);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}
.wd-modal h2 {
    font-family: var(--display, 'Fraunces', Georgia, serif);
    font-size: 24px;
    margin: 0 0 8px;
}
.wd-modal p.wd-modal-sub {
    color: var(--ink-soft, #6b7280);
    font-size: 14px;
    margin: 0 0 20px;
}

.wd-form-group {
    margin-bottom: 14px;
}
.wd-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    margin-bottom: 4px;
}
.wd-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}
.wd-form-group input:focus {
    border-color: var(--accent, #E8704C);
}
.wd-form-group .wd-hint {
    font-size: 12px;
    color: var(--ink-soft, #9ca3af);
    margin-top: 4px;
}
.wd-form-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 14px;
    display: none;
}
.wd-form-error.show { display: block; }

.wd-modal-submit {
    width: 100%;
    padding: 12px;
    background: var(--ink, #1a1a1a);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.15s ease;
}
.wd-modal-submit:hover { background: var(--accent, #E8704C); }
.wd-modal-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.wd-modal-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-soft, #6b7280);
}
.wd-modal-switch a {
    color: var(--accent, #E8704C);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}
.wd-modal-switch a:hover { text-decoration: underline; }

/* Honeypot spam protection — hidden field bots auto-fill */
.wd-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1;
}

/* Load more */
.community-load-more {
    text-align: center;
    margin-top: 32px;
}
.community-load-more button {
    padding: 10px 24px;
    background: var(--bg-soft, #f7f3ee);
    border: 1.5px solid var(--line, #e5e5e5);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    cursor: pointer;
}
.community-load-more button:hover {
    border-color: var(--ink, #1a1a1a);
}
.community-load-more button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile */
@media (max-width: 640px) {
    .community-auth-pill {
        top: 12px;
        right: 12px;
    }
    .community-post-images.count-3 { grid-template-columns: 1fr 1fr; }
    .community-post-images.count-3 img:first-child { grid-column: span 2; }
}

/* ===========================================================================
   Post actions: Edit / Delete buttons (own posts or admin)
   =========================================================================== */
.community-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.community-post-meta { flex: 1; }
.community-post-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}
.wd-post-action {
    background: transparent;
    border: 1px solid var(--line, #e5e5e5);
    color: var(--ink-soft, #6b7280);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.15s ease;
    font-family: inherit;
}
.wd-post-action:hover {
    background: var(--bg-soft, #fafafa);
    border-color: var(--ink-soft, #9ca3af);
    color: var(--ink, #1a1a1a);
}
.wd-post-action.danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}
.community-post-content { line-height: 1.6; word-wrap: break-word; white-space: pre-wrap; }
.community-post-content img { max-width: 100%; border-radius: 8px; cursor: zoom-in; }
.community-post-images img { cursor: zoom-in; transition: transform 0.2s ease; }
.community-post-images img:hover { transform: scale(1.02); }

/* Inline post editor */
.community-post-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1.5px solid var(--accent, #E8704C);
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    color: var(--ink, #1a1a1a);
    background: #fff;
    font-family: inherit;
}
.community-post-edit-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 112, 76, 0.15);
}
.community-post-edit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}
.community-post-edit-error {
    flex: 1;
    font-size: 13px;
    color: #dc2626;
    min-width: 0;
}

/* ===========================================================================
   Image lightbox (fullscreen image preview on click)
   =========================================================================== */
.wd-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: wd-fade-in 0.15s ease;
}
@keyframes wd-fade-in { from { opacity: 0; } to { opacity: 1; } }
.wd-lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}
.wd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: white;
    font-size: 32px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: background 0.15s ease;
    font-family: inherit;
    backdrop-filter: blur(4px);
}
.wd-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ===========================================================================
   Verify-email banner (shown above feed when user is logged in but unverified)
   =========================================================================== */
.community-verify-banner {
    background: linear-gradient(180deg, #fef9e7 0%, #fef3c7 100%);
    border-bottom: 1px solid #f59e0b;
    padding: 20px 0;
    margin-bottom: 24px;
}
.community-verify-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.community-verify-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 56px; height: 56px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}
.community-verify-text {
    flex: 1;
    min-width: 240px;
}
.community-verify-text strong {
    display: block;
    font-size: 16px;
    color: #78350f;
    margin-bottom: 4px;
}
.community-verify-text p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}
.community-verify-text code {
    background: rgba(255,255,255,0.6);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Menlo, monospace;
    font-size: 13px;
    color: #78350f;
}
.community-verify-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.community-verify-actions .wd-btn-sm {
    padding: 10px 20px;
    /* inherits brand gradient from generic .wd-btn-sm.solid */
}
.community-verify-actions .wd-btn-sm.solid {
    /* uses generic .wd-btn-sm.solid (brand gradient) */
}
.community-verify-resend-status {
    font-size: 13px;
    font-weight: 500;
    min-width: 120px;
}
.community-verify-resend-status.ok  { color: #065f46; }
.community-verify-resend-status.err { color: #991b1b; }

@media (max-width: 640px) {
    .community-verify-inner { flex-direction: column; align-items: flex-start; }
    .community-verify-actions { width: 100%; }
    .community-verify-actions .wd-btn-sm { flex: 1; }
}

/* Admin link inside the user chip (only for admin users) */
.wd-user-chip .wd-admin-link {
    display: inline-block;
    margin-left: 4px;
    padding: 3px 10px;
    background: var(--accent, #E8704C);
    color: white;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1.4;
}
.wd-user-chip .wd-admin-link:hover {
    background: #c45a3a;
}
