/* EasyWPKit Comments Frontend Styles */
.ewp-comments {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.ewp-comments-list {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
}

.ewp-comment {
    margin-bottom: 20px;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s;
}

.ewp-comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ewp-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ewp-comment-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.ewp-comment-author img {
    border-radius: 50%;
}

.ewp-comment-time {
    font-size: 0.85em;
    color: #888;
}

.ewp-comment-content {
    margin-bottom: 10px;
    word-break: break-word;
}

/* Кнопки лайков/дизлайков */
.ewp-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.ewp-like, .ewp-dislike {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s, color 0.15s;
}

.ewp-like:hover, .ewp-dislike:hover {
    background: #f5f5f5;
}

.ewp-like.active {
    color: #065fd4; /* цвет YouTube */
    background: #e8f0fe;
}

.ewp-dislike.active {
    color: #c00;
    background: #fce8e8;
}

.ewp-likes-count, .ewp-dislikes-count {
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Кнопка ответа */
.ewp-comment-reply-link {
    margin-left: auto;
    font-size: 13px;
    text-decoration: none;
    color: #065fd4;
    font-weight: 500;
}

.ewp-comment-reply-link:hover {
    text-decoration: underline;
}

/* Пагинация */
.ewp-comments-pagination {
    margin: 20px 0;
    text-align: center;
}

/* Форма подписки */
.ewp-subscribe {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ewp-subscribe h4 {
    margin: 0 0 12px;
    font-size: 16px;
}

.ewp-subscribe-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ewp-subscribe-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.ewp-subscribe-form button {
    padding: 10px 20px;
    background: #065fd4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.ewp-subscribe-form button:hover {
    background: #004bb5;
}

/* Форма комментария */
.ewp-comment-form {
    margin-top: 30px;
}

.ewp-comment-form p {
    margin-bottom: 15px;
}

.ewp-comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.ewp-comment-form input[type="text"],
.ewp-comment-form input[type="email"],
.ewp-comment-form input[type="url"],
.ewp-comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

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

/* Социальные кнопки (заглушка) */
.ewp-social-login {
    margin-bottom: 15px;
}

.ewp-social-buttons {
    display: flex;
    gap: 8px;
}

.ewp-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.ewp-social-btn:hover {
    opacity: 0.85;
}

.ewp-social-btn.google { background: #db4437; }
.ewp-social-btn.vk { background: #4a76a8; }
.ewp-social-btn.github { background: #333; }
.ewp-social-btn.facebook { background: #1877f2; }
.ewp-social-btn.instagram { background: #e4405f; }
.ewp-social-btn.x { background: #000; }

/* Загрузка изображений */
.ewp-comment-image-upload {
    margin-bottom: 10px;
}

.ewp-uploaded-image {
    max-width: 100%;
    margin-top: 10px;
    border-radius: 4px;
}

/* Капча */
.ewp-captcha-container {
    margin: 15px 0;
}

/* Сообщение о модерации */
.ewp-moderation {
    font-style: italic;
    color: #999;
}