/* Community Page Styles - Dark Theme with Improved Responsive Design */

.community-container { 
    max-width: 1400px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

.page-header { 
    text-align: center; 
    margin-bottom: 2rem; 
}

.page-title { 
    color: rgba(217,168,50,1); 
    margin-bottom: .5rem; 
    font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.page-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #c0c0c0;
}

/* Responsive Grid System */
@media (max-width: 767px) {
    .community-sidebar-col {
        order: 2;
        margin-top: 2rem;
    }
    
    .col-lg-6.col-md-8 {
        order: 1;
    }
}

/* Left Sidebar */
.user-profile-card, .community-nav, .active-members { 
    background: #181818; 
    border: 1px solid rgba(217,168,50,.25); 
    border-radius: 12px; 
    padding: 1.25rem 1.25rem 1rem; 
    box-shadow: 0 6px 18px rgba(217,168,50,.15); 
}

.profile-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-bottom: 1rem; 
}

@media (max-width: 576px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

.profile-avatar { 
    margin-right: 0; 
}

.avatar-placeholder { 
    width: 60px; 
    height: 60px; 
    background: rgba(217,168,50,.35); 
    border: 2px solid rgba(217,168,50,.6); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: rgba(217,168,50,1); 
    font-size: 1.4rem; 
    box-shadow: 0 0 0 3px rgba(217,168,50,.15); 
}

.avatar-placeholder.small { 
    width: 40px; 
    height: 40px; 
    font-size: 1rem; 
}

.avatar-placeholder.tiny { 
    width: 30px; 
    height: 30px; 
    font-size: .8rem; 
}

.profile-avatar img { 
    width: 60px; 
    height: 60px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 2px solid rgba(217,168,50,.4); 
    box-shadow: 0 0 12px rgba(217,168,50,.25); 
}

.profile-stats { 
    display: flex; 
    justify-content: space-around; 
    margin-top: .75rem; 
    gap: .75rem; 
}

@media (max-width: 576px) {
    .profile-stats {
        gap: 0.5rem;
    }
}

.stat-item { 
    text-align: center; 
    padding: .5rem .25rem; 
    flex: 1; 
    background: #121212; 
    border: 1px solid rgba(217,168,50,.25); 
    border-radius: 8px; 
}

.stat-number { 
    display: block; 
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    font-weight: 700; 
    color: rgba(217,168,50,1); 
}

.stat-label { 
    font-size: clamp(0.5rem, 2vw, 0.6rem);
    letter-spacing: .75px; 
    color: #c0c0c0; 
    text-transform: uppercase; 
    font-weight: 600; 
}

.section-title { 
    color: rgba(217,168,50,1); 
    font-size: .8rem; 
    letter-spacing: .75px; 
    font-weight: 600; 
    margin: 0 0 .85rem; 
    text-transform: uppercase; 
}

.members-list { 
    display: flex; 
    flex-direction: column; 
    gap: .5rem; 
}

.member-item { 
    display: flex; 
    align-items: center; 
    padding: .5rem .6rem; 
    background: #121212; 
    border: 1px solid rgba(217,168,50,.15); 
    border-radius: 8px; 
    transition: .25s; 
}

.member-item:hover { 
    border-color: rgba(217,168,50,.5); 
    box-shadow: 0 0 0 3px rgba(217,168,50,.15); 
}

.member-avatar { 
    position: relative; 
    margin-right: .75rem; 
}

.online-indicator { 
    position: absolute; 
    bottom: 0; 
    right: 0; 
    width: 12px; 
    height: 12px; 
    background: #2ecc71; 
    border-radius: 50%; 
    border: 2px solid #181818; 
    box-shadow: 0 0 6px rgba(46,204,113,.75); 
}

.member-name { 
    font-weight: 600; 
    font-size: .85rem; 
    color: #f0f0f0; 
}

.member-status { 
    font-size: .6rem; 
    color: #aaa; 
    text-transform: uppercase; 
    letter-spacing: .5px; 
}

.more-members {
    text-align: center;
    padding: 0.5rem;
    border-top: 1px solid rgba(217,168,50,.1);
    margin-top: 0.5rem;
}

/* Main Content */
.create-post-card, .post-card { 
    background: #181818; 
    border: 1px solid rgba(217,168,50,.35); 
    border-radius: 14px; 
    box-shadow: 0 8px 28px -4px rgba(0,0,0,.6), 0 0 0 1px rgba(217,168,50,.15); 
    padding: 1.25rem 1.25rem 1rem; 
}

.create-post-card .card-header { 
    padding: 0 0 1rem; 
    border: none; 
}

.create-post-card .card-footer { 
    background: #121212; 
    border-top: 1px solid rgba(217,168,50,.25); 
    padding: 1rem; 
    border-bottom-left-radius: 12px; 
    border-bottom-right-radius: 12px; 
    margin: 0 -1.25rem -1rem;
}

.post-header { 
    margin-bottom: 1rem; 
}

.author-name { 
    margin: 0; 
    color: rgba(217,168,50,1); 
    font-weight: 600; 
    font-size: 1rem;
}

.post-time { 
    color: #b0b0b0; 
    font-size: .7rem; 
    text-transform: uppercase; 
    letter-spacing: .5px; 
}

.post-content { 
    margin-bottom: 1rem; 
    line-height: 1.6; 
    color: #d8d8d8; 
    font-size: 0.95rem;
}

.attached-song { 
    background: #121212; 
    padding: 1rem; 
    border-radius: 10px; 
    margin-top: 1rem; 
    display: flex; 
    align-items: center; 
    border: 1px solid rgba(217,168,50,.25); 
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-actions .action-buttons { 
    display: flex; 
    gap: .9rem; 
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .post-actions .action-buttons {
        gap: 0.5rem;
    }
    
    .post-actions .action-buttons .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}

.comments-section { 
    margin-top: 1rem; 
    padding-top: 1rem; 
    border-top: 1px solid rgba(217,168,50,.25); 
}

.comment-item { 
    display: flex; 
    margin-bottom: .75rem; 
    gap: .6rem; 
}

.comment-content { 
    flex: 1; 
    font-size: .85rem; 
    line-height: 1.4; 
    color: #cfcfcf; 
}

.comment-content strong {
    color: rgba(217,168,50,1);
    margin-right: 0.5rem;
}

.add-comment { 
    margin-top: 1rem; 
}

.view-more-comments {
    text-align: center;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(217,168,50,.1);
    margin-bottom: 0.5rem;
}

.load-more-section {
    background: #181818;
    border: 1px solid rgba(217,168,50,.25);
    border-radius: 12px;
    padding: 2rem;
}

.no-posts {
    background: #181818;
    border: 1px solid rgba(217,168,50,.25);
    border-radius: 12px;
    padding: 3rem 2rem;
}

/* Right Sidebar */
.community-stats, .suggested-artists, .premium-upgrade .upgrade-card { 
    background: #181818; 
    border: 1px solid rgba(217,168,50,.35); 
    border-radius: 14px; 
    padding: 1.25rem 1.25rem 1rem; 
    box-shadow: 0 8px 28px -4px rgba(0,0,0,.6), 0 0 0 1px rgba(217,168,50,.15); 
}

.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
    text-align: center; 
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.suggested-artist-item { 
    padding: .75rem 0; 
    border-bottom: 1px solid rgba(217,168,50,.15); 
}

.suggested-artist-item:last-child { 
    border-bottom: none; 
}

.artist-name {
    font-weight: 600;
    color: #f0f0f0;
    font-size: 0.9rem;
}

.artist-details {
    flex: 1;
}

.premium-upgrade .upgrade-card { 
    background: linear-gradient(145deg, #1e1e1e, #262626); 
    border: 2px solid rgba(217,168,50,.6); 
    text-align: center; 
}

.premium-features, .premium-features li { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.premium-features { 
    margin: 1rem 0; 
    text-align: left; 
}

.premium-features li { 
    padding: .35rem 0; 
    display: flex; 
    align-items: center; 
    font-size: .85rem; 
    color: #d0d0d0; 
}

.premium-features i { 
    margin-right: .6rem; 
    color: rgba(217,168,50,1); 
}

/* Trending / Events */
.trending-item, .event-card, .artist-card { 
    background: #181818; 
    border: 1px solid rgba(217,168,50,.25); 
    border-radius: 12px; 
    padding: 1rem; 
    box-shadow: 0 4px 14px rgba(217,168,50,.15); 
    transition: .25s; 
}

.trending-item:hover, .event-card:hover, .artist-card:hover { 
    border-color: rgba(217,168,50,.6); 
    box-shadow: 0 6px 20px rgba(217,168,50,.35); 
}

.trend-title {
    color: rgba(217,168,50,1);
    font-size: 1.1rem;
    margin: 0;
}

.artists-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 1rem; 
}

@media (max-width: 576px) {
    .artists-grid {
        grid-template-columns: 1fr;
    }
}

.artist-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.artist-avatar {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.artist-info h6 {
    color: rgba(217,168,50,1);
    margin-bottom: 0.5rem;
}

.event-card { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

@media (max-width: 576px) {
    .event-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.event-date { 
    text-align: center; 
    background: rgba(217,168,50,.8); 
    color: #111; 
    border-radius: 10px; 
    padding: .5rem .6rem; 
    min-width: 60px; 
    box-shadow: 0 0 0 3px rgba(217,168,50,.25); 
}

.event-date .day { 
    font-size: 1.15rem; 
    font-weight: 700; 
}

.event-date .month { 
    font-size: .65rem; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

.event-info {
    flex: 1;
}

.event-info h6 {
    color: rgba(217,168,50,1);
    margin-bottom: 0.5rem;
}

/* Subscription Modal */
.subscription-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,.6); 
    z-index: 1050; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}

.subscription-modal-content { 
    background: #181818; 
    border: 1px solid rgba(217,168,50,.35); 
    border-radius: 18px; 
    max-width: 520px; 
    width: 100%; 
    max-height: 90vh; 
    overflow: auto; 
    box-shadow: 0 25px 55px -10px rgba(0,0,0,.75), 0 0 0 1px rgba(217,168,50,.2); 
}

.modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 1rem 1.25rem; 
    border-bottom: 1px solid rgba(217,168,50,.25); 
}

.modal-header h4 { 
    margin: 0; 
    flex: 1; 
    color: rgba(217,168,50,1); 
}

.subscription-plan { 
    padding: 2rem 1.75rem 2rem; 
    text-align: center; 
}

.plan-features { 
    list-style: none; 
    padding: 0; 
    margin: 1.5rem 0; 
    text-align: left; 
}

.plan-features li { 
    padding: .5rem 0; 
    display: flex; 
    align-items: center; 
    font-size: .85rem; 
    color: #d4d4d4; 
}

.plan-features i { 
    margin-right: .5rem; 
    color: rgba(217,168,50,1); 
}

/* Song Selection Modal */
.modal-backdrop.show {
    opacity: 0.6;
    background: rgba(0,0,0,.8);
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    margin: 3rem auto;
}

.modal-content {
    background: #181818;
    border: 1px solid rgba(217,168,50,.35);
    border-radius: 12px;
    box-shadow: 0 25px 55px -10px rgba(0,0,0,.75);
}

.modal-header {
    border-bottom: 1px solid rgba(217,168,50,.25);
    padding: 1rem 1.25rem;
}

.modal-title {
    color: rgba(217,168,50,1);
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    border-top: 1px solid rgba(217,168,50,.25);
    padding: 1rem 1.25rem;
}

.list-group-item {
    background: #121212;
    border: 1px solid rgba(217,168,50,.15);
    color: #e0e0e0;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background: rgba(217,168,50,.1);
    border-color: rgba(217,168,50,.4);
    transform: translateY(-1px);
}

.list-group-item.active {
    background: rgba(217,168,50,.2);
    border-color: rgba(217,168,50,.8);
    color: rgba(217,168,50,1);
}

.list-group-item h6 {
    color: rgba(217,168,50,1);
    font-weight: 600;
}

.list-group-item p {
    color: #c0c0c0;
    margin-bottom: 0.25rem;
}

.list-group-item small {
    color: #999;
}

/* Selected Song Preview */
.selected-song-preview {
    background: rgba(217,168,50,.1);
    border: 1px solid rgba(217,168,50,.3);
    border-radius: 8px;
    padding: 0.75rem;
}

.selected-song-preview i {
    color: rgba(217,168,50,1);
}

.selected-song-preview span {
    color: #e0e0e0;
}

/* Post Actions Improvements */
.post-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-actions .action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-actions .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.post-actions .btn-outline-primary:hover {
    background: rgba(217,168,50,.2);
    border-color: rgba(217,168,50,.8);
    color: rgba(217,168,50,1);
}

.post-actions .btn-primary {
    background: rgba(217,168,50,.8);
    border-color: rgba(217,168,50,1);
    color: #111;
}

.post-actions .btn-primary:hover {
    background: rgba(217,168,50,1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217,168,50,.4);
}

/* Post Options and Delete Button */
.post-options {
    display: flex;
    gap: 0.5rem;
}

.post-options .btn {
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.post-options .btn:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #dc3545;
}

/* Comments Section Improvements */
.no-comments {
    text-align: center;
    padding: 1rem;
    background: rgba(217,168,50,.05);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.comments-section {
    background: rgba(217,168,50,.02);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(217,168,50,.25);
}

.comment-item {
    display: flex;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(217,168,50,.05);
    border-radius: 6px;
    gap: 0.6rem;
}

.comment-item:last-of-type {
    margin-bottom: 1rem;
}

/* Post Header Improvements */
.post-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(217,168,50,.1);
}

.post-header .d-flex {
    width: 100%;
}

@media (max-width: 768px) {
    .post-options {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .post-options .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
}


.communtiy-nav-title {
    color: rgba(217,168,50,1);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.communtiy-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.communtiy-nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #121212;
    border: 1px solid rgba(217,168,50,.15);
    border-radius: 8px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

    .communtiy-nav-item:hover {
        border-color: rgba(217,168,50,.5);
        background: rgba(217,168,50,.1);
        color: rgba(217,168,50,1);
        text-decoration: none;
    }

    .communtiy-nav-item.active {
        background: rgba(217,168,50,.2);
        border-color: rgba(217,168,50,.8);
        color: rgba(217,168,50,1);
    }

    .communtiy-nav-item i {
        margin-right: 0.75rem;
        width: 16px;
    }