/* =====================================================
   COMMUNITY MODULE - OPTR Server Suite
   Estilos do módulo de comunidade/rede social
   ===================================================== */

/* === ANIMAÇÕES DE TEMPO REAL === */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes flash-update {
    0%, 100% { background: transparent; }
    50% { background: rgba(255, 80, 0, 0.1); }
}

.pulse-animation {
    animation: pulse 0.6s ease;
}

.updated-flash {
    animation: flash-update 1s ease;
}

/* === RESET E FUNDO GLOBAL === */
html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    background-attachment: fixed;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Garantir que o conteúdo principal preencha a tela */
.community-wrapper {
    min-height: calc(100vh - 70px);
    padding-top: 20px;
    padding-bottom: 40px;
    background: transparent;
}

/* === LAYOUT PRINCIPAL === */
.community-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 25px;
    min-height: calc(100vh - 200px);
}

/* === MENU HAMBURGER MOBILE === */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 80, 0, 0.1);
    border: 1px solid #ff5000;
    border-radius: 8px;
    color: #ff5000;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 80, 0, 0.2);
    transform: scale(1.05);
}

.mobile-menu-toggle.active {
    background: #ff5000;
    color: white;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    overflow-y: auto;
    padding: 80px 20px 20px;
}

.mobile-menu-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-menu-content {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-section {
    background: linear-gradient(180deg, rgba(30,30,30,0.98) 0%, rgba(25,25,25,0.98) 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
}

.mobile-menu-section h3 {
    font-size: 14px;
    color: #ff5000;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu-section h3 i {
    font-size: 16px;
}

.mobile-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 12px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    background: rgba(255, 80, 0, 0.15);
    border-color: #ff5000;
    color: #ff5000;
}

.mobile-nav-item i {
    font-size: 24px;
}

.mobile-nav-item span {
    font-size: 12px;
    font-weight: 500;
}

.mobile-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-filter-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 12px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-filter-btn:hover,
.mobile-filter-btn.active {
    background: rgba(255, 80, 0, 0.15);
    border-color: #ff5000;
    color: #ff5000;
}

.mobile-filter-btn i {
    font-size: 20px;
}

.mobile-filter-btn span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mobile-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 12px;
    color: #aaa;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-link-item:hover {
    background: rgba(255, 80, 0, 0.1);
    border-color: #ff5000;
    color: #ff5000;
}

.mobile-link-item i {
    font-size: 20px;
}

.mobile-link-item span {
    font-size: 11px;
}

