/* Profile-specific styles */

.profile-page { padding: 2.5rem 0 4rem; }

.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.profile-info { flex: 1; }

.profile-name {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.profile-bio {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    max-width: 520px;
}

.profile-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    transition: border-color 0.15s, color 0.15s;
}

.profile-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

.profile-member-since {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.profile-actions { margin-top: 1rem; }

.profile-empty {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.profile-section { margin-top: 2.5rem; }

.profile-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

/* Edit form */
.profile-edit-form { max-width: 560px; }
.profile-edit-form .form-group { margin-bottom: 1.25rem; }
.profile-edit-form .form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.profile-edit-form .form-hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.25rem; display: block; }
.profile-edit-form textarea { min-height: 80px; resize: vertical; }

/* Social links editor */
.social-links-editor {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    cursor: default;
}

.social-link-row.dragging {
    opacity: 0.4;
}

.social-link-row.drag-over {
    border-color: var(--color-accent);
}

.drag-handle {
    color: var(--color-text-muted);
    cursor: grab;
    padding: 0 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
}

.drag-handle:active { cursor: grabbing; }

.social-platform-select {
    flex-shrink: 0;
    width: auto;
    min-width: 140px;
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
}

.social-handle-input {
    flex: 1;
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    min-width: 0;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius);
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.btn-icon:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}

/* Account settings */
.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.settings-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.settings-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.4rem;
}

/* Danger zone */
.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.03);
    border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}

.danger-zone h2 { color: #ef4444; }

.delete-form { max-width: 320px; }
