/* Disqus-Like Comments System - Tema Oscuro */

.dlc-comments-wrapper {
    max-width: 100%;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
}

.dlc-comments-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    text-align: center;
}

.dlc-comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    display: inline-block;
    background: transparent;
    padding: 0;
}

.dlc-comment-count {
    color: #888;
    font-weight: 400;
}

/* --- Reacciones al Post (What do you think?) --- */
.dlc-post-reactions-container {
    text-align: center;
    margin-bottom: 30px;
    background: #222;
    padding: 20px;
    border-radius: 8px;
    color: white;
    border: 1px solid #333;
}

.dlc-post-reactions-title,
.dlc-post-reactions-container .dlc-post-reactions-title,
.manga-extra-info .dlc-post-reactions-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #fff !important;
}

.dlc-post-reactions-response {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 20px;
}

.dlc-post-reactions-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dlc-post-reaction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0.7;
}

.dlc-post-reaction-item:hover {
    transform: scale(1.1);
    opacity: 1;
}

.dlc-post-reaction-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.dlc-post-reaction-item.active .dlc-post-reaction-label {
    color: #ffd700;
    font-weight: bold;
}

.dlc-post-reaction-emoji {
    font-size: 32px;
    margin-bottom: 5px;
    line-height: 1;
}

.dlc-post-reaction-count {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.dlc-post-reaction-label {
    font-size: 12px;
    color: #ccc;
    margin-top: 2px;
}
/* ---------------------------------------------- */

/* Login to comment */
.dlc-login-to-comment {
    background: #222;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #333;
}

.dlc-login-btn,
body.text-ui-light .dlc-login-btn,
body.text-ui-light a.dlc-login-btn:not(:hover) {
    display: inline-block;
    background: #ffffff;
    color: #000 !important;
    padding: 12px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
}

.dlc-login-btn:hover,
body.text-ui-light .dlc-login-btn:hover {
    background: #f0f0f0;
    color: #000 !important;
    text-decoration: none;
}

/* Formulario de comentarios */
.dlc-comment-form-section {
    margin-bottom: 30px;
}

.dlc-comment-form {
    background: #222;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.dlc-form-row {
    margin-bottom: 15px;
}

.dlc-form-row input {
    margin-right: 10px;
}

.dlc-input {
    width: calc(50% - 5px);
    padding: 10px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    background: #2a2a2a;
    color: #fff;
    transition: border-color 0.2s;
}

.dlc-input:focus {
    outline: none;
    border-color: #666;
    box-shadow: none;
}

.dlc-input::placeholder {
    color: #888;
}

.dlc-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    background: #2a2a2a;
    color: #fff;
    transition: border-color 0.2s;
}

.dlc-textarea:focus {
    outline: none;
    border-color: #666;
    box-shadow: none;
}

.dlc-textarea::placeholder {
    color: #888;
}

/* Honeypot anti-spam - oculto para usuarios, visible para bots */
.dlc-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.dlc-form-actions {
    display: flex;
    gap: 10px;
}

.dlc-submit-btn {
    background: #f0b90b;
    color: #000;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.dlc-submit-btn:hover {
    background: #d4a30a;
}

.dlc-submit-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
}

.dlc-cancel-btn {
    background: #333;
    color: #ccc;
    padding: 10px 24px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.dlc-cancel-btn:hover {
    background: #444;
    color: #fff;
}

.dlc-form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.dlc-form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: #5cb85c;
    border: 1px solid #28a745;
    display: block;
}

.dlc-form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: #f56565;
    border: 1px solid #dc3545;
    display: block;
}

/* Lista de comentarios */
.dlc-comments-list {
    margin-top: 20px;
}

.dlc-no-comments {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px 20px;
}

.dlc-comment {
    display: flex;
    margin-bottom: 15px;
    padding: 15px;
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.dlc-comment:hover {
    border-color: #444;
}

.dlc-comment-avatar {
    flex-shrink: 0;
    margin-right: 15px;
}

.dlc-comment-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.dlc-comment-body {
    flex: 1;
    min-width: 0;
}

.dlc-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dlc-comment-author {
    font-weight: 600;
    color: #00f473;
    font-size: 14px;
}

.dlc-comment-author.is-admin {
    color: #e8917d;
}

.dlc-admin-badge {
    background: #e8917d;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-left: 5px;
}

.dlc-comment-date {
    font-size: 12px;
    color: #888;
}

.dlc-comment-content {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.dlc-comment-content p {
    margin: 0 0 10px 0;
}

.dlc-comment-content p:last-child {
    margin-bottom: 0;
}

/* Acciones del comentario */
.dlc-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dlc-reply-btn,
.dlc-edit-btn,
.dlc-delete-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.dlc-reply-btn:hover,
.dlc-edit-btn:hover {
    background: #333;
    color: #fff;
}

.dlc-delete-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #f56565;
}

/* Sistema de Votos Arriba/Abajo */
.dlc-vote-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

.dlc-vote-btn {
    background: transparent;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    border-radius: 4px;
    transition: all 0.2s;
    line-height: 1;
    text-decoration: none;
    opacity: 0.6;
}

.dlc-vote-btn:hover {
    background: #333;
    opacity: 1;
    text-decoration: none;
}

.dlc-upvote:hover,
.dlc-upvote.active {
    opacity: 1;
}

.dlc-downvote:hover,
.dlc-downvote.active {
    opacity: 1;
}

.dlc-vote-score {
    font-size: 14px;
    font-weight: 600;
    color: #888;
    min-width: 20px;
    text-align: center;
}

.dlc-vote-score.positive {
    color: #5cb85c;
}

.dlc-vote-score.negative {
    color: #f56565;
}

/* Respuestas anidadas */
.dlc-comment-children {
    margin-left: 60px;
    margin-top: 15px;
}

.dlc-comment[data-depth="5"] .dlc-reply-btn {
    display: none;
}

.dlc-reply-form-container {
    margin-top: 15px;
}

.dlc-reply-form-container .dlc-comment-form {
    background: #2a2a2a;
    padding: 15px;
}

/* Widget de comentarios recientes */
.dlc-recent-comments-widget {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dlc-widget-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.dlc-widget-comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dlc-widget-comment-avatar img {
    border-radius: 50%;
}

.dlc-widget-comment-content {
    flex: 1;
    font-size: 13px;
}

.dlc-widget-comment-content strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.dlc-widget-comment-content p {
    margin: 0 0 5px 0;
    color: #888;
    line-height: 1.4;
}

.dlc-widget-comment-content a {
    color: #f0b90b;
    text-decoration: none;
    font-size: 12px;
}

.dlc-widget-comment-content a:hover {
    text-decoration: underline;
    color: #d4a30a;
}

/* Modo de edición */
.dlc-comment.editing .dlc-comment-content {
    display: none;
}

.dlc-comment.editing .dlc-comment-actions {
    display: none;
}

.dlc-edit-form {
    margin-top: 10px;
}

.dlc-edit-form .dlc-textarea {
    background: #2a2a2a;
}

/* Responsive */
@media (max-width: 768px) {
    .dlc-comment-children {
        margin-left: 30px;
    }
    
    .dlc-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .dlc-comment {
        padding: 10px;
    }
    
    .dlc-comment-avatar {
        margin-right: 10px;
    }
    
    .dlc-comment-avatar img {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .dlc-comment-children {
        margin-left: 15px;
    }
    
    .dlc-comments-title {
        font-size: 20px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dlc-comment.new {
    animation: fadeIn 0.3s ease-out;
}

/* Loading state */
.dlc-loading {
    text-align: center;
    padding: 20px;
    color: #888;
}

.dlc-loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
