.community-page {
    width: 100%;
    min-height: 100vh;
}

.community-hero {
    margin-top: 70px;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(to bottom left,
            #30233f 0%,
            #17151a 100%);
}

.community-hero-inner {
    margin: 0 auto;
}

.community-hero-inner img {
    object-fit: cover;
    height: 300px;
    width: 100%;
}

.community-layout {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
}

/* ========== COMMUNITY CONTENT ========== */

.community-content {
    min-width: 0;
    padding: 40px 0 70px;
}

.community-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 38px;
}

.community-header h1 {
    margin: 0;
    color: var(--text-primary);
    font-size: 26px;
    font-weight: 600;
}

.create-topic-btn {
    padding: 9px 18px;
    border: 1px solid var(--accent-violet);
    border-radius: 6px;
    background: var(--accent-violet);
    color: #fff;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.create-topic-btn:hover {
    background: var(--accent-dark-violet);
    box-shadow: var(--accent-glow);
}


/* ========== CATEGORY GROUPS ========== */

.community-category-group {
    margin-bottom: 42px;
}

.community-category-group h2 {
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 600;
}

.community-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


/* ========== CATEGORY ========== */

.community-category {
    min-height: 72px;
    display: flex;
    align-items: stretch;
    border: 1px solid #333;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.community-category:hover {
    border-color: var(--accent-violet);
    background: var(--bg-card);
}

.community-category-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 18px;
}

.community-category-info h3 {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
}

.community-category-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}


/* ========== TOPIC COUNT ========== */

.community-category-count {
    width: 105px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #333;
    color: var(--text-muted);
}

.community-category-count strong {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

.community-category-count span {
    margin-top: 2px;
    font-size: 11px;
}


/* ========== SIDEBAR ========== */

.community-sidebar {
    min-width: 0;
    padding: 40px 0 70px 24px;
    border-left: 1px solid #292929;
}


/* ========== SEARCH ========== */

.community-search {
    margin-bottom: 50px;
}

.community-search input {
    width: 100%;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    outline: none;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-search input::placeholder {
    color: var(--text-muted);
}

.community-search input:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}


/* ========== SIDEBAR SECTION ========== */

.sidebar-section h3 {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sidebar-topic-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* ========== SIDEBAR TOPIC ========== */

.sidebar-topic {
    display: block;
    color: inherit;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 1px solid #aaaaaa47;
}

.sidebar-topic-user {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 5px;
}

.sidebar-topic-user img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-topic-user span {
    color: var(--accent-violet);
    font-size: 16px;
}

.sidebar-topic-title {
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.sidebar-topic:hover .sidebar-topic-title {
    color: var(--accent-violet);
}

.sidebar-topic-meta {
    display: flex;
    gap: 8px;
    color: var(--text-muted);
    font-size: 10px;
}

.sidebar-topic-meta span+span::before {
    content: "·";
    margin-right: 8px;
}

.community-hero {
    width: 100%;
    overflow: hidden;
}

.community-hero-inner {
    width: 100%;
    max-width: 1400px;
    height: 220px;
    display: flex;
    align-items: center;
    gap: 10%;
    justify-content: center;
    box-sizing: border-box;
}

.community-hero-inner img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.community-hero-horum {
    align-self: flex-end;
    max-width: 30%;
    max-height: 90%;
}

.community-hero-bubbles {
    max-width: 30%;
    max-height: 70%;
    margin-top: -2%;
}

.community-hero-files {
    max-width: 30%;
    max-height: 45%;
}

.community-breadcrumb a {
    color: var(--accent-pink);
    opacity: 0.5;
}

.community-breadcrumb a:hover {
    opacity: 0.8;
}

.community-breadcrumb-current {
    color: var(--accent-pink);
    opacity: 1;
}

/* YES / NO MODAL */

.yesno-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    padding: 20px;
}

.yesno-modal {
    background: var(--bg-secondary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: yesNoModalSlideUp 0.3s ease-out;
}

.yesno-modal h2 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.yesno-modal p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 24px;
}

.yesno-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.yesno-modal-actions button {
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.yesno-modal-no {
    background: var(--bg-card);
    color: var(--text-primary);
}

.yesno-modal-yes {
    background: var(--accent-pink);
    color: #fff;
}

.yesno-modal-actions button:hover {
    transform: scale(1.02);
}

.community-user-role {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.community-user-role-administrator {
    color: var(--accent-pink) !important;
    opacity: 0.7;
}

.community-user-role-moderator {
    color: var(--accent-violet) !important;
    opacity: 0.7;
}

.community-user-role-supporter {
    color: var(--accent-green) !important;
    opacity: 0.7;
}

@keyframes yesNoModalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}