/* assets/pages/info.css — Settings-style profile page */

.info-page {
    max-width: 560px;
    margin: 1.5rem auto 0;
    padding: 0 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ─── Identity ─── */
.info-identity {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 0;
}

.info-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.6rem;
    color: #081018;
    flex-shrink: 0;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--cyan) 25%, transparent);
    letter-spacing: -0.02em;
}

body.light-theme .info-avatar {
    color: #f8fafc;
}

.info-identity-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.info-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.info-role {
    font-size: 0.92rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ─── Divider ─── */
.info-divider {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 0;
}

/* ─── Stats ─── */
.info-stats-row {
    padding: 1.75rem 0;
    display: flex;
    gap: 2rem;
}

.info-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: var(--grad-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-variant-numeric: tabular-nums;
}

.info-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Action buttons ─── */
.info-quick-actions {
    padding: 0.75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.info-action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-2) 50%, transparent);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.info-action-btn:hover {
    background: color-mix(in srgb, var(--cyan) 8%, var(--surface-2));
    border-color: color-mix(in srgb, var(--cyan) 30%, var(--line));
    transform: translateY(-1px);
}

.info-action-btn > svg:first-child {
    flex-shrink: 0;
    color: var(--cyan);
}

.action-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.action-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.action-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.action-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.15s;
}

.info-action-btn:hover .action-chevron {
    transform: translateX(2px);
    color: var(--cyan);
}

/* Danger variant */
.info-action-danger > svg:first-child {
    color: var(--red);
}

.info-action-danger:hover {
    background: color-mix(in srgb, var(--red) 8%, var(--surface-2));
    border-color: color-mix(in srgb, var(--red) 25%, var(--line));
}

.info-action-danger .action-title {
    color: var(--red);
}

.info-action-danger:hover .action-chevron {
    color: var(--red);
}

/* Feedback */
.info-page .feedback {
    margin-top: 1rem;
    text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .info-identity {
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .info-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.35rem;
    }

    .info-name {
        font-size: 1.25rem;
    }

    .info-stat-number {
        font-size: 2rem;
    }

    .info-stats-row {
        padding: 1.25rem 0;
    }
}
