/* Ürün sayfası — yorum görüntüleme / düzenleme */

.pr-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.pr-flash {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pr-flash--success {
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.pr-flash--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.pr-my-review {
    border-radius: 0.85rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
}

.pr-my-review.is-approved { border-color: #bbf7d0; background: #f0fdf4; }
.pr-my-review.is-pending { border-color: #fde68a; background: #fffbeb; }
.pr-my-review.is-rejected { border-color: #fecaca; background: #fef2f2; }

.pr-my-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 1rem 1rem 0.75rem;
}

.pr-my-review__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.pr-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}

.pr-badge--approved { background: #dcfce7; color: #166534; }
.pr-badge--pending { background: #fef3c7; color: #92400e; }
.pr-badge--rejected { background: #fee2e2; color: #991b1b; }

.pr-my-review__body {
    padding: 0 1rem 1rem;
}

.pr-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}

.pr-review-title {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
}

.pr-review-text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #4b5563;
    word-break: break-word;
}

.pr-points-note {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    color: #059669;
    font-weight: 600;
}

.pr-edit-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.65rem 1rem;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.55);
    color: #2563eb;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.pr-edit-toggle i {
    transition: transform 0.2s ease;
}

.pr-edit-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.pr-form-wrap {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.85rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.pr-form-wrap[hidden] {
    display: none !important;
}

.pr-form-head {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.pr-form-sub {
    margin: 0 0 1rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.45;
}

.pr-reward-banner {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.65rem;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.8125rem;
    font-weight: 600;
}

.pr-field {
    margin-bottom: 0.85rem;
}

.pr-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

.pr-star-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.pr-star-input input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pr-star-input label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.55rem;
    border-radius: 0.55rem;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.pr-star-input input:checked + label,
.pr-star-input label:hover {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.pr-input,
.pr-textarea,
.pr-select-fallback {
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.65rem;
    font-size: 1rem;
    line-height: 1.4;
    background: #fff;
}

.pr-textarea {
    min-height: 7rem;
    resize: vertical;
}

.pr-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.65rem;
    background: #2563eb;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
}

.pr-submit:hover {
    background: #1d4ed8;
}

@media (min-width: 640px) {
    .pr-submit {
        width: auto;
        min-width: 10rem;
    }
}

.pr-info-box {
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.pr-info-box--blue { background: #eff6ff; color: #1e40af; }
.pr-info-box--gray { background: #f9fafb; color: #4b5563; }

/* Yorum listesi sayfalandırma */
.pr-list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.pr-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
}

.pr-page-link.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.pr-page-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.pr-public-review {
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.pr-public-review:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pr-public-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.pr-public-review__user {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.pr-avatar {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.pr-public-review__name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}

.pr-public-review__date {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

.pr-tab-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.pr-tab-head h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.pr-tab-jump {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    white-space: nowrap;
}

.pr-edit-deadline {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: #0369a1;
    font-weight: 600;
}

.pr-edit-deadline--expired {
    color: #b45309;
}

.pr-admin-reply {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.65rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.pr-admin-reply__label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #1d4ed8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pr-admin-reply__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #1e3a8a;
    word-break: break-word;
}

@media (min-width: 768px) {
    .pr-tab-head h3 {
        font-size: 1.25rem;
    }
}
