/* ===== FORUM ENHANCED STYLES ===== */
/* Estilos adicionais para o sistema de fórum melhorado */

/* ===== POST ACTIONS ===== */
.post-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #888);
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
}

.action-btn:hover {
    background: var(--surface-color, rgba(255,255,255,0.1));
    color: var(--text-primary, #fff);
    transform: scale(1.05);
}

.action-btn.liked {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.action-btn.liked:hover {
    color: #DC2626;
    background: rgba(239, 68, 68, 0.2);
}

/* ===== POST MODAL ===== */
.post-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.post-modal {
    background: var(--bg-primary, #1a1a1a);
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    color: var(--text-primary, #ffffff);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color, #333);
}

.post-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color, #333);
}

.post-modal-header h2 {
    margin: 0;
    color: var(--text-primary, #ffffff);
    font-size: 1.4em;
    flex: 1;
    margin-right: 20px;
    line-height: 1.3;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #888);
    font-size: 1.2em;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--surface-color, #333);
    color: var(--text-primary, #fff);
}

.post-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-secondary, #252525);
    border-radius: 8px;
    border: 1px solid var(--border-color, #333);
}

.post-author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color, #333);
}

.post-author-info .role {
    color: var(--text-muted, #888);
    font-size: 0.9em;
    display: block;
    margin-top: 2px;
}

.post-author-info .time {
    color: var(--text-muted, #666);
    font-size: 0.8em;
    display: block;
    margin-top: 2px;
}

.post-full-content {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-secondary, #e0e0e0);
}

.post-modal-stats {
    display: flex;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color, #333);
    color: var(--text-muted, #888);
    font-size: 0.9em;
}

.post-modal-stats i {
    margin-right: 5px;
    opacity: 0.8;
}

/* ===== NOTIFICAÇÕES ===== */
.forum-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    z-index: 10001;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 350px;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.forum-notification-success {
    background: #10B981;
    border-color: #059669;
}

.forum-notification-error {
    background: #EF4444;
    border-color: #DC2626;
}

.forum-notification-warning {
    background: #F59E0B;
    color: #1F2937;
    border-color: #D97706;
}

.forum-notification-info {
    background: #3B82F6;
    border-color: #2563EB;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.notification-close {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: opacity 0.2s ease;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== MELHORIAS NO POST CARD ===== */
.forum-post {
    transition: all 0.3s ease;
    cursor: pointer;
}

.forum-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.forum-post .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.forum-post .post-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.forum-post .post-time {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted, #888);
    font-size: 0.85em;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .post-modal {
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
    }
    
    .post-modal-header h2 {
        font-size: 1.2em;
    }
    
    .post-author-info {
        padding: 12px;
        gap: 10px;
    }
    
    .post-author-info img {
        width: 40px;
        height: 40px;
    }
    
    .post-modal-stats {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .forum-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .action-btn {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
    }
    
    .post-actions {
        gap: 6px;
    }
}

/* ===== MELHORIAS NA ACESSIBILIDADE ===== */
.action-btn:focus {
    outline: 2px solid var(--accent-color, #3B82F6);
    outline-offset: 2px;
}

.modal-close-btn:focus {
    outline: 2px solid var(--accent-color, #3B82F6);
    outline-offset: 2px;
}

.notification-close:focus {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: 1px;
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.forum-notification.show {
    animation: slideInRight 0.3s ease;
}

.forum-notification.hide {
    animation: slideOutRight 0.3s ease;
}

.post-modal {
    animation: fadeInModal 0.3s ease;
}

/* ===== MELHORIAS NO TEMA ESCURO ===== */
.post-modal-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.post-modal {
    background: #1a1a1a;
    border: 1px solid #333;
}

.post-author-info {
    background: #252525;
    border: 1px solid #333;
}

.forum-notification {
    backdrop-filter: blur(10px);
}

/* ===== INDICADORES DE ESTADO ===== */
.action-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.action-btn.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 4px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}