/* Community Page Specific Styles */

.section-community {
    background: transparent;
}

.post-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-empty-state {
    text-align: center;
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-muted);
}

.post-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 8px 20px rgba(110, 69, 226, 0.16);
    transform: translateY(-3px);
}

.post-content {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.6;
}

.post-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.post-media img,
.post-media video,
.post-media iframe {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.post-stats .stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--light);
    transition: all 0.3s ease;
}

.post-stats .stat-item:hover {
    background: var(--page-primary);
    color: white;
}

.post-comments .comment-item {
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-comments .comment-text {
    font-size: 0.85rem;
    color: var(--off-light);
}

.post-comments .reply-input {
    margin-top: 0.5rem;
}

.post-comments .reply-text {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--light);
    resize: none;
}

.post-comments .reply-text:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(110, 69, 226, 0.3);
}

.create-post-form .post-input {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--light);
    resize: none;
}

.create-post-form .post-input:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(110, 69, 226, 0.3);
}

.suggested-user {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.suggested-user:last-child {
    border-bottom: none;
}

.suggested-user h6 {
    font-size: 0.9rem;
    color: var(--light);
}

.suggested-user small {
    font-size: 0.8rem;
}


/* Chat Panel Styles */

.chat-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: var(--glass);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    z-index: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: none;
    /* GSAP handles transitions */
}

.chat-panel.open {
    z-index: 1050;
    visibility: visible;
    transform: translateX(0);
}


/* Footer Styles */

.footer {
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    margin-top: 2rem;
    padding: 2rem 0;
}

.footer-content {
    gap: 1.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links ul {
    margin: 0;
}

.footer-links .nav-link {
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links .nav-link:hover {
    color: var(--page-primary);
}

.footer-social .nav-link {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social .nav-link:hover {
    color: var(--page-primary);
}

.footer-bottom p {
    font-size: 0.85rem;
}


/* Responsive Adjustments */

@media (max-width: 768px) {
    .post-card {
        padding: 1rem;
    }
    .post-content {
        font-size: 0.9rem;
    }
    .post-stats .stat-item {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    .create-post-form .post-input {
        font-size: 0.9rem;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-links ul {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    .chat-panel {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .post-article a {
        flex-direction: column;
        align-items: flex-start;
    }
    .post-article img {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    .footer {
        padding: 1.5rem 0;
    }
}