@media (max-width: 1200px) {
    .community-container {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .community-sidebar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .community-container {
        padding: 10px;
        gap: 0;
    }
    
    .community-sidebar {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ocultar filtros desktop em mobile */
    .feed-filters {
        display: none !important;
    }
    
    /* Ocultar área de criar post em mobile - usar só o modal */
    .create-post-card {
        padding: 12px;
    }
    
    .create-post-header {
        gap: 10px;
    }
    
    .create-post-header .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .create-post-actions {
        padding-top: 10px;
        gap: 5px;
    }
    
    .create-post-actions .action-btn {
        font-size: 12px;
        padding: 8px;
    }
}

/* === SIDEBARS === */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-sidebar.left {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.community-sidebar.right {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-card {
    background: linear-gradient(180deg, rgba(25,25,25,0.98) 0%, rgba(20,20,20,0.98) 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.sidebar-card h3 {
    font-size: 14px;
    color: #888;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: #ff5000;
}

/* Navegação Sidebar */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255, 80, 0, 0.1);
    color: #ff5000;
}

.sidebar-nav .nav-item.active {
    background: rgba(255, 80, 0, 0.15);
    color: #ff5000;
    font-weight: bold;
}

.sidebar-nav .nav-item i {
    width: 20px;
    text-align: center;
}

/* Stats Mini */
.stats-mini {
    display: flex;
    justify-content: space-around;
}

.stats-mini .stat-item {
    text-align: center;
}

.stats-mini .stat-number {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #ff5000;
}

.stats-mini .stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

/* Members List */
.members-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.member-item:hover {
    background: rgba(255,255,255,0.05);
}

.member-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #333;
}

.member-item .member-name {
    color: #ddd;
    font-size: 13px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-item .member-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    border-radius: 8px;
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.quick-link:hover {
    background: rgba(255, 80, 0, 0.1);
    border-color: #ff5000;
    color: #ff5000;
}

.quick-link i {
    width: 18px;
    text-align: center;
}

/* === FEED PRINCIPAL === */
.community-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card de Criar Post */
.create-post-card {
    background: linear-gradient(180deg, rgba(30,30,30,0.98) 0%, rgba(25,25,25,0.98) 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.create-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.create-post-header .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #ff5000;
}

.create-post-prompt {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    border-radius: 25px;
    padding: 14px 20px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.create-post-prompt:hover {
    background: rgba(255,255,255,0.08);
    border-color: #555;
    color: #aaa;
}

.create-post-actions {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.create-post-actions .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 13px;
}

.create-post-actions .action-btn:hover {
    background: rgba(255, 80, 0, 0.1);
    color: #ff5000;
}

/* Login Prompt */
.login-prompt-card {
    background: linear-gradient(180deg, rgba(30,30,30,0.98) 0%, rgba(25,25,25,0.98) 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.login-prompt-card i {
    font-size: 48px;
    color: #444;
    margin-bottom: 15px;
}

.login-prompt-card p {
    color: #888;
    margin-bottom: 20px;
}

.login-prompt-card .btn-login {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #1b2838 0%, #2a475e 100%);
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
}

.login-prompt-card .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Filtros do Feed */
.feed-filters {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.feed-filters .filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 25px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.feed-filters .filter-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #ccc;
}

.feed-filters .filter-btn.active {
    background: rgba(255, 80, 0, 0.15);
    border-color: #ff5000;
    color: #ff5000;
    font-weight: bold;
}

/* === POSTS === */
.post-card {
    background: linear-gradient(180deg, rgba(30,30,30,0.98) 0%, rgba(25,25,25,0.98) 100%);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s;
    margin-bottom: 10px;
}

.post-card:hover {
    border-color: #444;
}

.post-card.pinned {
    border-color: #ff5000;
    border-width: 2px;
}

.post-card.pinned::before {
    content: '📌 Fixado';
    display: block;
    background: rgba(255, 80, 0, 0.1);
    color: #ff5000;
    font-size: 11px;
    font-weight: bold;
    padding: 8px 20px;
    border-bottom: 1px solid rgba(255, 80, 0, 0.2);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 12px;
}

.post-header .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
    transition: border-color 0.2s;
}

.post-header .author-avatar:hover {
    border-color: #ff5000;
}

.post-header .author-info {
    flex: 1;
}

.post-header .author-name {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.post-header .author-name:hover {
    color: #ff5000;
}

.post-header .post-time {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-header .post-time .edited-tag {
    color: #888;
    font-style: italic;
}

.post-header .post-menu {
    position: relative;
}

.post-header .post-menu-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
}

.post-header .post-menu-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #ccc;
}

.post-menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}

.post-menu-dropdown.show {
    display: block;
}

.post-menu-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.post-menu-dropdown .menu-item:hover {
    background: rgba(255,255,255,0.05);
}

.post-menu-dropdown .menu-item.danger {
    color: #e74c3c;
}

.post-menu-dropdown .menu-item.danger:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Post Content */
.post-content {
    padding: 0 20px 15px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.post-content p {
    margin: 0 0 10px 0;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: #ff5000;
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 10px 0;
}

/* Post Image */
.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.2s;
}

.post-image:hover {
    opacity: 0.95;
}

/* Post Stats */
.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #2a2a2a;
}

.post-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.2s;
}

.post-stats .stat:hover {
    color: #ff5000;
}

/* Post Actions */
.post-actions {
    display: flex;
    border-top: 1px solid #2a2a2a;
}

.post-actions .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.post-actions .action-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #ccc;
}

.post-actions .action-btn.liked {
    color: #e74c3c;
}

.post-actions .action-btn.liked i {
    animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Post Comments Section */
.post-comments {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid #2a2a2a;
    padding: 15px 20px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-item {
    display: flex;
    gap: 10px;
}

.comment-item .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #444;
}

.comment-item .comment-body {
    flex: 1;
}

.comment-item .comment-bubble {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 10px 15px;
}

.comment-item .comment-author {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
}

.comment-item .comment-author:hover {
    color: #ff5000;
}

.comment-item .comment-text {
    color: #ccc;
    font-size: 13px;
    margin-top: 3px;
}

.comment-item .comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    padding-left: 5px;
}

.comment-item .comment-action {
    color: #666;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.comment-item .comment-action:hover {
    color: #ff5000;
}

.comment-item .comment-action.liked {
    color: #e74c3c;
}

/* Comment Input */
.comment-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.comment-input-wrapper .user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 30%;
}

.comment-input-wrapper .comment-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 13px;
    resize: none;
    min-height: 20px;
    max-height: 100px;
    outline: none;
    transition: border-color 0.2s;
}

.comment-input-wrapper .comment-input:focus {
    border-color: #ff5000;
}

.comment-input-wrapper .comment-input::placeholder {
    color: #666;
}

.comment-input-wrapper .send-btn {
    background: #ff5000;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.comment-input-wrapper .send-btn:hover {
    background: #ff6520;
    transform: scale(1.05);
}

.comment-input-wrapper .send-btn:disabled {
    background: #444;
    cursor: not-allowed;
}

/* View More Comments */
.view-more-comments {
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.2s;
}

.view-more-comments:hover {
    color: #ff5000;
}

/* === MODAIS === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #333;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: #ff5000;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #333;
}

/* Editor User Info */
.editor-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.editor-user-info .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ff5000;
}

