/**
 * Article Helpful Widget Styles
 *
 * Styles for the "Was this Article Helpful?" widget
 *
 * @package Voxel_Toolkit
 * @since 1.4.0
 */

/* Main wrapper */
.voxel-article-helpful-wrapper {
    display: block;
    max-width: 100%;
    box-sizing: border-box;
}

/* Heading */
.voxel-article-helpful-heading {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* Button container */
.voxel-article-helpful-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Buttons */
.voxel-helpful-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
    box-shadow: none !important;
    transform: none !important;
}

/* Yes button */
.voxel-helpful-btn.yes-btn {
    background-color: #46b450;
    color: #ffffff;
}

.voxel-helpful-btn.yes-btn:hover {
    background-color: #399e42;
    box-shadow: none !important;
    transform: none !important;
}

/* No button */
.voxel-helpful-btn.no-btn {
    background-color: #dc3232;
    color: #ffffff;
}

.voxel-helpful-btn.no-btn:hover {
    background-color: #c42525;
    box-shadow: none !important;
    transform: none !important;
}

/* Disabled state */
.voxel-helpful-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Active state (voted) */
.voxel-helpful-btn.yes-btn.active {
    background-color: #399e42;
    box-shadow: none !important;
    transform: none !important;
}

.voxel-helpful-btn.no-btn.active {
    background-color: #c42525;
    box-shadow: none !important;
    transform: none !important;
}

/* Button icons */
.voxel-helpful-btn .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    width: 18px;
    height: 18px;
}

.voxel-helpful-btn .btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.voxel-helpful-btn .btn-icon svg path {
    fill: currentColor;
}

/* Success message */
.voxel-helpful-success {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #46b450;
    padding: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .voxel-article-helpful-heading {
        font-size: 16px;
    }

    .voxel-helpful-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .voxel-article-helpful-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .voxel-article-helpful-buttons {
        flex-direction: column;
        width: 100%;
    }

    .voxel-helpful-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Admin column styles */
.voxel-helpful-stats {
    font-size: 13px;
    line-height: 1.6;
}

.voxel-helpful-stats .helpful-yes,
.voxel-helpful-stats .helpful-no {
    font-weight: 500;
}

.voxel-helpful-stats small {
    color: #666;
    font-size: 12px;
}
