/* =========================
   MosiV2 Reviews
========================= */

.reviews-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.reviews-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */

.reviews-header {
    text-align: center;
    margin-bottom: 45px;
}

.reviews-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(130, 80, 255, .08);
    border: 1px solid rgba(140, 90, 255, .25);
    color: #b99cff;
    font-size: 13px;
    margin-bottom: 18px;
}

.reviews-header h2 {
    margin: 0;
    font-size: 38px;
    font-weight: 800;
}

.reviews-header h2 span {
    color: #9b70ff;
}

.reviews-header p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.5);
    line-height: 1.8;
}

/* =========================
   RATING BOX
========================= */

.reviews-rating {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin-top: 28px;
    padding: 15px 22px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;

    box-shadow: 0 12px 35px rgba(0,0,0,.2);
    backdrop-filter: blur(15px);
}

.reviews-rating strong {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
}

.reviews-rating .stars {
    color: #a978ff;
    font-size: 16px;
    letter-spacing: 2px;
}

.reviews-rating small {
    display: block;
    margin-top: 3px;
    color: rgba(255,255,255,.4);
    font-size: 11px;
}

/* =========================
   FORM
========================= */

.review-form-card {
    max-width: 650px;
    margin: 0 auto 45px;
    padding: 30px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;

    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    backdrop-filter: blur(15px);
}

.review-form-card h3 {
    margin: 0 0 25px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}

.review-input-group {
    margin-bottom: 20px;
}

.review-input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

/* Inputs */

.review-input-group input,
.review-input-group textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    background: rgba(0,0,0,.2);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;

    color: #fff;
    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition: .2s;
}

.review-input-group input::placeholder,
.review-input-group textarea::placeholder {
    color: rgba(255,255,255,.3);
}

.review-input-group input:focus,
.review-input-group textarea:focus {
    border-color: rgba(145,95,255,.6);
    box-shadow: 0 0 0 3px rgba(120,70,255,.08);
}

.review-input-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* =========================
   STAR SELECTOR
========================= */

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    display: block;
    margin: 0;
    padding: 0;

    width: 38px;
    height: 38px;

    text-align: center;
    line-height: 38px;

    cursor: pointer;

    font-size: 30px;
    color: rgba(255,255,255,.18);

    transition:
        color .15s ease,
        transform .15s ease,
        text-shadow .15s ease;
}

/* وقتی موس روی ستاره میره */
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #a978ff;
    text-shadow: 0 0 12px rgba(169,120,255,.5);
}

/* وقتی انتخاب میشه:
   1 ستاره = 1
   2 ستاره = 2
   3 ستاره = 3
   4 ستاره = 4
   5 ستاره = 5
*/

.rating-input input:checked + label,
.rating-input input:checked + label ~ label {
    color: #a978ff;
    text-shadow: 0 0 12px rgba(169,120,255,.6);
}

/* =========================
   SUBMIT BUTTON
========================= */

.review-submit {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 14px;

    background: linear-gradient(
        135deg,
        #8055e8,
        #5278e8
    );

    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(100,70,220,.2);

    transition: .2s;
}

.review-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 35px rgba(100,70,220,.3);
}

.review-submit:disabled {
    opacity: .6;
    cursor: wait;
}

/* Messages */

#review-message {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
}

.success-message {
    color: #8ee6b2;
}

.error-message {
    color: #ff8f9c;
}

/* =========================
   REVIEW CARDS
========================= */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.review-card {
    padding: 23px;

    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;

    box-shadow: 0 15px 45px rgba(0,0,0,.15);

    transition: .25s;
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(150,100,255,.3);
}

.review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(130,80,255,.15);
    border: 1px solid rgba(150,100,255,.2);

    color: #c7b0ff;
    font-weight: 800;
}

.review-top strong {
    color: #fff;
    font-size: 14px;
}

.review-stars {
    margin-right: auto;
    color: #a978ff;
    font-size: 13px;
    letter-spacing: 1px;
}

.review-card p {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 2;
}

/* Empty */

.no-reviews {
    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    color: rgba(255,255,255,.4);

    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 20px;

    background: rgba(255,255,255,.02);
}

/* Footer */

.reviews-footer {
    text-align: center;
    margin-top: 30px;

    color: rgba(255,255,255,.35);
    font-size: 13px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .reviews-section {
        padding: 60px 15px;
    }

    .reviews-header h2 {
        font-size: 30px;
    }

    .reviews-rating {
        padding: 13px 18px;
    }

    .review-form-card {
        padding: 22px;
        border-radius: 20px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .rating-input {
        gap: 4px;
    }

    .rating-star label {
        width: 38px;
        height: 38px;
        font-size: 27px;
    }
}
