/* MGF.AI page — character_profile.html */

/* main.container apporte déjà du padding horizontal : éviter le double gutter */
.profile-wrap {
    max-width: min(1180px, 100%);
    margin: 0 auto;
    padding: clamp(2.25rem, 5vw, 3.5rem) 0 5rem;
}

/* ── Hero : colonne gauche (identité + portrait), colonne droite (stats + CTA) ── */
.profile-hero-grid {
    display: grid;
    grid-template-columns: minmax(220px, min(32vw, 300px)) minmax(0, 1fr);
    grid-template-areas: "aside main";
    gap: clamp(1.5rem, 4vw, 2.75rem);
    align-items: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.profile-hero-main {
    grid-area: main;
    min-width: 0;
    align-self: center;
}
.profile-hero-aside {
    grid-area: aside;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    max-width: 300px;
    justify-self: start;
    align-self: center;
}
.profile-hero-aside .profile-avatar-wrap {
    width: 100%;
}
.profile-archetype-above {
    width: 100%;
    text-align: center;
}
.profile-identity-under {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding-top: 0.15rem;
}
.profile-name-under-photo {
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}
.profile-name-under-photo .profile-prenom {
    display: block;
}
.profile-name-under-photo .profile-nom {
    display: block;
    font-size: 0.92em;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.1rem;
}
.profile-age-under {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}
@media (max-width: 720px) {
    .profile-hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "aside" "main";
        align-items: stretch;
    }
    .profile-hero-aside {
        justify-self: center;
        max-width: min(300px, 72vw);
        align-self: center;
    }
    .profile-hero-main {
        align-self: stretch;
    }
}

/* ── Hero (bloc infos) ── */
.profile-hero {
    width: 100%;
    max-width: min(52rem, 100%);
}

.profile-avatar-wrap {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    aspect-ratio: 3/4; background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-placeholder,
.profile-avatar-ph {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 5rem; font-weight: 800;
    background: linear-gradient(145deg, #2e3038 0%, #1a1c22 100%);
    color: rgba(255, 255, 255, 0.88);
}
.profile-visibility-badge {
    position: absolute; top: 1rem; left: 1rem;
    padding: 4px 12px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 700; backdrop-filter: blur(6px);
}
.vis-official { background: linear-gradient(135deg, rgba(255,215,0,0.9), rgba(255,160,0,0.85)); color: #1a1000; }
.vis-public   { background: rgba(16,185,129,0.85); color: #fff; }

/* ── Infos ── */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    text-align: left;
}
.profile-archetype {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--sweet-dim); border: 1px solid rgba(255,77,143,0.2);
    border-radius: 999px; padding: 0.3rem 0.9rem;
    font-size: 0.85rem; font-weight: 700; color: var(--sweet-primary);
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* ── Stats ── */
.profile-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.pstat {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 0.9rem 1.25rem; text-align: center;
    min-width: 90px;
}
.pstat-val { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.pstat-val.rose   { color: var(--sweet-primary); }
.pstat-val.gold   { color: #fbbf24; }
.pstat-val.violet { color: var(--dark-primary); }
.pstat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 3px; }

/* ── Rating stars ── */
.rating-stars { display: flex; align-items: center; gap: 3px; }
.star { font-size: 1rem; color: #4a4a6a; }
.star.filled { color: #fbbf24; }
.star.half { color: #fbbf24; }

/* ── CTA ── */
.profile-cta {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.75rem;
    text-align: center;
}
.profile-cta h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.profile-cta p  { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── Bio section (sous le hero, pleine largeur du wrap) ── */
.profile-bio {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(1.35rem, 3vw, 2rem);
    margin-top: clamp(1.25rem, 3vw, 2rem);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    width: 100%;
    max-width: min(52rem, 100%);
    text-align: center;
}
.bio-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
}
.bio-text {
    font-size: 0.96rem;
    line-height: 1.75;
    color: var(--text);
    white-space: pre-line;
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}
.bio-disclaimer {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}
.profile-breadcrumb {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.profile-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.profile-breadcrumb a:hover { color: var(--text); }

/* ── Creator info ── */
.profile-creator {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: min(36rem, 100%);
    text-align: left;
}
.profile-creator-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
}
@media (max-width: 480px) {
    .profile-creator-date {
        margin-left: 0;
        width: 100%;
        flex-basis: 100%;
    }
}
.creator-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sweet-primary), var(--dark-primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; font-weight: 700; flex-shrink: 0;
}
.creator-label { font-size: 0.78rem; color: var(--text-muted); }
.creator-name  { font-size: 0.92rem; font-weight: 700; }

/* ── Interactive Rating ── */
.interactive-rating {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: min(36rem, 100%);
}
.interactive-rating-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.star-input {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}
.profile-rating-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.profile-rating-row .rating-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.star-input span {
    font-size: 1.8rem;
    cursor: pointer;
    color: #4a4a6a;
    transition: all 0.2s ease;
}
.star-input span:hover,
.star-input span.active {
    color: #fbbf24;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}
.mgf-report-overlay {
    position: fixed; inset: 0; z-index: 10050;
    background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
    display: none; align-items: center; justify-content: center; padding: 1.25rem;
}
.mgf-report-overlay.is-open { display: flex; }
.mgf-report-dialog {
    width: min(420px, 100%); max-height: 90vh; overflow: auto;
    background: var(--bg-surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-glass); position: relative;
}
.mgf-report-dialog h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.mgf-report-close {
    position: absolute; top: 0.6rem; right: 0.65rem;
    border: none; background: transparent; color: var(--text-muted);
    font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.mgf-report-cats label { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.35rem 0; font-size: 0.9rem; cursor: pointer; }
.mgf-report-dialog textarea {
    width: 100%; box-sizing: border-box; margin-top: 0.35rem;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    background: var(--bg-elevated); color: var(--text); padding: 0.6rem 0.75rem;
    font-family: inherit; font-size: 0.88rem; resize: vertical; min-height: 4.5rem;
}
.mgf-report-actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 0.85rem; flex-wrap: wrap; }
.mgf-report-err { color: #ef4444; font-size: 0.82rem; margin-top: 0.5rem; }
.mgf-report-hint { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.75rem; }
