/* ============================================================================
   Page critique en grand /reviews/{publicId}
   Layout mobile-first. Inclut la critique en grand + les commentaires.
   ========================================================================= */

.review-show {
    margin-top: var(--space-3);
    padding: var(--space-5);
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.review-show__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.review-show__author {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.review-show__author:hover { text-decoration: none; }
.review-show__author:hover .review-show__author-name strong { color: var(--violet); }

.review-show__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--violet-soft);
    flex-shrink: 0;
}
.review-show__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    font-weight: 600;
}

.review-show__author-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.review-show__author-name strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 150ms;
}
.review-show__handle {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.review-show__date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    flex-shrink: 0;
}

.review-show__work {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: var(--space-3);
    align-items: center;
    margin-bottom: var(--space-3);
    padding: var(--space-3);
    background: var(--bg-paper);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background 120ms;
}
.review-show__work:hover { background: var(--violet-soft); text-decoration: none; }
.review-show__work:hover .review-show__title { color: var(--violet); }

.review-show__cover {
    width: 56px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--cover-ring);
}
.review-show__cover--placeholder { background: var(--border); }

.review-show__work-meta { min-width: 0; }
.review-show__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color 150ms;
}
.review-show__stars {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
}
.review-show__score {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.review-show__body {
    /* Critique mise en scène : texte plus grand et aéré, façon citation
       magazine (le contenu utilisateur est le héros). Pas de ❝ géant ni
       drop-cap (anti-patterns marque) : juste de l'air et de la présence. */
    font-size: 1.18rem;
    line-height: 1.72;
    letter-spacing: -0.01em;
    color: var(--ink);
    white-space: pre-wrap;
}
.review-show__body--spoilers summary {
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: var(--space-2);
}
.review-show__body--spoilers p {
    margin-top: var(--space-2);
}

.review-show__footer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}
.review-show__comments-count {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}
.review-show__share {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: none;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
}
.review-show__share:active { color: var(--ink); }
.review-show__share svg { flex-shrink: 0; }

/* ============================================================================
   Section commentaires sous la critique
   ========================================================================= */

.comments {
    margin-top: var(--space-5);
}
.comments__title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 var(--space-3);
}
.comments__list {
    list-style: none;
    margin: var(--space-4) 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
}
.comments__empty {
    margin: var(--space-3) 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Item commentaire : pattern conversationnel léger (pas de carte).
   Grid 36px (avatar) + 1fr (main). Avatar dans col 1, name + body
   + meta empilés dans col 2. Séparateur en bas (border-bottom).
   Inspiré Twitter / Letterboxd. */
.comment {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: var(--space-2) var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border);
}
.comment__avatar-link {
    display: block;
    line-height: 0;
}
.comment__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--violet-soft);
}
.comment__avatar--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    font-size: 0.78rem;
    font-weight: 600;
}

.comment__main {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.comment__author {
    display: inline-flex;
    text-decoration: none;
    color: inherit;
}
.comment__author:hover { text-decoration: none; }
.comment__author:hover .comment__name strong { color: var(--violet); }
.comment__name {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
}
.comment__name strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    transition: color 150ms;
}
.comment__handle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
}

.comment__body {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink);
    white-space: pre-wrap;
}

.comment__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--subtle);
}
.comment__date {
    font-family: var(--font-mono);
    font-size: 0.68rem;
}
.comment__delete-form { margin: 0; }
.comment__delete-btn {
    background: transparent;
    border: 0;
    padding: 0;
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 120ms;
}
.comment__delete-btn:hover { color: var(--ink); }
.comment__delete-btn::before {
    content: "·";
    margin-right: 4px;
    color: var(--subtle);
}

/* ============================================================================
   Form de création de commentaire
   ========================================================================= */

.comment-form {
    display: grid;
    gap: var(--space-2);
}
.comment-form__textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 80px;
    resize: vertical;
    transition: border-color 120ms, box-shadow 120ms;
}
.comment-form__textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-soft);
}
.comment-form__actions {
    display: flex;
    justify-content: flex-end;
}