.editor-user-info .user-name {
    color: #fff;
    font-weight: bold;
}

/* Quill Editor Customization */
#editor-container {
    margin-bottom: 15px;
}

#quill-editor {
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    border-radius: 8px;
    min-height: 150px;
    color: #fff;
}

.ql-toolbar.ql-snow {
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
}

.ql-snow .ql-stroke {
    stroke: #888;
}

.ql-snow .ql-fill {
    fill: #888;
}

.ql-snow .ql-picker {
    color: #888;
}

.ql-snow .ql-picker-options {
    background: #1a1a1a;
    border-color: #444;
}

.ql-editor.ql-blank::before {
    color: #666;
    font-style: normal;
}

/* Image Preview */
#image-preview-container {
    position: relative;
    margin-bottom: 15px;
}

#image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-image-btn:hover {
    background: #e74c3c;
}

/* Image Upload Area */
.image-upload-area {
    margin-bottom: 15px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed #444;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: #ff5000;
    color: #ff5000;
}

/* Modal Buttons */
.btn-cancel {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid #444;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255,255,255,0.05);
    color: #ccc;
}

.btn-publish {
    padding: 10px 25px;
    background: #ff5000;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-publish:hover {
    background: #ff6520;
    transform: translateY(-1px);
}

.btn-publish:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* View Post Modal */
.view-post-modal {
    max-width: 700px;
}

/* === LOADING STATES === */
.loading-posts {
    text-align: center;
    padding: 50px;
    color: #666;
}

.loading-posts i {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ff5000;
}

.loading-mini {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Load More Button */
.load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.load-more-btn:hover {
    background: rgba(255, 80, 0, 0.1);
    border-color: #ff5000;
    color: #ff5000;
}

/* === EMPTY STATES === */
.empty-feed {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-feed i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-feed h3 {
    color: #888;
    margin-bottom: 10px;
}

.empty-feed p {
    font-size: 14px;
}

/* === ANIMATIONS === */
.post-card {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .post-header {
        padding: 12px 15px;
    }
    
    .post-content {
        padding: 0 15px 12px;
    }
    
    .post-stats {
        padding: 8px 15px;
    }
    
    .post-comments {
        padding: 12px 15px;
    }
    
    .create-post-card {
        padding: 15px;
    }
    
    .feed-filters {
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .feed-filters .filter-btn {
        white-space: nowrap;
    }
    
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
}