/* ============================================
   NGC Comment Styler - NewGearCars
   Color corporativo: #E10600
   ============================================ */

/* --- SECCIÓN DE COMENTARIOS EXISTENTES --- */
.comments-area {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.comments-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #E10600;
}

/* Lista de comentarios */
.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 2rem 0 !important;
}

.comment-list .comment {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fafafa;
    border-radius: 10px;
    border-left: 4px solid #E10600;
    list-style: none;
}

.comment-list .comment .comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-list .comment .comment-author img.avatar {
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

.comment-list .comment .comment-author .fn {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.comment-list .comment .comment-metadata {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
}

.comment-list .comment .comment-metadata a {
    color: #888;
    text-decoration: none;
}

.comment-list .comment .comment-content p {
    color: #333;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.comment-list .comment .reply a {
    font-size: 0.8rem;
    color: #E10600;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    display: inline-block;
}

.comment-list .comment .reply a:hover {
    text-decoration: underline;
}

/* Respuestas anidadas */
.comment-list .children {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin: 0 !important;
}

.comment-list .children .comment {
    border-left-color: #ccc;
    background: #f5f5f5;
}

/* --- FORMULARIO DE COMENTARIOS --- */
.comment-respond {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
}

.comment-respond .comment-reply-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.25rem 0;
    padding-left: 14px;
    border-left: 4px solid #E10600;
}

.comment-respond .comment-reply-title small {
    display: block;
    margin-top: 0.5rem;
}

.comment-respond .comment-reply-title small a {
    color: #E10600;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Texto informativo */
.comment-respond .logged-in-as,
.comment-respond .comment-notes {
    font-size: 0.85rem;
    color: #777;
    margin: 0.75rem 0 1.5rem 0;
    line-height: 1.5;
}

.comment-respond .logged-in-as a {
    color: #E10600;
    text-decoration: none;
    font-weight: 600;
}

.comment-respond .logged-in-as a:hover {
    text-decoration: underline;
}

/* Labels */
.comment-respond .comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Inputs y Textarea */
.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
    width: 100% !important;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.comment-respond .comment-form input[type="text"]:focus,
.comment-respond .comment-form input[type="email"]:focus,
.comment-respond .comment-form input[type="url"]:focus,
.comment-respond .comment-form textarea:focus {
    outline: none;
    border-color: #E10600;
    box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1);
    background: #fff;
}

.comment-respond .comment-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.comment-respond .comment-form p {
    margin-bottom: 1rem;
}

/* Checkbox cookies */
.comment-respond .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.comment-respond .comment-form-cookies-consent input[type="checkbox"] {
    accent-color: #E10600;
    width: 16px;
    height: 16px;
}

/* BOTÓN PUBLICAR */
.comment-respond .comment-form .form-submit {
    margin-top: 0.75rem;
}

.comment-respond .comment-form .form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem;
    background: #E10600;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
}

.comment-respond .comment-form .form-submit input[type="submit"]:hover {
    background: #c40500;
    box-shadow: 0 4px 14px rgba(225, 6, 0, 0.3);
    transform: translateY(-1px);
}

.comment-respond .comment-form .form-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(225, 6, 0, 0.2);
}

/* Sin comentarios */
.no-comments,
.comments-area > p {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding: 2rem;
}

/* Ocultar campo URL (reduce spam) */
.comment-respond .comment-form .comment-form-url {
    display: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .comment-respond {
        padding: 1.25rem;
        margin: 1.5rem 0.75rem;
        border-radius: 10px;
    }

    .comment-respond .comment-reply-title {
        font-size: 1.1rem;
    }

    .comment-respond .comment-form textarea {
        min-height: 120px;
    }

    .comment-respond .comment-form .form-submit input[type="submit"] {
        width: 100%;
        padding: 1rem;
    }

    .comment-list .comment {
        padding: 1rem;
    }

    .comment-list .children {
        padding-left: 0.75rem !important;
    }

    .comments-area {
        padding: 0 0.5rem;
    }
}
