﻿
/* Community Header Styles */
.community-banner {
    height: 192px;
    background-color: #33a8ff;
    overflow: hidden;
    margin: -16px -16px 0;
}

    .banner-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .community-info-card {
        margin-top: -64px;
        position: relative;
        border: 1px solid #ccc;
    }

    .community-title-section {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 16px;
    }

    .community-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 4px solid white;
        background-color: white;
    }

    .community-title-content {
        flex-grow: 1;
        padding-top: 8px;
    }

    .community-name {
        font-size: 28px;
        font-weight: 700;
        margin: 0;
        line-height: 32px;
    }

    .community-handle {
        font-size: 14px;
        color: #7c7c7c;
        margin: 0;
    }

    .join-button {
        /* margin-top: 8px; */
    }

    .community-stats {
        display: flex;
        gap: 32px;
        padding: 16px 0;
        border-bottom: 1px solid #edeff1;
        margin-bottom: 16px;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
    }

    .stat-value {
        font-size: 16px;
        font-weight: 500;
    }

    .stat-label {
        font-size: 12px;
        color: #7c7c7c;
    }

    .community-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .community-metadata {
        font-size: 14px;
        color: #7c7c7c;
        display: flex;
        align-items: center;
        gap: 8px;
    }

.highlighted-username {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    letter-spacing: 0.5px;
}

.options-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: auto;

    background-color: #fff;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1051;
    transition: bottom 0.3s ease-in-out;
}

.options-panel.show-modal {
    bottom: 0;
}

    .panel-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        border-bottom: 1px solid #eee;
    }

    .panel-title {
        font-size: 1.2rem;
        font-weight: 600;
        margin: 0;
    }

.btn-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

    .panel-body {
        padding: 8px 0;
    }

.panel-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    color: #212529;
    text-decoration: none;
    transition: background-color 0.2s;
}

    .panel-item:hover {
        background-color: #f8f9fa;
    }

    .panel-item i {
        width: 24px;
        text-align: center;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .community-banner {
            height: 128px;
        }

        .community-info-card {
            margin-top: -32px;
        }

        .community-icon {
            width: 64px;
            height: 64px;
        }

        .community-name {
            font-size: 20px;
            line-height: 24px;
        }

        .community-stats {
            gap: 16px;
        }

    .community-actions {
        display: flex;
        position: relative;
        gap: 8px;
    }

    .create-post-btn {
        /* display: flex; */
        align-items: center;
    }
s
    .btn-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        padding: 0;
    }

    .btn-icon:hover {
        background-color: #f8f9fa;
        color: #1c1c1c;
    }

    .community-actions {
        gap: 4px;
    }

    .create-post-btn {
        order: -1;
        /* width: 100%; */
        /* margin-bottom: 8px; */
    }

    .community-title-section {
        flex-wrap: wrap;
    }
}

/* Desktop styles for the dropdown menu */
@media (min-width: 769px) {
    .community-actions {
        position: relative;
    }

    .options-panel {
        position: absolute;
        bottom: auto;
        right: 0;
        left: auto;
        width: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border: 1px solid #edeff1;
        z-index: 1051;
        transform: translateY(50px);
        display: none;
        transition: none;
    }

    .options-panel.show-dropdown {
        display: block;
    }

    .options-panel .panel-body {
        padding: 0;
    }
}


/* .custom-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.custom-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 500px;
    margin: 1.75rem auto;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 3.5rem);
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.custom-modal.show .custom-dialog {
    transform: scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
}

.custom-modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-size: 1.25rem;
}

.custom-btn-close {
    padding: 0;
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
    line-height: 1;
}

.custom-btn-close:hover {
    opacity: 1;
}

.custom-modal-body {
    padding: 16px;
    position: relative;
    flex: 1 1 auto;
}

.custom-modal-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    padding: 12px;
    border-top: 1px solid #dee2e6;
    gap: 8px;
} */
