/* ==============================================
   MINDSET PAGE
   Calm, editorial, match-day ritual
   ============================================== */

.mindset-shell {
    max-width: 780px;
    margin: 24px auto;
    padding: 44px 48px 52px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    position: relative;
}

/* ---------- Top bar ---------- */
.mindset-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.mindset-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px 6px 0;
    transition: color 0.15s ease;
}

.mindset-back:hover { color: var(--text-primary); }
.mindset-back svg { width: 16px; height: 16px; }

.mindset-player-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 5px 12px 5px 5px;
    font-size: 13px;
    color: var(--text-secondary);
}

.mindset-player-chip .avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e94560, #c9a961);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

/* ---------- Header ---------- */
.mindset-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 40px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.mindset-sub {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 460px;
    margin-bottom: 44px;
}

/* ---------- Section shell ---------- */
.mindset-section {
    margin-bottom: 0;
}

.mindset-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding-left: 2px;
}

.mindset-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Coach's Corner uses warm gold */
.mindset-label.coach {
    color: #c9a961;
}

/* Player's Corner uses cool blue */
.mindset-label.player {
    color: #7fb3d5;
}

.mindset-author {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 2px;
}

/* ---------- Note card ---------- */
.mindset-note {
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    position: relative;
    transition: border-color 0.2s ease;
}

.mindset-note.coach {
    background:
        linear-gradient(180deg, rgba(201, 169, 97, 0.05), transparent 60%),
        var(--bg-card);
    border-color: rgba(201, 169, 97, 0.18);
}

.mindset-note.player {
    background:
        linear-gradient(180deg, rgba(127, 179, 213, 0.05), transparent 60%),
        var(--bg-card);
    border-color: rgba(127, 179, 213, 0.18);
}

.mindset-note-body {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 19px;
    line-height: 1.75;
    color: #dde0e6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.mindset-note-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mindset-note-body em {
    font-style: italic;
}

.mindset-note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-muted);
}

.mindset-note-actions {
    display: flex;
    gap: 6px;
}

.mindset-icon-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.mindset-icon-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--bg-card-hover);
}

.mindset-icon-btn.danger:hover {
    color: var(--highlight);
    border-color: rgba(233, 69, 96, 0.4);
}

.mindset-icon-btn svg {
    width: 14px;
    height: 14px;
}

/* ---------- Empty state ---------- */
.mindset-empty {
    background: var(--bg-input);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
}

.mindset-empty p {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto 20px;
}

/* ---------- Editor ---------- */
.mindset-editor {
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.mindset-editor.coach {
    border-color: rgba(201, 169, 97, 0.28);
}

.mindset-editor.player {
    border-color: rgba(127, 179, 213, 0.28);
}

.mindset-editor:focus-within {
    border-color: var(--highlight);
}

.mindset-editor textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    color: var(--text-primary);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    padding: 24px 28px 8px;
    min-height: 140px;
}

.mindset-editor textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.mindset-editor-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.mindset-counter {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.mindset-counter.warn { color: var(--warning); }
.mindset-counter.over { color: var(--highlight); font-weight: 600; }

.mindset-editor-actions {
    display: flex;
    gap: 8px;
}

/* ---------- Divider ---------- */
.mindset-divider {
    height: 1px;
    margin: 40px 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .mindset-shell {
        padding: 20px 16px 100px;
    }

    .mindset-topbar {
        margin-bottom: 28px;
    }

    .mindset-title {
        font-size: 32px;
    }
    
    .mindset-shell {
    margin: 12px;
    padding: 24px 20px 40px;
    border-radius: var(--radius-lg);
    }

    .mindset-sub {
        font-size: 13px;
        margin-bottom: 32px;
    }

    .mindset-note {
        padding: 22px 22px;
        border-radius: var(--radius-lg);
    }

    .mindset-note-body {
        font-size: 17px;
        line-height: 1.7;
    }

    .mindset-empty {
        padding: 32px 20px;
        border-radius: var(--radius-lg);
    }

    .mindset-empty p {
        font-size: 16px;
    }

    .mindset-editor textarea {
        padding: 20px 20px 8px;
        font-size: 17px;
        min-height: 120px;
    }

    .mindset-editor-foot {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .mindset-divider {
        margin: 32px 0;
    }

    .mindset-author {
        font-size: 18px;
    }
}
