/* Community Page Styles */

.community-container .community-header {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 32px 28px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.community-container .community-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.community-container .community-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.community-container .community-header h1::before {
    content: '👥';
    font-size: 28px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.member-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.member-count::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 12px;
}/* Community Modal Styles */

/* Community Modal Styles */
#createCommunityModal .modal-content {
    padding: 0 24px 24px 24px;
    background: var(--background);
    border-radius: 16px;
}

.community-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.community-header .close-btn {
    cursor: pointer;
    color: var(--secondary);
    transition: all 0.2s ease;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.community-header .close-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.admin-header {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border);
    align-items: center;
    display: flex;
    gap: 15px;
}

.admin-header .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-header .composer-author-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--primary);
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.error-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--error-color);
}/* Custom Dropdown Styles */

/* Custom Dropdown Styles */
.dropdown {
    position: relative;
    width: 100%;
}

.dropdown-button {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-button:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-button.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-button i {
    color: var(--secondary);
    font-size: 16px;
}

.dropdown-button span {
    flex: 1;
    text-align: left;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--secondary);
    transition: transform 0.2s ease;
}

.dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--primary);
    font-size: 15px;
    background: transparent;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.selected-text {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--secondary);
}/* Feed Container */

/* Feed Container */
.community-container .articles {
    display: flex;
    flex-direction: column;
    gap: 16px;
}/* Form Actions */

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-secondary,
.btn-primary {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn-primary {
    background: black;
    color: white;
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(0);
}/* Empty State */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}/* Mobile Responsiveness */

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .community-container {
        padding: 16px;
    }

    .community-container .community-header {
        padding: 24px 20px;
    }

    .community-container .community-header h1 {
        font-size: 24px;
    }

    .community-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .community-stats button {
        width: 100%;
        width: 100%;
    }
}/* Fix for No Whinges/Posts Centering */

/* Fix for No Whinges/Posts Centering */
.no-whinges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 400px;
    width: 100%;
}

.no-whinges-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.no-whinges-content i {
    font-size: 64px;
    margin-bottom: 16px;
    color: var(--secondary);
    display: block;
}

.no-whinges-content h2 {
    margin-bottom: 8px;
    color: var(--primary);
}

.no-whinges-content p {
    color: var(--secondary);
}
