/* ── Reviews Page ── */ .rv-page-title { font-size: 1.1rem; font-weight: 900; color: var(--text-primary); margin: 0; } /* Скролл-контейнер страницы: первым элементом в нём живёт индикатор pull-to-refresh, под ним — колонки .rv-layout */ .rv-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; } .rv-layout { display: flex; gap: 24px; padding: 20px; flex: 1 0 auto; max-width: 900px; width: 100%; margin: 0 auto; } /* ── Left sidebar (summary + form) ── */ .rv-sidebar { width: 300px; min-width: 280px; display: flex; flex-direction: column; gap: 20px; } /* ── Summary block ── */ .rv-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; } .rv-summary-score { display: flex; align-items: center; gap: 12px; } .rv-summary-num { font-size: 2.6rem; font-weight: 900; color: #f5a623; line-height: 1; } .rv-summary-none { color: var(--muted); font-size: .9rem; font-weight: 700; } .rv-summary-total { color: var(--muted); font-size: .8rem; font-weight: 600; } /* Distribution */ .rv-distribution { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; } .rv-dist-row { display: flex; align-items: center; gap: 8px; } .rv-dist-star { font-size: .75rem; color: var(--muted); min-width: 32px; text-align: right; font-weight: 700; } .rv-dist-bar { flex: 1; height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; } .rv-dist-fill { height: 100%; background: linear-gradient(90deg, #f5a623, #f7c948); border-radius: 3px; transition: width .4s ease; } .rv-dist-count { font-size: .7rem; color: var(--muted); min-width: 16px; text-align: right; font-weight: 700; } /* ── Star Rating ── */ .rv-stars { display: flex; gap: 3px; } .rv-star { color: var(--muted2); transition: color .15s, transform .15s; flex-shrink: 0; } .rv-star.filled { color: #f5a623; } .rv-star.interactive { cursor: pointer; } .rv-star.interactive:hover { transform: scale(1.2); } /* ── Review Form ── */ .rv-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; } .rv-form-title { margin: 0; font-size: 1rem; font-weight: 800; color: var(--text-primary); } .rv-form-rating { display: flex; align-items: center; gap: 10px; } .rv-form-label { font-size: .85rem; font-weight: 700; color: var(--muted); } .rv-form-error { color: var(--err); font-size: .8rem; font-weight: 700; } .rv-form-textarea { background: var(--bg-input); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color: var(--text-primary); font-family: var(--font); font-size: .88rem; resize: vertical; transition: border-color .15s, box-shadow .15s; } .rv-form-textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .12); } .rv-form-textarea::placeholder { color: var(--muted); } .rv-form-footer { display: flex; align-items: center; justify-content: space-between; } .rv-form-counter { font-size: .72rem; color: var(--muted); font-weight: 600; } .rv-form-submit { background: var(--teal); border: none; border-radius: 10px; padding: 10px 22px; color: #fff; font-family: var(--font); font-size: .85rem; font-weight: 800; cursor: pointer; transition: background .15s, transform .15s; } .rv-form-submit:hover:not(:disabled) { background: var(--teal2); transform: translateY(-1px); } .rv-form-submit:disabled { opacity: .5; cursor: not-allowed; } /* ── Login prompt ── */ .rv-login-prompt { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; text-align: center; } .rv-login-prompt p { color: var(--muted); font-size: .88rem; margin: 0 0 14px; } .rv-login-btn { background: var(--teal); border: none; border-radius: 10px; padding: 10px 24px; color: #fff; font-family: var(--font); font-size: .85rem; font-weight: 800; cursor: pointer; transition: background .15s; } .rv-login-btn:hover { background: var(--teal2); } /* ── Reviews List ── */ .rv-list { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; } /* ── Review Card ── */ .rv-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; transition: border-color .15s; animation: rvCardIn .5s cubic-bezier(.34, 1.56, .64, 1) both; } .rv-card:hover { border-color: var(--muted2); } @keyframes rvCardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } } .rv-card-head { display: flex; align-items: center; gap: 12px; } .rv-card-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-input); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--muted); flex-shrink: 0; } .rv-card-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .rv-card-name { font-size: .88rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rv-card-pending-badge { align-self: flex-start; font-size: .68rem; font-weight: 700; color: var(--teal); background: rgba(var(--teal-rgb), .1); border-radius: 999px; padding: 2px 8px; } .rv-card-pending { border-style: dashed; opacity: .85; } .rv-card-date { font-size: .72rem; color: var(--muted); } .rv-card-rating { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; } .rv-card-rating-num { font-size: .7rem; color: var(--muted); font-weight: 700; } .rv-card-text { margin: 0; font-size: .88rem; color: var(--text-primary); line-height: 1.55; } /* ── Responsive ── */ @media (max-width: 768px) { .rv-layout { flex-direction: column; padding: 14px; padding-bottom: calc(90px + env(safe-area-inset-bottom)); } .rv-sidebar { width: 100%; min-width: 0; } }