/* Public trader reviews */

.review-body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    color: #10232b;
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(79, 172, 254, 0.28), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, rgba(26, 115, 232, 0.22), transparent 55%),
        linear-gradient(160deg, #0f2027 0%, #203a43 42%, #f3f6f8 42.1%, #f6f8fa 100%);
}

.review-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

.review-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.review-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.review-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.review-brand strong {
    display: block;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

.review-brand em {
    font-style: normal;
    color: #8ec9ff;
}

.review-brand small {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.review-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e8f4ff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.review-login-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.review-login-link:hover {
    background: rgba(255, 255, 255, 0.16);
}

.review-hero {
    color: #fff;
    max-width: 720px;
    margin: 0 0 28px;
}

.review-kicker {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #8ec9ff;
}

.review-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
}

.review-lead {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.review-lead strong {
    color: #fff;
}

.review-composer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 20px;
    margin-bottom: 42px;
}

.review-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 32, 39, 0.14);
    padding: 22px;
}

.review-card-head {
    margin-bottom: 16px;
}

.review-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.review-card-head p {
    margin: 0;
    color: #5f6b73;
    font-size: 0.88rem;
}

.review-banner {
    margin: 0 0 16px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.review-banner-error {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.18);
}

.review-banner-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.review-attach-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.review-attach {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid #dadce0;
    border-radius: 10px;
    background: #fff;
    color: #1a73e8;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.review-attach:hover,
.review-attach.is-drag,
.review-attach.has-file {
    border-color: #1a73e8;
    background: #f3f8ff;
}

.review-attach input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.review-file-chip {
    color: #3c4043;
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.review-file-clear {
    border: none;
    background: transparent;
    color: #5f6b73;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 2px;
}

.review-file-clear:hover {
    color: #b91c1c;
}

.review-attach-hint {
    margin: 8px 0 0;
    color: #5f6b73;
    font-size: 0.82rem;
}

.review-attach-hint.is-error {
    color: #b91c1c;
    font-weight: 600;
}

.review-field {
    margin-top: 16px;
}

.review-field-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3c4043;
}

#review-count {
    font-weight: 500;
    color: #80868b;
}

#review-count.is-limit {
    color: #b91c1c;
}

.review-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 12px;
    background: #f8f9fa;
    font: inherit;
    font-size: 1rem;
    color: #202124;
    resize: vertical;
    min-height: 140px;
}

.review-field textarea:focus {
    outline: none;
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.review-submit {
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #1a73e8;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.review-submit:hover:not(:disabled) {
    background: #1557b0;
}

.review-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.review-preview-panel {
    align-self: start;
}

.review-block {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e6ecef;
    box-shadow: 0 10px 28px rgba(16, 35, 43, 0.06);
}

.review-block-preview {
    box-shadow: none;
}

.review-block-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e8eef1;
    overflow: hidden;
}

.review-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.review-block-media img[hidden],
.review-preview-empty[hidden] {
    display: none !important;
}

.review-preview-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    color: #7b878e;
    font-size: 0.92rem;
}

.review-block-body {
    padding: 14px 16px 16px;
}

.review-byline {
    margin: 0 0 6px;
    color: #5f6b73;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.review-block-body p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #10232b;
}

.review-block-body p.is-placeholder {
    color: #809099;
}

.review-block-body time {
    display: block;
    margin-top: 10px;
    color: #809099;
    font-size: 0.75rem;
}

.review-gallery-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 16px;
}

.review-gallery-head h2 {
    margin: 0;
    font-size: 1.35rem;
}

.review-gallery-head span {
    color: #5f6b73;
    font-size: 0.9rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.review-empty {
    padding: 48px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    border: 1px dashed #cfd8dd;
}

.review-empty-art {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #203a43, #4facfe);
}

.review-empty h3 {
    margin: 0 0 8px;
}

.review-empty p {
    margin: 0 auto;
    max-width: 460px;
    color: #5f6b73;
    line-height: 1.5;
}

@media (max-width: 860px) {
    .review-body {
        background: linear-gradient(180deg, #0f2027 0%, #203a43 220px, #f3f6f8 220px);
    }

    .review-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .review-composer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .review-page {
        width: min(100% - 20px, 1180px);
        padding-top: 18px;
    }

    .review-card {
        padding: 16px;
    }

    .review-field textarea {
        font-size: 16px;
    }
}
