/**
 * Room Reviews Styles
 * File: assets/css/reviews.css
 */

/* Main Container */
.rrs-reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   RATING SUMMARY SECTION
======================================== */

.rrs-rating-summary {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.rrs-rating-summary-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
}

/* Overall Rating */
.rrs-overall-rating {
    text-align: center;
    padding: 20px;
}

.rrs-rating-number {
    font-size: 72px;
    font-weight: 700;
    color: #222;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.rrs-rating-stars {
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: 4px;
}

.rrs-rating-count {
    font-size: 16px;
    color: #717171;
    font-weight: 500;
}

/* Rating Distribution */
.rrs-rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rrs-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rrs-rating-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    min-width: 50px;
}

.rrs-rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rrs-rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFB800 0%, #FFA000 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.rrs-rating-count-small {
    font-size: 14px;
    color: #717171;
    min-width: 30px;
    text-align: right;
}

/* ========================================
   REVIEWS LIST SECTION
======================================== */

.rrs-reviews-section {
    margin-bottom: 60px;
}

.rrs-reviews-heading {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
}

.rrs-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* No Reviews State */
.rrs-no-reviews {
    text-align: center;
    padding: 80px 20px;
    background: #f7f7f7;
    border-radius: 16px;
}

.rrs-no-reviews-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.rrs-no-reviews h4 {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.rrs-no-reviews p {
    font-size: 16px;
    color: #717171;
    margin: 0;
}

/* Review Card */
.rrs-review-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #ebebeb;
    transition: all 0.3s ease;
}

.rrs-review-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Review Header */
.rrs-review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rrs-reviewer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.rrs-reviewer-info {
    flex: 1;
}

.rrs-reviewer-name {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.rrs-review-meta {
    font-size: 14px;
    color: #717171;
}

.rrs-review-rating {
    font-size: 20px;
}

/* Review Content */
.rrs-review-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 12px 0;
}

.rrs-review-text {
    font-size: 16px;
    line-height: 1.6;
    color: #484848;
}

/* Stars */
.rrs-stars {
    display: inline-flex;
    gap: 2px;
}

.rrs-star {
    display: inline-block;
}

.rrs-star-filled {
    color: #FFB800;
}

.rrs-star-empty {
    color: #e0e0e0;
}

.rrs-stars-small {
    font-size: 16px;
}

.rrs-stars-medium {
    font-size: 20px;
}

.rrs-stars-large {
    font-size: 24px;
}

/* ========================================
   REVIEW FORM SECTION
======================================== */

.rrs-review-form-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.rrs-form-heading {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 32px 0;
    letter-spacing: -0.5px;
}

.rrs-review-form {
    max-width: 800px;
}

/* Star Rating Input */
.rrs-star-rating-input {
    display: flex;
    gap: 8px;
    font-size: 40px;
    cursor: pointer;
    margin-top: 8px;
}

.rrs-star-input {
    transition: all 0.2s ease;
    opacity: 0.3;
    filter: grayscale(100%);
}

.rrs-star-input.active {
    opacity: 1;
    filter: grayscale(0%);
}

.rrs-star-input:hover,
.rrs-star-input.hover {
    transform: scale(1.2);
}

/* Form Layout */
.rrs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.rrs-form-group {
    margin-bottom: 20px;
}

.rrs-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.rrs-form-group input,
.rrs-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    font-size: 16px;
    color: #222;
    font-family: inherit;
    transition: all 0.2s;
    background: #ffffff;
}

.rrs-form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.rrs-form-group input::placeholder,
.rrs-form-group textarea::placeholder {
    color: #b0b0b0;
}

/* Loading State */
.rrs-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.rrs-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: rrs-spin 0.6s linear infinite;
}

@keyframes rrs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1024px) {
    .rrs-rating-summary-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .rrs-reviews-container {
        padding: 24px 16px;
    }

    .rrs-rating-summary,
    .rrs-review-form-section {
        padding: 24px;
    }

    .rrs-rating-number {
        font-size: 56px;
    }

    .rrs-rating-stars {
        font-size: 24px;
    }

    .rrs-star-rating-input {
        font-size: 32px;
    }

    .rrs-reviews-heading,
    .rrs-form-heading {
        font-size: 24px;
    }

    .rrs-review-card {
        padding: 24px;
    }

    .rrs-reviewer-avatar {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .rrs-form-row {
        grid-template-columns: 1fr;
    }

    .rrs-review-submit-btn {
        max-width: none;
    }

    .rrs-rating-bar-row {
        gap: 12px;
    }

    .rrs-rating-label {
        min-width: 45px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .rrs-review-header {
        flex-wrap: wrap;
    }

    .rrs-review-rating {
        width: 100%;
        margin-top: 8px;
    }
}

/* Editor Preview Styles */
.rrs-editor-preview {
    opacity: 0.8;
}