/* ===== FORUM COMMENTS STYLES ===== */
/* Estilos para o sistema de comentários do fórum */

.comments-modal {
    color: #fff;
}

.comments-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
}

.comments-modal-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #fff;
}

.comments-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    max-height: 60vh;
}

.post-summary {
    background: #252525;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.post-author-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.post-author-small img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
}

.time-small {
    color: #888;
    font-size: 0.8em;
    margin-left: 10px;
}

.post-excerpt-small {
    color: #ccc;
    margin: 0;
    line-height: 1.4;
    font-size: 0.9em;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}

.no-comments i {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

.comment-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.comment-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
}

.comment-author-info strong {
    display: block;
    color: #fff;
    font-size: 0.95em;
}

.comment-role {
    color: #888;
    font-size: 0.8em;
    margin-right: 8px;
}

.comment-time {
    color: #666;
    font-size: 0.8em;
}

.edited-indicator {
    color: #888;
    font-size: 0.75em;
    font-style: italic;
    margin-left: 5px;
}

.comment-actions {
    display: flex;
    gap: 5px;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.comment-action-btn:hover {
    background: #333;
    color: #fff;
}

.comment-content {
    margin: 12px 0;
    line-height: 1.6;
    color: #e0e0e0;
    font-size: 0.95em;
}

.comment-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 12px;
}

.comment-reactions {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
}

.reaction-btn:hover {
    background: #333;
    color: #fff;
    transform: scale(1.05);
}

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

.reaction-btn.liked:hover {
    background: rgba(239, 68, 68, 0.2);
}

.comment-replies {
    margin-left: 25px;
    margin-top: 15px;
    border-left: 2px solid #333;
    padding-left: 15px;
}

.reply-item {
    margin-bottom: 15px;
    padding: 12px;
    background: #222;
    border-radius: 8px;
    border: 1px solid #333;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.reply-header img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
}

.reply-author-info strong {
    margin-right: 8px;
    color: #fff;
    font-size: 0.9em;
}

.reply-time {
    color: #666;
    font-size: 0.75em;
}

.reply-content {
    color: #ddd;
    line-height: 1.5;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.reply-meta {
    display: flex;
    gap: 8px;
}

.comment-form-container, .reply-form-container {
    border-top: 1px solid #333;
    background: #1f1f1f;
}

.comment-form-container {
    padding: 20px 24px;
}

.reply-form-container {
    padding: 15px;
    margin-top: 10px;
}

.comment-form, .reply-form {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #333;
}

.form-header, .reply-form-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-header img, .reply-form-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #444;
}

.form-user-info {
    color: #ccc;
    font-size: 0.9em;
}

.comment-textarea, .reply-textarea {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.4;
    box-sizing: border-box;
}

.reply-textarea {
    min-height: 60px;
}

.comment-textarea:focus, .reply-textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.comment-textarea::placeholder, .reply-textarea::placeholder {
    color: #666;
}

.form-actions, .reply-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.form-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.tool-btn:hover {
    background: #444;
    color: #fff;
}

.char-counter, .reply-char-counter {
    color: #888;
    font-size: 0.8em;
    font-weight: 500;
}

.form-buttons, .reply-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
}

.btn-outline {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
}

.btn-outline:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

.btn-primary {
    background: #3B82F6;
    color: #fff;
    border: 1px solid #3B82F6;
}

.btn-primary:hover {
    background: #2563EB;
    border-color: #2563EB;
    transform: translateY(-1px);
}

.login-prompt {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.login-prompt-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.login-prompt-content i {
    font-size: 2em;
    opacity: 0.6;
}

.login-prompt-btn {
    margin-top: 5px;
}

.emoji-picker {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px;
    max-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.emoji-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.emoji-btn:hover {
    background: #444;
    transform: scale(1.1);
}

/* ===== NOTIFICATION PANEL ===== */
.notification-bell {
    position: relative;
}

.notification-bell:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #EF4444;
    color: #fff;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    min-width: 16px;
    text-align: center;
    line-height: 1.2;
}

.notification-panel {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.notification-panel-header {
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f1f1f;
}

.notification-panel-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mark-all-read-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    transition: all 0.2s ease;
}

.mark-all-read-btn:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

.notification-panel-content {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #333;
    position: relative;
    transition: background 0.2s ease;
    cursor: pointer;
}

.notification-item:hover {
    background: #222;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: rgba(59, 130, 246, 0.05);
}

.notification-icon {
    width: 32px;
    height: 32px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    flex-shrink: 0;
    font-size: 0.9em;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.notification-message {
    color: #ccc;
    font-size: 0.85em;
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-time {
    color: #666;
    font-size: 0.75em;
}

.unread-indicator {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #3B82F6;
    border-radius: 50%;
}

.no-notifications {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}

.notification-panel-footer {
    padding: 12px 20px;
    border-top: 1px solid #333;
    background: #1f1f1f;
    text-align: center;
}

.view-all-btn {
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
    width: 100%;
}

.view-all-btn:hover {
    background: #333;
    color: #fff;
    border-color: #555;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .comments-modal {
        margin: 10px;
        max-height: 95vh;
    }
    
    .comments-modal-header {
        padding: 16px;
    }
    
    .comments-container {
        padding: 16px;
    }
    
    .comment-form-container {
        padding: 16px;
    }
    
    .notification-panel {
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
    }
    
    .comment-replies {
        margin-left: 15px;
        padding-left: 10px;
    }
    
    .form-actions, .reply-form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-tools {
        justify-content: space-between;
    }
    
    .form-buttons, .reply-buttons {
        justify-content: stretch;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comments-modal-header h3 {
        font-size: 1em;
    }
    
    .post-author-small {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .time-small {
        margin-left: 0;
    }
    
    .comment-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .comment-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}

/* ===== SCROLLBAR CUSTOMIZADO ===== */
.comments-container::-webkit-scrollbar,
.notification-panel-content::-webkit-scrollbar {
    width: 6px;
}

.comments-container::-webkit-scrollbar-track,
.notification-panel-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.comments-container::-webkit-scrollbar-thumb,
.notification-panel-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.comments-container::-webkit-scrollbar-thumb:hover,
.notification-panel-content::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item {
    animation: fadeIn 0.3s ease;
}

.reply-item {
    animation: fadeIn 0.3s ease;
}

.notification-item {
    animation: fadeIn 0.3s ease;
}

/* ===== ESTADOS DE FOCUS ===== */
.reaction-btn:focus,
.comment-action-btn:focus,
.tool-btn:focus,
.btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.emoji-btn:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 1px;
}