/*
|--------------------------------------------------------------------------
| Helpful System
|--------------------------------------------------------------------------
*/

.dm-helpful-system {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

    margin-top: 28px;

    padding-top: 26px;

    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* --------------------------------------------------------------------------
   Buttons
-------------------------------------------------------------------------- */

.dm-helpful-button,
.dm-not-helpful-button {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    min-width: 190px;

    height: 56px;

    padding: 0 18px;

    border: 1px solid rgba(139, 92, 246, 0.12);

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    color: #e5e7eb;

    cursor: pointer;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;

    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/* --------------------------------------------------------------------------
   Hover
-------------------------------------------------------------------------- */

.dm-helpful-button:hover,
.dm-not-helpful-button:hover {
    transform: translateY(-3px);

    border-color: #8b5cf6;

    background: rgba(139, 92, 246, 0.12);

    color: #ffffff;

    box-shadow: 0 16px 34px rgba(139, 92, 246, 0.2);
}

/* --------------------------------------------------------------------------
   Active
-------------------------------------------------------------------------- */

.dm-helpful-button:active,
.dm-not-helpful-button:active {
    transform: scale(0.96);
}

/* --------------------------------------------------------------------------
   Icons
-------------------------------------------------------------------------- */

.dm-helpful-icon {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 26px;

    height: 26px;

    flex-shrink: 0;

    color: #a78bfa;

    transition: all 0.25s ease;
}
.dm-helpful-icon svg {
    width: 22px;

    height: 22px;

    stroke: currentColor;

    stroke-width: 2.2;

    fill: none;

    transition: all 0.25s ease;
}

/*
|--------------------------------------------------------------------------
| Labels
|--------------------------------------------------------------------------
*/

.dm-helpful-label {
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Counter
|--------------------------------------------------------------------------
*/

.dm-helpful-count {
    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 34px;

    height: 28px;

    padding: 0 12px;

    margin-left: auto;

    border-radius: 999px;

    border: 1px solid rgba(139, 92, 246, 0.18);

    background: rgba(139, 92, 246, 0.1);

    color: #c4b5fd;

    font-size: 13px;

    font-weight: 700;

    transition: all 0.25s ease;
}

.dm-helpful-button:hover .dm-helpful-icon,
.dm-not-helpful-button:hover .dm-helpful-icon {
    color: #c4b5fd;
}

.dm-helpful-button:hover .dm-helpful-count,
.dm-not-helpful-button:hover .dm-helpful-count {
    background: #8b5cf6;

    color: #fff;
}
/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .dm-helpful-system {
        justify-content: center;
    }

    .dm-helpful-button,
    .dm-not-helpful-button {
        flex: 1 1 calc(50% - 10px);

        justify-content: center;
    }
}

/*==========================================================================
    Helpful Active
==========================================================================*/

.dm-helpful-button.is-active {
    background: rgba(34, 197, 94, 0.1);

    border-color: #22c55e;

    color: #22c55e;

    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.18);
}

.dm-helpful-button.is-active .dm-helpful-icon {
    color: #22c55e;
}

.dm-helpful-button.is-active .dm-helpful-count {
    background: #22c55e;

    border-color: #22c55e;

    color: #fff;
}

/*==========================================================================
    Not Helpful Active
==========================================================================*/

.dm-not-helpful-button.is-active {
    background: rgba(239, 68, 68, 0.1);

    border-color: #ef4444;

    color: #ef4444;

    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.18);
}

.dm-not-helpful-button.is-active .dm-helpful-icon {
    color: #ef4444;
}

.dm-not-helpful-button.is-active .dm-helpful-count {
    background: #ef4444;

    border-color: #ef4444;

    color: #fff;
}

/*==========================================================================
    Toast
==========================================================================*/

.dm-helpful-system {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

    margin-top: 28px;

    padding-top: 26px;

    border-top: 1px solid rgba(139, 92, 246, 0.1);
}

.dm-helpful-toast.show {
    opacity: 1;

    visibility: visible;

    transform: translateX(-50%) translateY(0);
}

.dm-helpful-toast.success {
    background: #22c55e;
}

.dm-helpful-toast.warning {
    background: #8b5cf6;
}

.dm-helpful-toast.error {
    background: #ef4444;
}
