/* Character Page - Review Section Styles */

/* Review Section Header */
.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.review-section-header .character-section-title {
    margin: 0;
}

.btn-write-review {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-write-review:hover {
    background: var(--primary-hover, #6366f1);
}

.btn-write-review:disabled {
    background: var(--bg-tertiary);
    color: var(--text-light);
    cursor: not-allowed;
}

/* Review Eligibility Notice */
.review-eligibility-notice {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-eligibility-notice svg {
    flex-shrink: 0;
}

.review-eligibility-notice.eligible {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.review-eligibility-notice.insufficient {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Review Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.review-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #1f2937;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.review-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #1f2937;
}

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

.review-rating-section {
    margin-bottom: 20px;
}

.review-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 8px;
}

.star-rating-input {
    display: flex;
    gap: 4px;
}

.star-rating-input .star-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #d1d5db;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, transform 0.1s;
}

.star-rating-input .star-btn:hover {
    transform: scale(1.1);
}

.star-rating-input .star-btn.filled {
    color: #fbbf24;
}

.review-comment-section {
    margin-bottom: 0;
}

/* Review Quill Editor */
.review-quill-editor {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.review-quill-editor .ql-toolbar {
    background: #f3f4f6;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px;
}

.review-quill-editor .ql-container {
    border: none;
    font-family: inherit;
}

.review-quill-editor .ql-editor {
    min-height: 120px;
    max-height: 200px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

.review-quill-editor .ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: normal;
}

.review-quill-editor .ql-toolbar .ql-stroke {
    stroke: #6b7280;
}

.review-quill-editor .ql-toolbar .ql-fill {
    fill: #6b7280;
}

.review-quill-editor .ql-toolbar .ql-picker {
    color: #6b7280;
}

/* Review Modal Footer */
.review-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Review Item Quill Content */
.review-comment {
    line-height: 1.6;
}

.review-comment p {
    margin: 0 0 0.5em 0;
}

.review-comment p:last-child {
    margin-bottom: 0;
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .review-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-write-review {
        width: 100%;
        justify-content: center;
    }

    .review-modal {
        max-height: 100vh;
        height: 100%;
        border-radius: 0;
    }

    .review-modal-body {
        padding: 16px;
    }

    .star-rating-input .star-btn {
        font-size: 28px;
    }

    .review-quill-editor .ql-editor {
        min-height: 100px;
    }

    .review-quill-editor .ql-toolbar {
        flex-wrap: wrap;
    }

    .review-quill-editor .ql-toolbar .ql-formats {
        margin-right: 8px;
        margin-bottom: 4px;
    }

    .review-quill-editor .ql-toolbar button {
        width: 28px;
        height: 28px;
    }

    .review-modal-footer {
        padding: 12px 16px;
    }

    .review-modal-footer .btn {
        flex: 1;
    }
}
