/* ═══════════════════════════════════════════
   SkillsMuse — Review System Styles
   ═══════════════════════════════════════════ */

/* ── Rating Badge (Skill Cards) ── */
.review-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary, #f59e0b);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    background: rgba(245, 158, 11, 0.1);
}

.review-badge__count {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.6875rem;
}

/* ── Stars ── */
.review-stars {
    color: var(--accent-primary, #f59e0b);
    letter-spacing: 0.05em;
}

/* ── Review Section (Modal) ── */
.review-section {
    padding: 1rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.review-section__stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary, #aaa);
    margin-bottom: 0.75rem;
}

.review-section__stats-bar strong {
    color: var(--accent-primary, #f59e0b);
}

.review-section__count {
    opacity: 0.6;
    font-size: 0.75rem;
}

/* ── Review Form ── */
.review-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.review-form__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 0.75rem;
    text-align: center;
}

.review-form__stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.review-star-input {
    font-size: 1.75rem;
    color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: color 0.15s, transform 0.15s;
    user-select: none;
    line-height: 1;
}

.review-star-input:hover,
.review-star-input.hover {
    color: #f59e0b;
    transform: scale(1.2);
}

.review-star-input.active {
    color: #f59e0b;
}

.review-form__comment {
    width: 100%;
    min-height: 4rem;
    padding: 0.625rem 0.75rem;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 0.5rem;
    color: var(--text-primary, #333);
    font-size: 0.8125rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.review-form__comment:focus {
    outline: none;
    border-color: var(--accent-primary, #6366f1);
}

.review-form__comment::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.review-form__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.review-form__submit {
    padding: 0.5rem 1.25rem;
    background: var(--accent-primary, #6366f1);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.review-form__submit:hover {
    background: var(--accent-hover, #4f46e5);
    transform: translateY(-1px);
}

.review-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.review-form__char-count {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Review List ── */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-height: 20rem;
    overflow-y: auto;
}

.review-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.review-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.review-item__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.review-item__date {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.3);
}

.review-item__comment {
    font-size: 0.8125rem;
    color: var(--text-secondary, #bbb);
    line-height: 1.5;
    word-break: break-word;
}

/* ── Empty State ── */
.review-empty {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* ── Light Theme ── */
[data-theme="light"] .review-form {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .review-form__comment {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary, #333);
}

[data-theme="light"] .review-form__comment::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .review-star-input {
    color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .review-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .review-section {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .review-badge {
    background: rgba(245, 158, 11, 0.08);
}