/* ============================================================
   COMMON REVIEWS STYLES
   Designed for Book My Event Premium UI - V3.0
============================================================ */

.review-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #ffffff);
}

.review-list {
    max-height: 800px;
    overflow-y: auto;
    padding-right: 20px;
    margin-bottom: 20px;
}

/* Custom Scrollbar */
.review-list::-webkit-scrollbar {
    width: 5px;
}

.review-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.review-list::-webkit-scrollbar-thumb {
    background: #ea2b33;
    border-radius: 10px;
}

.review-item {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.review-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(234, 43, 51, 0.1);
}

.review-card-inner {
    padding: 30px;
}

.review-user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.review-user-name {
    font-size: 18px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
}

.review-badge {
    font-size: 11px;
    font-weight: 700;
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    padding: 4px 10px;
    border-radius: 30px;
    text-transform: uppercase;
}

.review-meta {
    margin-top: 4px;
}

.review-star-rating {
    color: #ffc107;
    font-size: 13px;
    display: flex;
    gap: 2px;
}

.review-post-date {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.dot-separator {
    color: #ccc;
    font-size: 10px;
}

.review-user-comment {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    font-weight: 500;
}

/* Write Review Card - Premium Redesign */
.write-review-card {
    background: #ffffff;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    position: sticky;
    top: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05) !important;
}

.write-review-card h4 {
    font-size: 24px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.5px;
}

.rating-stars {
    display: flex;
    gap: 12px;
    font-size: 32px;
    color: #eee;
    margin: 20px 0;
}

.rating-stars i {
    cursor: pointer;
    transition: all 0.25s ease;
}

.rating-stars i.active {
    color: #ffc107;
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.3));
    transform: scale(1.15);
}

.rating-stars i:hover {
    transform: scale(1.25);
    color: #ffc107;
}

.submit-review-btn {
    background: linear-gradient(135deg, #f02d34 0%, #d81b22 100%);
    border: none;
    padding: 18px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(234, 43, 51, 0.25);
    color: #fff;
}

.submit-review-btn:hover {
    background: linear-gradient(135deg, #d81b22 0%, #b3141a 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(234, 43, 51, 0.35);
}

.review-empty {
    text-align: center;
    padding: 34px 40px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    border: 2px dashed #eee;
    color: #999;
}

@media (max-width: 991px) {
    .write-review-card {
        position: static;
        /* margin-top: 40px; */
        margin-top: 6px;
        margin-bottom: -50px;
    }
}

/* Toast Notification - Premium Top-Right Style */
#reviewToast {
    position: fixed;
    top: 30px;
    right: 30px;
    transform: translateX(120%);
    background: #ffffff;
    color: #111;
    padding: 16px 28px;
    border-radius: 16px;
    z-index: 10000;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    visibility: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 5px solid #2ecc71;
    /* Success Green Accent */
}

#reviewToast.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}
/* ==========================================================
   MOBILE REVIEW UI (APP STYLE)
   ========================================================== */

@media (max-width: 768px) {

    /* Make review list full width */
    .review-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .review-list {
        padding-right: 0;
        max-height: none;
    }

    /* Reduce review card size */
    .review-item {
        border-radius: 16px;
        margin-bottom: 12px !important;
    }

    .review-card-inner {
        padding: 14px;
    }

    /* Avatar smaller */
    .review-user-avatar {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    /* Username smaller */
    .review-user-name {
        font-size: 14px;
        font-weight: 700;
    }

    /* Badge one line */
    .review-badge {
        font-size: 9px;
        padding: 2px 8px;
        white-space: nowrap;
        border-radius: 20px;
    }

    /* Reduce star size */
    .review-star-rating {
        font-size: 11px;
        gap: 1px;
    }

    /* Date smaller */
    .review-post-date {
        font-size: 11px;
    }

    /* Comment text */
    .review-user-comment {
        font-size: 13px;
        line-height: 1.4;
        margin-top: 6px;
    }

    /* Reduce header gap */
    .review-header {
        gap: 10px !important;
    }

    /* Equal spacing between review cards */
    .review-list .review-item:last-child {
        margin-bottom: 0;
    }

}


/* Owner Reply Styling */
.review-owner-reply {
    position: relative;
    transition: all 0.3s ease;
}

.review-owner-reply:hover {
    background-color: #f1f3f5 !important;
    transform: translateX(5px);
}

.review-owner-reply .bi-reply-fill {
    transform: scaleX(-1);
    display: inline-block;
}

.review-owner-reply p {
    line-height: 1.6;
    color: #444;
    font-weight: 500;
    white-space: pre-line; /* Preserves line breaks from the vendor panel */
}

@media (max-width: 576px) {
    .review-owner-reply {
        margin-left: 10px !important;
        padding: 12px !important;
    }
}

