/**
 * Jungle Bijoux Reviews Plugin Styles
 * Version: 1.0.2
 * Author: Kaizix - https://kaizix.fr
 */

/* ========================================
   Badge Styles
   ======================================== */
.jungle-bijoux-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #FF6B6B;
    color: #FFFFFF;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1;
}

.jungle-bijoux-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.jungle-bijoux-badge-stars {
    display: flex;
    gap: 2px;
}

.jungle-bijoux-badge-star {
    font-size: 12px;
}

/* ========================================
   Modal/Popup Styles
   ======================================== */
.jungle-bijoux-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: jungleBijouxFadeIn 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.jungle-bijoux-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.jungle-bijoux-modal-content {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: jungleBijouxSlideUp 0.3s ease;
}

.jungle-bijoux-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #EEEEEE;
    flex-shrink: 0;
}

.jungle-bijoux-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333333;
    margin: 0;
    padding: 0;
}

.jungle-bijoux-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999999;
    transition: color 0.2s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.jungle-bijoux-modal-close:hover {
    color: #333333;
    background-color: #F5F5F5;
}

.jungle-bijoux-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* ========================================
   Reviews Grid
   ======================================== */
.jungle-bijoux-reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.jungle-bijoux-review-card {
    padding: 16px;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: #FFFFFF;
}

.jungle-bijoux-review-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jungle-bijoux-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}

.jungle-bijoux-review-header strong {
    font-size: 14px;
    color: #333333;
}

.jungle-bijoux-verified-badge {
    display: inline-block;
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.jungle-bijoux-review-date {
    font-size: 12px;
    color: #999999;
    margin-bottom: 8px;
}

.jungle-bijoux-review-rating {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #FFC107;
}

.jungle-bijoux-review-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    margin: 8px 0;
    padding: 0;
}

.jungle-bijoux-review-text {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 8px 0;
}

.jungle-bijoux-review-product {
    font-size: 12px;
    color: #999999;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #EEEEEE;
}

/* ========================================
   Response from shop
   ======================================== */
.jungle-bijoux-review-response {
    margin-top: 12px;
    padding: 12px;
    background-color: #F8F9FA;
    border-left: 3px solid #FF6B6B;
    border-radius: 0 8px 8px 0;
}

.jungle-bijoux-review-response-header {
    margin-bottom: 6px;
    font-size: 12px;
    color: #555555;
}

.jungle-bijoux-review-response-header strong {
    font-size: 12px;
    color: #555555;
}

.jungle-bijoux-review-response-text {
    font-size: 13px;
    color: #666666;
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   Loading
   ======================================== */
.jungle-bijoux-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
    font-size: 14px;
}

/* ========================================
   Pagination
   ======================================== */
.jungle-bijoux-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 20px 0 0 0;
    border-top: 1px solid #EEEEEE;
    flex-wrap: wrap;
}

.jungle-bijoux-pagination button {
    padding: 8px 12px;
    border: 1px solid #DDDDDD;
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.jungle-bijoux-pagination button:hover:not(:disabled):not(.active) {
    background-color: #F5F5F5;
}

.jungle-bijoux-pagination button.active {
    background-color: #FF6B6B;
    color: #FFFFFF;
    border-color: #FF6B6B;
}

.jungle-bijoux-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.jungle-bijoux-pagination-dots {
    padding: 8px 4px;
    color: #999999;
    font-size: 12px;
}

/* No Reviews */
.jungle-bijoux-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
    font-size: 14px;
}

/* ========================================
   Animations
   ======================================== */
@keyframes jungleBijouxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jungleBijouxSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes jungleBijouxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .jungle-bijoux-badge {
        padding: 10px 14px;
        font-size: 12px;
        bottom: 15px;
        right: 15px;
    }
    
    .jungle-bijoux-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .jungle-bijoux-modal-header {
        padding: 16px;
    }
    
    .jungle-bijoux-modal-body {
        padding: 16px;
    }
    
    .jungle-bijoux-review-card {
        padding: 12px;
    }
    
    .jungle-bijoux-review-title {
        font-size: 14px;
    }
    
    .jungle-bijoux-review-text {
        font-size: 13px;
    }
    
    .jungle-bijoux-pagination {
        gap: 4px;
    }
    
    .jungle-bijoux-pagination button {
        padding: 6px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .jungle-bijoux-badge {
        padding: 8px 12px;
        font-size: 11px;
        bottom: 10px;
        right: 10px;
    }
    
    .jungle-bijoux-badge-star {
        font-size: 10px;
    }
    
    .jungle-bijoux-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
    }
    
    .jungle-bijoux-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .jungle-bijoux-review-response {
        padding: 10px;
    }
}
