/**
 * Estilos para Sistema de Reações
 * @author Maicon Souza – Jmtechnology
 */

/* Container de Reações */
.gpg-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 15px;
}

.gpg-reaction-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Botões de Reação */
.gpg-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-family: inherit;
}

.gpg-reaction-btn:hover {
    border-color: #ccc;
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gpg-reaction-btn:active {
    transform: scale(0.95);
}

.gpg-reaction-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.gpg-reaction-btn .emoji {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.gpg-reaction-btn:hover .emoji {
    transform: scale(1.2);
}

.gpg-reaction-btn.active .emoji {
    animation: gpg-bounce 0.4s ease;
}

.gpg-reaction-btn .count {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    min-width: 12px;
}

.gpg-reaction-btn.active .count {
    color: #667eea;
}

/* Animação de bounce */
@keyframes gpg-bounce {

    0%,
    100% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.3);
    }

    60% {
        transform: scale(0.9);
    }
}

/* Loading state */
.gpg-reaction-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.gpg-reaction-btn.loading .emoji {
    animation: gpg-pulse 0.8s infinite;
}

@keyframes gpg-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .gpg-reactions {
        border-color: rgba(255, 255, 255, 0.1);
    }

    .gpg-reaction-btn {
        background: #2a2a2a;
        border-color: #444;
        color: #fff;
    }

    .gpg-reaction-btn:hover {
        background: #333;
        border-color: #555;
    }

    .gpg-reaction-btn.active {
        border-color: #667eea;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    }

    .gpg-reaction-btn .count {
        color: #aaa;
    }
}

/* Seção de Comentários Customizada */
.gpg-comments-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.gpg-comments-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gpg-comments-section h3::before {
    content: '💬';
}

/* Formulário de Comentário Melhorado */
.gpg-comments-section .comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.gpg-comments-section .comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.gpg-comments-section .comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.gpg-comments-section .form-submit input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.gpg-comments-section .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Lista de Comentários */
.gpg-comments-section .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gpg-comments-section .comment {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.gpg-comments-section .comment:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.gpg-comments-section .comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.gpg-comments-section .comment-body {
    flex: 1;
}

.gpg-comments-section .comment-author-name {
    font-weight: 600;
    color: #333;
}

.gpg-comments-section .comment-date {
    font-size: 12px;
    color: #888;
}

.gpg-comments-section .comment-content {
    margin-top: 8px;
    line-height: 1.6;
}

/* Responsivo */
@media (max-width: 480px) {
    .gpg-reaction-buttons {
        gap: 4px;
    }

    .gpg-reaction-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .gpg-reaction-btn .emoji {
        font-size: 16px;
    }
}