/* ── community.css ── */

/* Filter tabs (community page only — dark text on light bg) */
.community-tabs .nav-link {
    color: #1a1a1a !important;
    opacity: 1 !important;
}
.community-tabs .nav-link.active {
    color: #1a1a1a !important;
    font-weight: 600;
}
.community-tabs .nav-link:hover {
    color: #1a1a1a !important;
}

/* Mini avatar — photo */
.mini-avatar-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

/* Mini avatar — initials badge */
.mini-avatar-badge {
    font-size: 0.8rem;
    padding: 0.4em 0.55em;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Size modifier — 36 px (used in the composer) */
.mini-avatar-img--36,
.mini-avatar-badge--36 {
    width: 36px;
    height: 36px;
}

/* Tag selects */
.composer-tag-select { max-width: 180px; }
.edit-tag-select     { max-width: 160px; }

/* Needed for the search dropdown inside navbar-search */
.navbar-search { position: relative; }


#aiModal {
    display: none; /* hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3); /* subtle overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    font-family: 'DM Sans', sans-serif;
}

.ai-modal-content {
    background: #fff;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.ai-modal-message {
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.ai-modal-close {
    background: #007bff;
    border: none;
    color: white;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-modal-close:hover {
    background: #0056b3;
}